|
thermo14 2.2.0
|
Functions | |
| void | thermo14_cfg_setup (thermo14_cfg_t *cfg) |
| Config Object Initialization function. | |
| THERMO14_RETVAL | thermo14_init (thermo14_t *ctx, thermo14_cfg_t *cfg) |
| Initialization function. | |
| void | thermo14_generic_write (thermo14_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic write function. | |
| void | thermo14_generic_read (thermo14_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic read function. | |
| void | thermo14_default_cfg (thermo14_t *ctx) |
| void | thermo14_reset (thermo14_t *ctx) |
| Reset function. | |
| void | thermo14_sensor_enable (thermo14_t *ctx) |
| Sensor enable function. | |
| int16_t | thermo14_temp_raw_get (thermo14_t *ctx) |
| Get Raw Temperature Data function. | |
| float | thermo14_raw_to_celsius (thermo14_t *ctx, int16_t temp_raw) |
| Temperature Calculation function. ````````````````. | |
| float | thermo14_get_temperature (thermo14_t *ctx) |
| Get Temperature in Centigrade function. | |
| uint8_t | thermo14_get_int (thermo14_t *ctx) |
| Get Interrupt state function. | |
| void | thermo14_low_temp_trsh (thermo14_t *ctx, float trsh_val) |
| Set the low temperature threshold value function. | |
| void | thermo14_high_temp_trsh (thermo14_t *ctx, float trsh_val) |
| Set the high temperature threshold value function. | |
| void thermo14_cfg_setup | ( | thermo14_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| void thermo14_default_cfg | ( | thermo14_t * | ctx | ) |
| void thermo14_generic_read | ( | thermo14_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 thermo14_generic_write | ( | thermo14_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 thermo14_get_int | ( | thermo14_t * | ctx | ) |
Get Interrupt state function.
| ctx | Click object. |
@description This function is used to check if an interrupt has occured.
| float thermo14_get_temperature | ( | thermo14_t * | ctx | ) |
Get Temperature in Centigrade function.
| ctx | Click object. |
@description This function is used to get the temperature.
| void thermo14_high_temp_trsh | ( | thermo14_t * | ctx, |
| float | trsh_val ) |
Set the high temperature threshold value function.
| ctx | Click object. |
| trsh_val | high temperature threshold value |
@description This function is used to set the high temperature threshold value.
| THERMO14_RETVAL thermo14_init | ( | thermo14_t * | ctx, |
| thermo14_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.
| void thermo14_low_temp_trsh | ( | thermo14_t * | ctx, |
| float | trsh_val ) |
Set the low temperature threshold value function.
| ctx | Click object. |
| trsh_val | low temperature threshold value |
@description This function is used to set the low temperature threshold value.
| float thermo14_raw_to_celsius | ( | thermo14_t * | ctx, |
| int16_t | temp_raw ) |
Temperature Calculation function. ````````````````.
| ctx | Click object. |
| temp_raw | 16-bit signed data that defines the raw value |
@description This function is used to perform necessary calculacion in order to get temperature freom raw data.
| void thermo14_reset | ( | thermo14_t * | ctx | ) |
Reset function.
| ctx | Click object. |
@description This function is used to perform software reset.
| void thermo14_sensor_enable | ( | thermo14_t * | ctx | ) |
Sensor enable function.
| ctx | Click object. |
@description This function is used to enable sensor.
| int16_t thermo14_temp_raw_get | ( | thermo14_t * | ctx | ) |
Get Raw Temperature Data function.
| ctx | Click object. |
@description This function is used to get the raw value.