templog 2.0.0.0
|
Functions | |
void | templog_cfg_setup (templog_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPLOG_RETVAL | templog_init (templog_t *ctx, templog_cfg_t *cfg) |
Initialization function. | |
void | templog_default_cfg (templog_t *ctx) |
Click Default Configuration function. | |
void | templog_generic_write (templog_t *ctx, uint8_t reg, uint16_t transfer_data, uint8_t len) |
Generic write function. | |
uint16_t | templog_generic_read (templog_t *ctx, uint8_t reg) |
Generic read function. | |
uint16_t | temp_log_read_temp_dec (templog_t *ctx, uint16_t resolution) |
Temp read function. | |
float | temp_log_convert_to_celsius (uint16_t temperature_data) |
Convert function. | |
uint8_t | temp_log_get_alert (templog_t *ctx) |
Alert function. | |
float temp_log_convert_to_celsius | ( | uint16_t | temperature_data | ) |
Convert function.
temperature_data | Data to be converted. |
@description This function converts temperature data to celsius value.
uint8_t temp_log_get_alert | ( | templog_t * | ctx | ) |
Alert function.
ctx | Click object. |
@description This function alerts user if temperature limit is alarming.
uint16_t temp_log_read_temp_dec | ( | templog_t * | ctx, |
uint16_t | resolution ) |
Temp read function.
ctx | Click object. |
resolution | Resolution. |
@description This function reads decimal value of temp.
void templog_cfg_setup | ( | templog_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void templog_default_cfg | ( | templog_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Temp&Log click.
uint16_t templog_generic_read | ( | templog_t * | ctx, |
uint8_t | reg ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void templog_generic_write | ( | templog_t * | ctx, |
uint8_t | reg, | ||
uint16_t | transfer_data, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
transfer_data | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
TEMPLOG_RETVAL templog_init | ( | templog_t * | ctx, |
templog_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.