thermo4 2.0.0.0
|
Functions | |
void | thermo4_cfg_setup (thermo4_cfg_t *cfg) |
Config Object Initialization function. | |
THERMO4_RETVAL | thermo4_init (thermo4_t *ctx, thermo4_cfg_t *cfg) |
Initialization function. | |
void | thermo4_default_cfg (thermo4_t *ctx) |
Click Default Configuration function. | |
void | thermo4_write_byte (thermo4_t *ctx, uint8_t reg, uint8_t data_in) |
Byte write function. | |
void | thermo4_read_byte (thermo4_t *ctx, uint8_t reg, uint8_t *data_out) |
Byte read function. | |
void | thermo4_write_data (thermo4_t *ctx, uint8_t reg, uint16_t data_in) |
Data write function. | |
void | thermo4_read_data (thermo4_t *ctx, uint8_t reg, uint16_t *data_out) |
Data read function. | |
void | thermo4_write_cfg (thermo4_t *ctx, uint8_t wr_cfg) |
Write configuration function. | |
uint8_t | thermo4_read_cfg (thermo4_t *ctx) |
Read configuration function. | |
void | thermo4_shut_down (thermo4_t *ctx) |
Read configuration function. | |
void | thermo4_power_up (thermo4_t *ctx) |
Power up function. | |
void | thermo4_reset (thermo4_t *ctx) |
Reset function. | |
float | thermo4_read_temperature_c (thermo4_t *ctx) |
Read Temperature in Celsius function. | |
float | thermo4_read_temperature_f (thermo4_t *ctx) |
Read Temperature in Fahrenheit function. | |
float | thermo4_read_temperature_k (thermo4_t *ctx) |
Read Temperature in Kelvin function. | |
float | thermo4_read_over_temp_shut_down (thermo4_t *ctx) |
Read overtemperature shutdown threshold function. | |
float | thermo4_read_temp_hyst (thermo4_t *ctx) |
Read hysteresis function. | |
void | thermo4_write_over_temp_shut_down (thermo4_t *ctx, float input_val) |
Write overtemperature shutdown threshold function. | |
void | thermo4_write_temp_hyst (thermo4_t *ctx, float input_val) |
Write hysteresis function. | |
void thermo4_cfg_setup | ( | thermo4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void thermo4_default_cfg | ( | thermo4_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Thermo4 click.
THERMO4_RETVAL thermo4_init | ( | thermo4_t * | ctx, |
thermo4_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 thermo4_power_up | ( | thermo4_t * | ctx | ) |
Power up function.
ctx | Click object. |
@description Function sets B0 of the configuration register to 0 in order to shut the sensor down.
void thermo4_read_byte | ( | thermo4_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_out ) |
Byte read function.
ctx | Click object. |
reg | Register address. |
data_out | Output data. |
@description This function reads data from the desired register.
uint8_t thermo4_read_cfg | ( | thermo4_t * | ctx | ) |
Read configuration function.
ctx | Click object. |
@description Function reads 8-bit data from configuration register.
void thermo4_read_data | ( | thermo4_t * | ctx, |
uint8_t | reg, | ||
uint16_t * | data_out ) |
Data read function.
ctx | Click object. |
reg | Register address. |
data_out | Output data. |
@description This function reads data from the desired register.
float thermo4_read_over_temp_shut_down | ( | thermo4_t * | ctx | ) |
Read overtemperature shutdown threshold function.
ctx | Click object. |
@description Function reads current overtemperature shutdown threshold.
float thermo4_read_temp_hyst | ( | thermo4_t * | ctx | ) |
Read hysteresis function.
ctx | Click object. |
float thermo4_read_temperature_c | ( | thermo4_t * | ctx | ) |
Read Temperature in Celsius function.
ctx | Click object. |
@description Function reads sensor and performs calculations in order to return result value representing current temperature in degrees centigrade.
float thermo4_read_temperature_f | ( | thermo4_t * | ctx | ) |
Read Temperature in Fahrenheit function.
ctx | Click object. |
@description Function reads sensor and performs calculations in order to return result value representing current temperature in degrees fahrenheit.
float thermo4_read_temperature_k | ( | thermo4_t * | ctx | ) |
Read Temperature in Kelvin function.
ctx | Click object. |
@description Function reads sensor and performs calculations in order to return result value representing current temperature in degrees kelvin.
void thermo4_reset | ( | thermo4_t * | ctx | ) |
Reset function.
ctx | Click object. |
@description Function is used to reset sensor.
void thermo4_shut_down | ( | thermo4_t * | ctx | ) |
Read configuration function.
ctx | Click object. |
@description Function sets B0 of the configuration register to 1 in order to shut the sensor down.
void thermo4_write_byte | ( | thermo4_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_in ) |
Byte write function.
ctx | Click object. |
reg | Register address. |
data_in | Data to be written. |
@description This function writes data to the desired register.
void thermo4_write_cfg | ( | thermo4_t * | ctx, |
uint8_t | wr_cfg ) |
Write configuration function.
ctx | Click object. |
wr_cfg | Configuration register. |
@description Function reads 8-bit data from configuration register.
void thermo4_write_data | ( | thermo4_t * | ctx, |
uint8_t | reg, | ||
uint16_t | data_in ) |
Data write function.
ctx | Click object. |
reg | Register address. |
data_in | Data to be written. |
@description This function writes data to the desired register.
void thermo4_write_over_temp_shut_down | ( | thermo4_t * | ctx, |
float | input_val ) |
Write overtemperature shutdown threshold function.
ctx | Click objeact. |
input_val | user defined float value representing new shutdown threshold |
@description Function sets new shutdown threshold value.
void thermo4_write_temp_hyst | ( | thermo4_t * | ctx, |
float | input_val ) |
Write hysteresis function.
ctx | Click object. |
input_val | user defined float value representing new hysteresis |
@description Function sets new hysteresis value.