i2cisolator 2.0.0.0
|
Data Structures | |
struct | i2cisolator_t |
Click ctx object definition. More... | |
struct | i2cisolator_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | i2cisolator_cfg_setup (i2cisolator_cfg_t *cfg) |
Config Object Initialization function. | |
I2CISOLATOR_RETVAL | i2cisolator_init (i2cisolator_t *ctx, i2cisolator_cfg_t *cfg) |
Initialization function. | |
void | i2cisolator_default_cfg (i2cisolator_t *ctx) |
Click Default Configuration function. | |
void | i2cisolator_generic_write (i2cisolator_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | i2cisolator_generic_read (i2cisolator_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void i2cisolator_cfg_setup | ( | i2cisolator_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void i2cisolator_default_cfg | ( | i2cisolator_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for I2Cisolator click.
void i2cisolator_generic_read | ( | i2cisolator_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void i2cisolator_generic_write | ( | i2cisolator_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
I2CISOLATOR_RETVAL i2cisolator_init | ( | i2cisolator_t * | ctx, |
i2cisolator_cfg_t * | cfg ) |
Initialization function.
i2cisolator | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.