llci2c 2.0.0.0
|
Functions | |
void | llci2c_cfg_setup (llci2c_cfg_t *cfg) |
Config Object Initialization function. | |
LLCI2C_RETVAL | llci2c_init (llci2c_t *ctx, llci2c_cfg_t *cfg) |
Initialization function. | |
void | llci2c_generic_write (llci2c_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | llci2c_generic_read (llci2c_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void llci2c_cfg_setup | ( | llci2c_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void llci2c_generic_read | ( | llci2c_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 llci2c_generic_write | ( | llci2c_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.
LLCI2C_RETVAL llci2c_init | ( | llci2c_t * | ctx, |
llci2c_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.