i2c1wire 2.0.0.0
|
Functions | |
void | i2c1wire_cfg_setup (i2c1wire_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | i2c1wire_init (i2c1wire_t *ctx, i2c1wire_cfg_t *cfg) |
Initialization function. | |
err_t | i2c1wire_generic_write (i2c1wire_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Generic write function. | |
err_t | i2c1wire_generic_read (i2c1wire_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Generic read function. | |
void | i2c1wire_soft_reset (i2c1wire_t *ctx) |
Software reset function. | |
uint8_t | i2c1wire_set_config (i2c1wire_t *ctx, uint8_t cfg) |
Set configuration function. | |
uint8_t | i2c1wire_set_channel (i2c1wire_t *ctx, uint8_t chan) |
Set channel function. | |
void | i2c1wire_set_read_pointer (i2c1wire_t *ctx, uint8_t ptr) |
Set read pointer function. | |
void | i2c1wire_one_wire_reset (i2c1wire_t *ctx) |
Reset function. | |
void | i2c1wire_write_byte_one_wire (i2c1wire_t *ctx, uint8_t input) |
Write byte function. | |
uint8_t | i2c1wire_read_byte_one_wire (i2c1wire_t *ctx) |
Read byte function. | |
void i2c1wire_cfg_setup | ( | i2c1wire_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
err_t i2c1wire_generic_read | ( | i2c1wire_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_out, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_out | Output data buf |
len | Number of the bytes to be read |
This function reads data from the desired register.
err_t i2c1wire_generic_write | ( | i2c1wire_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_in, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_in | Data buf to be written. |
len | Number of the bytes in data buf. |
This function writes data to the desired register.
err_t i2c1wire_init | ( | i2c1wire_t * | ctx, |
i2c1wire_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void i2c1wire_one_wire_reset | ( | i2c1wire_t * | ctx | ) |
Reset function.
ctx | Click object. |
This function does a hardware reset of the click module.
uint8_t i2c1wire_read_byte_one_wire | ( | i2c1wire_t * | ctx | ) |
Read byte function.
ctx | Click object. |
This function reads one byte from the click module.
uint8_t i2c1wire_set_channel | ( | i2c1wire_t * | ctx, |
uint8_t | chan ) |
Set channel function.
ctx | Click object. |
chan | Channel. |
This function configures the click module using the specified settings.
uint8_t i2c1wire_set_config | ( | i2c1wire_t * | ctx, |
uint8_t | cfg ) |
Set configuration function.
ctx | Click object. |
cfg | Configuration. |
This function configures the click module using the specified settings.
void i2c1wire_set_read_pointer | ( | i2c1wire_t * | ctx, |
uint8_t | ptr ) |
Set read pointer function.
ctx | Click object. |
ptr | Pointer. |
This function sets the read pointer for the click module.
void i2c1wire_soft_reset | ( | i2c1wire_t * | ctx | ) |
Software reset function.
ctx | Click object. |
This function does a software reset of the click module.
void i2c1wire_write_byte_one_wire | ( | i2c1wire_t * | ctx, |
uint8_t | input ) |
Write byte function.
ctx | Click object. |
input | Write data. |
This function writes one byte to the click module.