i2cisolator6 2.1.0.0
i2cisolator6.h File Reference

This file contains API for I2C Isolator 6 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  i2cisolator6_t
 I2C Isolator 6 Click context object. More...
 
struct  i2cisolator6_cfg_t
 I2C Isolator 6 Click configuration object. More...
 

Macros

#define I2CISOLATOR6_DEVICE_ADDRESS   0x00
 I2C Isolator 6 device address setting.
 
#define I2CISOLATOR6_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  i2cisolator6_return_value_t { I2CISOLATOR6_OK = 0 , I2CISOLATOR6_ERROR = -1 }
 I2C Isolator 6 Click return value data. More...
 

Functions

void i2cisolator6_cfg_setup (i2cisolator6_cfg_t *cfg)
 I2C Isolator 6 configuration object setup function.
 
err_t i2cisolator6_init (i2cisolator6_t *ctx, i2cisolator6_cfg_t *cfg)
 I2C Isolator 6 initialization function.
 
err_t i2cisolator6_write (i2cisolator6_t *ctx, uint8_t *data_in, uint8_t len)
 I2C Isolator 6 I2C writing function.
 
err_t i2cisolator6_read (i2cisolator6_t *ctx, uint8_t *data_out, uint8_t len)
 I2C Isolator 6 I2C reading function.
 
err_t i2cisolator6_write_then_read (i2cisolator6_t *ctx, uint8_t *data_in, uint8_t len_write_data, uint8_t *data_out, uint8_t len_read_data)
 I2C Isolator 6 I2C write then read function.
 
err_t i2cisolator6_set_slave_address (i2cisolator6_t *ctx, uint8_t slave_address)
 I2C Isolator 6 set I2C Slave address function.
 

Detailed Description

This file contains API for I2C Isolator 6 Click Driver.

Enumeration Type Documentation

◆ i2cisolator6_return_value_t

I2C Isolator 6 Click return value data.

Predefined enum values for driver return values.

Enumerator
I2CISOLATOR6_OK 
I2CISOLATOR6_ERROR