thermo15 2.0.0.0
|
Functions | |
void | thermo15_cfg_setup (thermo15_cfg_t *cfg) |
Config Object Initialization function. | |
THERMO15_RETVAL | thermo15_init (thermo15_t *ctx, thermo15_cfg_t *cfg) |
Initialization function. | |
void | thermo15_default_cfg (thermo15_t *ctx) |
Click Default Configuration function. | |
void | thermo15_generic_write (thermo15_t *ctx, uint8_t reg, uint8_t *data_buffer, uint8_t len) |
Generic write function. | |
void | thermo15_generic_read (thermo15_t *ctx, uint8_t reg, uint8_t *data_buffer, uint8_t len) |
Generic read function. | |
float | thermo15_get_temperature_data (thermo15_t *ctx, uint8_t temp_format) |
Ambient temperature data. | |
void | thermo15_set_temp_register (thermo15_t *ctx, uint8_t temp_reg, float temp_data) |
Set temperature register. | |
float | thermo15_get_temp_register (thermo15_t *ctx, uint8_t temp_reg) |
Get temperature register. | |
uint8_t | thermo15_get_interrupt_state (thermo15_t *ctx) |
Interrupt state. | |
void thermo15_cfg_setup | ( | thermo15_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void thermo15_default_cfg | ( | thermo15_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Thermo_15 click.
void thermo15_generic_read | ( | thermo15_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buffer, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buffer | Data buffer to be written. |
len | Number of the bytes in data buffer. |
@description This function reads data from the desired register.
void thermo15_generic_write | ( | thermo15_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buffer, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buffer | Output data buffer |
len | Number of the bytes to be read |
@description This function writes data to the desired register.
uint8_t thermo15_get_interrupt_state | ( | thermo15_t * | ctx | ) |
Interrupt state.
float thermo15_get_temp_register | ( | thermo15_t * | ctx, |
uint8_t | temp_reg ) |
Get temperature register.
ctx | Click object |
temp_reg | Temperature register (_TEMPERATURE_HYSTERESIS or _TEMPERATURE_LIMIT) |
float thermo15_get_temperature_data | ( | thermo15_t * | ctx, |
uint8_t | temp_format ) |
Ambient temperature data.
ctx | Click object |
temp_format | Temperature format ... (FAHRENHEIT, KELVIN or CELSIUS) |
THERMO15_RETVAL thermo15_init | ( | thermo15_t * | ctx, |
thermo15_cfg_t * | cfg ) |
Initialization function.
thermo15 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void thermo15_set_temp_register | ( | thermo15_t * | ctx, |
uint8_t | temp_reg, | ||
float | temp_data ) |
Set temperature register.
ctx | Click object |
temp_reg | Temperature register (_TEMPERATURE_HYSTERESIS or _TEMPERATURE_LIMIT) |
temp_data | Temperature data in Celsius |