templog6 2.0.0.0
|
Functions | |
void | templog6_cfg_setup (templog6_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPLOG6_RETVAL | templog6_init (templog6_t *ctx, templog6_cfg_t *cfg) |
Initialization function. | |
void | templog6_default_cfg (templog6_t *ctx) |
Click Default Configuration function. | |
void | templog6_generic_write (templog6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | templog6_generic_read (templog6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | templog6_write_byte (templog6_t *ctx, uint8_t reg, uint8_t data_buf) |
Write one byte function. | |
uint8_t | templog6_read_byte (templog6_t *ctx, uint8_t reg) |
Read one byte function. | |
uint8_t | templog6_get_interrupt (templog6_t *ctx) |
Gets interrupt. | |
void templog6_cfg_setup | ( | templog6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void templog6_default_cfg | ( | templog6_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Temp Log 6 click.
void templog6_generic_read | ( | templog6_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 templog6_generic_write | ( | templog6_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.
uint8_t templog6_get_interrupt | ( | templog6_t * | ctx | ) |
Gets interrupt.
ctx | Click object. |
@description This function gets the interrupt.
TEMPLOG6_RETVAL templog6_init | ( | templog6_t * | ctx, |
templog6_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.
uint8_t templog6_read_byte | ( | templog6_t * | ctx, |
uint8_t | reg ) |
Read one byte function.
ctx | Click object. |
reg | Register address. |
@description This function reads one byte of data from the desired register.
void templog6_write_byte | ( | templog6_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_buf ) |
Write one byte function.
ctx | Click object. |
reg | Register address. |
data_buf | Data to be written. |
@description This function reads one byte of data from the desired register.