thermo13 2.0.0.0
|
Functions | |
void | thermo13_cfg_setup (thermo13_cfg_t *cfg) |
Config Object Initialization function. | |
THERMO13_RETVAL | thermo13_init (thermo13_t *ctx, thermo13_cfg_t *cfg) |
Initialization function. | |
void | thermo13_default_cfg (thermo13_t *ctx) |
Click Default Configuration function. | |
void | thermo13_generic_write (thermo13_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | thermo13_generic_read (thermo13_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint16_t | thermo13_read_data (thermo13_t *ctx, uint8_t reg_addr) |
Functions for read data from registers. | |
void | thermo13_configuration (thermo13_t *ctx, uint16_t cfg_data) |
Configuration register. | |
float | thermo13_get_ambient_temperature_data (thermo13_t *ctx, uint8_t temp_in) |
Ambient temperature data. | |
void | thermo13_set_temp_limit (thermo13_t *ctx, uint8_t temp_reg, float temp) |
Set temperature limit register. | |
float | thermo13_get_temp_limit (thermo13_t *ctx, uint8_t temp_reg) |
Get temperature register. | |
uint8_t | thermo13_get_interrupt_state (thermo13_t *ctx) |
Interrupt state. | |
void | thermo13_software_reset (thermo13_t *ctx) |
Software reset. | |
void thermo13_cfg_setup | ( | thermo13_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void thermo13_configuration | ( | thermo13_t * | ctx, |
uint16_t | cfg_data ) |
Configuration register.
ctx | Click object. |
cfg_data | Configuration data. |
void thermo13_default_cfg | ( | thermo13_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Thermo13 click.
void thermo13_generic_read | ( | thermo13_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 thermo13_generic_write | ( | thermo13_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.
float thermo13_get_ambient_temperature_data | ( | thermo13_t * | ctx, |
uint8_t | temp_in ) |
Ambient temperature data.
ctx | Click object. |
temp_in | Temperature in ... (FAHRENHEIT, KELVIN or CELSIUS) |
uint8_t thermo13_get_interrupt_state | ( | thermo13_t * | ctx | ) |
Interrupt state.
ctx | Click object. |
float thermo13_get_temp_limit | ( | thermo13_t * | ctx, |
uint8_t | temp_reg ) |
Get temperature register.
ctx | Click object. |
temp_reg | Temperature register (TEMPERATURE_LIMIT_LOW or TEMPERATURE_LIMIT_HIGH). |
THERMO13_RETVAL thermo13_init | ( | thermo13_t * | ctx, |
thermo13_cfg_t * | cfg ) |
Initialization function.
thermo13 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t thermo13_read_data | ( | thermo13_t * | ctx, |
uint8_t | reg_addr ) |
Functions for read data from registers.
ctx | Click object. |
reg_addr | Register address (LSB first read). |
void thermo13_set_temp_limit | ( | thermo13_t * | ctx, |
uint8_t | temp_reg, | ||
float | temp ) |
Set temperature limit register.
ctx | Click object. |
temp_reg | Temperature register (TEMPERATURE_LIMIT_LOW or TEMPERATURE_LIMIT_HIGH) |
temp | Temperature data in Celsius. |
void thermo13_software_reset | ( | thermo13_t * | ctx | ) |
Software reset.