temphum10 2.0.0.0
|
Functions | |
void | temphum10_cfg_setup (temphum10_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM10_RETVAL | temphum10_init (temphum10_t *ctx, temphum10_cfg_t *cfg) |
Initialization function. | |
void | temphum10_generic_write (temphum10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum10_generic_read (temphum10_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | temphum10_get_humidity (temphum10_t *ctx) |
Functions for read Relative Huminidy data. | |
float | temphum10_get_temperature (temphum10_t *ctx) |
Functions for read Temperature data. | |
void | temphum10_set_device_mode (temphum10_t *ctx, uint8_t mode) |
Functions for sets Device mode. | |
void | temphum10_repeat_measurement (temphum10_t *ctx, uint8_t average) |
Functions for repeat measurement. | |
void temphum10_cfg_setup | ( | temphum10_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void temphum10_generic_read | ( | temphum10_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
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 temphum10_generic_write | ( | temphum10_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
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.
float temphum10_get_humidity | ( | temphum10_t * | ctx | ) |
Functions for read Relative Huminidy data.
ctx | Click object. |
float temphum10_get_temperature | ( | temphum10_t * | ctx | ) |
Functions for read Temperature data.
ctx | Click object. |
TEMPHUM10_RETVAL temphum10_init | ( | temphum10_t * | ctx, |
temphum10_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 temphum10_repeat_measurement | ( | temphum10_t * | ctx, |
uint8_t | average ) |
Functions for repeat measurement.
ctx | Click object. |
average | Sets average times(2, 4, 8 times or no average) and temperature (_TEMPHUM10_AM_TEMP_AVERAGE_MODE_TIMES_8 or _TEMPHUM10_AM_TEMP_AVERAGE_MODE_TIMES_16) |
void temphum10_set_device_mode | ( | temphum10_t * | ctx, |
uint8_t | mode ) |
Functions for sets Device mode.
ctx | Click object. |
mode | Device mode ( TEMPHUM10_MODE_SLEEP or TEMPHUM10_MODE_STANDBY ) |