temphum5
2.0.0.0
|
Functions | |
void | temphum5_cfg_setup (temphum5_cfg_t *cfg) |
Config Object Initialization function. More... | |
TEMPHUM5_RETVAL | temphum5_init (temphum5_t *ctx, temphum5_cfg_t *cfg) |
Initialization function. More... | |
void | temphum5_generic_write (temphum5_t *ctx, uint8_t cmd) |
Generic write function. More... | |
void | temphum5_generic_read (temphum5_t *ctx, uint8_t *data_out) |
Generic read function. More... | |
uint8_t | temphum5_start_measurement (temphum5_t *ctx) |
Functions for start measurement. More... | |
float | temphum5_get_temperature (temphum5_t *ctx, uint8_t temp_in) |
Functions for read Temperature data. More... | |
float | temphum5_get_humidity (temphum5_t *ctx) |
Functions for read Relative Huminidy data. More... | |
uint8_t | temphum5_get_alarm (temphum5_t *ctx, uint8_t alarm) |
Functions for get output Alarm. More... | |
void temphum5_cfg_setup | ( | temphum5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
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 |
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. |
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) |
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. |
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: