temphum5 2.0.0.0
|
Functions | |
void | temphum5_cfg_setup (temphum5_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM5_RETVAL | temphum5_init (temphum5_t *ctx, temphum5_cfg_t *cfg) |
Initialization function. | |
void | temphum5_generic_write (temphum5_t *ctx, uint8_t cmd) |
Generic write function. | |
void | temphum5_generic_read (temphum5_t *ctx, uint8_t *data_out) |
Generic read function. | |
uint8_t | temphum5_start_measurement (temphum5_t *ctx) |
Functions for start measurement. | |
float | temphum5_get_temperature (temphum5_t *ctx, uint8_t temp_in) |
Functions for read Temperature data. | |
float | temphum5_get_humidity (temphum5_t *ctx) |
Functions for read Relative Huminidy data. | |
uint8_t | temphum5_get_alarm (temphum5_t *ctx, uint8_t alarm) |
Functions for get output Alarm. | |
void temphum5_cfg_setup | ( | temphum5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void temphum5_generic_read | ( | temphum5_t * | ctx, |
uint8_t * | data_out ) |
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 temphum5_generic_write | ( | temphum5_t * | ctx, |
uint8_t | cmd ) |
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 temphum5_get_alarm | ( | temphum5_t * | ctx, |
uint8_t | alarm ) |
Functions for get output Alarm.
ctx | Click object. |
alarm | Output Alarm (HIGH or LOW) |
@description The alarm is set by default and it is not possible to change it
float temphum5_get_humidity | ( | temphum5_t * | ctx | ) |
Functions for read Relative Huminidy data.
ctx | Click object. |
float temphum5_get_temperature | ( | temphum5_t * | ctx, |
uint8_t | temp_in ) |
Functions for read Temperature data.
ctx | Click object. |
temp_in | Temperature in ... (FAHRENHEIT, KELVIN, CELSIUS) |
TEMPHUM5_RETVAL temphum5_init | ( | temphum5_t * | ctx, |
temphum5_cfg_t * | cfg ) |
Initialization function.
temphum5 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t temphum5_start_measurement | ( | temphum5_t * | ctx | ) |
Functions for start measurement.
ctx | Click object. |
Status: - Normal Operation, Valid Data that has not been fetched since the last measurement cycle. - Stale Data: Data that has already been fetched since the last measurement cycle, or data fetched before the first measurement has been completed. - Device in Command Mode - Command Mode is used for programming the sensor. *