thermo17 2.0.0.0
|
Functions | |
void | thermo17_cfg_setup (thermo17_cfg_t *cfg) |
Config Object Initialization function. | |
THERMO17_RETVAL | thermo17_init (thermo17_t *ctx, thermo17_cfg_t *cfg) |
Initialization function. | |
void | thermo17_generic_write (thermo17_t *ctx, uint8_t reg_adr, uint8_t write_data) |
Generic write function. | |
uint8_t | thermo17_generic_read (thermo17_t *ctx, uint8_t reg_adr) |
Generic read function. | |
float | thermo17_read_temp (thermo17_t *ctx, uint8_t temp_macro) |
Function for reading temperature. | |
uint8_t | thermo17_get_int_status (thermo17_t *ctx) |
Checks status of int pin. | |
uint8_t | thermo17_get_an_status (thermo17_t *ctx) |
Checks status of an pin. | |
void thermo17_cfg_setup | ( | thermo17_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t thermo17_generic_read | ( | thermo17_t * | ctx, |
uint8_t | reg_adr ) |
Generic read function.
ctx | Click object. |
reg_adr | Register address. |
@description This function reads data from the desired register.
void thermo17_generic_write | ( | thermo17_t * | ctx, |
uint8_t | reg_adr, | ||
uint8_t | write_data ) |
Generic write function.
ctx | Click object. |
reg_adr | Register address. |
write_data | Data to be written. |
@description This function writes data to the desired register.
uint8_t thermo17_get_an_status | ( | thermo17_t * | ctx | ) |
Checks status of an pin.
ctx | Click object. |
@description This function returns the state of the an pin.
uint8_t thermo17_get_int_status | ( | thermo17_t * | ctx | ) |
Checks status of int pin.
ctx | Click object. |
@description This function returns the state of the int pin.
THERMO17_RETVAL thermo17_init | ( | thermo17_t * | ctx, |
thermo17_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.
float thermo17_read_temp | ( | thermo17_t * | ctx, |
uint8_t | temp_macro ) |
Function for reading temperature.
ctx | Click object. |
temp_macro | Temperature macro ( THERMO17_TEMPERATURE_LOCAL or THERMO17_TEMPERATURE_REMOTE ). |
@description This function reads data from the local or remote registers.