temphum12
2.0.0.0
|
Functions | |
void | temphum12_cfg_setup (temphum12_cfg_t *cfg) |
Config Object Initialization function. More... | |
TEMPHUM12_RETVAL | temphum12_init (temphum12_t *ctx, temphum12_cfg_t *cfg) |
Initialization function. More... | |
void | temphum12_default_cfg (temphum12_t *ctx) |
Click Default Configuration function. More... | |
void | temphum12_generic_write (temphum12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | temphum12_generic_read (temphum12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
float | temphum12_get_temperature (temphum12_t *ctx, uint8_t temp_in) |
Temperature data. More... | |
float | temphum12_get_humidity (temphum12_t *ctx) |
Relative Huminidy data. More... | |
uint8_t | temphum12_get_intrrupt_state (temphum12_t *ctx) |
Interrupt state. More... | |
void temphum12_cfg_setup | ( | temphum12_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void temphum12_default_cfg | ( | temphum12_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
Configuration device TEMPHUM12_REG_INT_ENABLE:
This function executes default configuration for Temphum 12 click.
void temphum12_generic_read | ( | temphum12_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 |
This function reads data from the desired register.
void temphum12_generic_write | ( | temphum12_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. |
This function writes data to the desired register.
float temphum12_get_humidity | ( | temphum12_t * | ctx | ) |
Relative Huminidy data.
ctx | Click object. |
uint8_t temphum12_get_intrrupt_state | ( | temphum12_t * | ctx | ) |
Interrupt state.
ctx | Click object. |
float temphum12_get_temperature | ( | temphum12_t * | ctx, |
uint8_t | temp_in | ||
) |
Temperature data.
ctx | Click object. |
temp_in | Temperature in ... (FAHRENHEIT, KELVIN or CELSIUS) |
TEMPHUM12_RETVAL temphum12_init | ( | temphum12_t * | ctx, |
temphum12_cfg_t * | cfg | ||
) |
Initialization function.
temphum12 | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.