thermo4
2.0.0.0
|
Functions | |
void | thermo4_cfg_setup (thermo4_cfg_t *cfg) |
Config Object Initialization function. More... | |
THERMO4_RETVAL | thermo4_init (thermo4_t *ctx, thermo4_cfg_t *cfg) |
Initialization function. More... | |
void | thermo4_default_cfg (thermo4_t *ctx) |
Click Default Configuration function. More... | |
void | thermo4_write_byte (thermo4_t *ctx, uint8_t reg, uint8_t data_in) |
Byte write function. More... | |
void | thermo4_read_byte (thermo4_t *ctx, uint8_t reg, uint8_t *data_out) |
Byte read function. More... | |
void | thermo4_write_data (thermo4_t *ctx, uint8_t reg, uint16_t data_in) |
Data write function. More... | |
void | thermo4_read_data (thermo4_t *ctx, uint8_t reg, uint16_t *data_out) |
Data read function. More... | |
void | thermo4_write_cfg (thermo4_t *ctx, uint8_t wr_cfg) |
Write configuration function. More... | |
uint8_t | thermo4_read_cfg (thermo4_t *ctx) |
Read configuration function. More... | |
void | thermo4_shut_down (thermo4_t *ctx) |
Read configuration function. More... | |
void | thermo4_power_up (thermo4_t *ctx) |
Power up function. More... | |
void | thermo4_reset (thermo4_t *ctx) |
Reset function. More... | |
float | thermo4_read_temperature_c (thermo4_t *ctx) |
Read Temperature in Celsius function. More... | |
float | thermo4_read_temperature_f (thermo4_t *ctx) |
Read Temperature in Fahrenheit function. More... | |
float | thermo4_read_temperature_k (thermo4_t *ctx) |
Read Temperature in Kelvin function. More... | |
float | thermo4_read_over_temp_shut_down (thermo4_t *ctx) |
Read overtemperature shutdown threshold function. More... | |
float | thermo4_read_temp_hyst (thermo4_t *ctx) |
Read hysteresis function. More... | |
void | thermo4_write_over_temp_shut_down (thermo4_t *ctx, float input_val) |
Write overtemperature shutdown threshold function. More... | |
void | thermo4_write_temp_hyst (thermo4_t *ctx, float input_val) |
Write hysteresis function. More... | |
void thermo4_cfg_setup | ( | thermo4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void thermo4_default_cfg | ( | thermo4_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
This function executes default configuration for Thermo4 click.
THERMO4_RETVAL thermo4_init | ( | thermo4_t * | ctx, |
thermo4_cfg_t * | cfg | ||
) |
Initialization function.
thermo4 | Click object. |
cfg | Click configuration structure. |
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. |
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. |
This function reads data from the desired register.
uint8_t thermo4_read_cfg | ( | thermo4_t * | ctx | ) |
Read configuration function.
ctx | Click object. |
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. |
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. |
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. |
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. |
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. |
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. |
Function is used to reset sensor.
void thermo4_shut_down | ( | thermo4_t * | ctx | ) |
Read configuration function.
ctx | Click object. |
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. |
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. |
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. |
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 |
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 |
Function sets new hysteresis value.