surfacetemp2 2.0.0.0
|
Functions | |
void | surfacetemp2_cfg_setup (surfacetemp2_cfg_t *cfg) |
Config Object Initialization function. | |
SURFACETEMP2_RETVAL | surfacetemp2_init (surfacetemp2_t *ctx, surfacetemp2_cfg_t *cfg) |
Initialization function. | |
void | surfacetemp2_generic_write (surfacetemp2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | surfacetemp2_generic_read (surfacetemp2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | surfacetemp2_soft_reset (surfacetemp2_t *ctx) |
Software Reset function. | |
uint8_t | surfacetemp2_setup (surfacetemp2_t *ctx, uint8_t setup) |
Setup function. | |
void | surfacetemp2_set_hys_val (surfacetemp2_t *ctx, uint8_t hys_val) |
Set Hysteresis function. | |
float | surfacetemp2_get_temperature (surfacetemp2_t *ctx) |
Get Temperature function. | |
void | surfacetemp2_set_high_trsh (surfacetemp2_t *ctx, float trsh) |
Set Over Temperature Threshold function. | |
void | surfacetemp2_set_low_trsh (surfacetemp2_t *ctx, float trsh) |
Set Under Temperature Threshold function. | |
void | surfacetemp2_set_crit_trsh (surfacetemp2_t *ctx, float trsh) |
Set Critical Temperature Threshold function. | |
uint8_t | surfacetemp2_get_int_pin (surfacetemp2_t *ctx) |
Get INT pin state function. | |
uint8_t | surfacetemp2_get_ct_pin (surfacetemp2_t *ctx) |
Get CT pin state function. | |
void surfacetemp2_cfg_setup | ( | surfacetemp2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void surfacetemp2_generic_read | ( | surfacetemp2_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 surfacetemp2_generic_write | ( | surfacetemp2_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 surfacetemp2_get_ct_pin | ( | surfacetemp2_t * | ctx | ) |
Get CT pin state function.
ctx | Click object. |
Function is used to get the CT pin state.
uint8_t surfacetemp2_get_int_pin | ( | surfacetemp2_t * | ctx | ) |
Get INT pin state function.
ctx | Click object. |
Function is used to get the INT pin state.
float surfacetemp2_get_temperature | ( | surfacetemp2_t * | ctx | ) |
Get Temperature function.
ctx | Click object. |
Function is used to read and calculate temperatre value.
SURFACETEMP2_RETVAL surfacetemp2_init | ( | surfacetemp2_t * | ctx, |
surfacetemp2_cfg_t * | cfg ) |
Initialization function.
surfacetemp2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void surfacetemp2_set_crit_trsh | ( | surfacetemp2_t * | ctx, |
float | trsh ) |
Set Critical Temperature Threshold function.
ctx | Click object. |
trsh | critical temperature threshold limit |
Function is used to set critical temperature threshold limit.
void surfacetemp2_set_high_trsh | ( | surfacetemp2_t * | ctx, |
float | trsh ) |
Set Over Temperature Threshold function.
ctx | Click object. |
trsh | over temperature threshold limit |
Function is used to set over temperature threshold limit.
void surfacetemp2_set_hys_val | ( | surfacetemp2_t * | ctx, |
uint8_t | hys_val ) |
Set Hysteresis function.
ctx | Click object. |
hys_val | user defined value that represents hysteresis |
Function is used to set hysteresis.
void surfacetemp2_set_low_trsh | ( | surfacetemp2_t * | ctx, |
float | trsh ) |
Set Under Temperature Threshold function.
ctx | Click object. |
trsh | under temperature threshold limit |
Function is used to set under temperature threshold limit.
uint8_t surfacetemp2_setup | ( | surfacetemp2_t * | ctx, |
uint8_t | setup ) |
Setup function.
ctx | Click object. |
setup | 8-bit input data that define device settings |
Function is used to apply the desired settings.
void surfacetemp2_soft_reset | ( | surfacetemp2_t * | ctx | ) |
Software Reset function.
ctx | Click object. |
Function is used to issue soft reset command.