temphum12 2.0.0.0
|
Functions | |
void | temphum12_cfg_setup (temphum12_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM12_RETVAL | temphum12_init (temphum12_t *ctx, temphum12_cfg_t *cfg) |
Initialization function. | |
void | temphum12_default_cfg (temphum12_t *ctx) |
Click Default Configuration function. | |
void | temphum12_generic_write (temphum12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum12_generic_read (temphum12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | temphum12_get_temperature (temphum12_t *ctx, uint8_t temp_in) |
Temperature data. | |
float | temphum12_get_humidity (temphum12_t *ctx) |
Relative Huminidy data. | |
uint8_t | temphum12_get_intrrupt_state (temphum12_t *ctx) |
Interrupt state. | |
void temphum12_cfg_setup | ( | temphum12_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description 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: - TEMPHUM12_INTE_DRDY_ENABLE TEMPHUM12_REG_DRDY_INT_CONFIG: - TEMPHUM12_ICFG_NORAML_OPERATION - TEMPHUM12_ICFG_AMM_5Hz - TEMPHUM12_ICFG_HEATER_DISABLE - TEMPHUM12_ICFG_DRDY_ENABLE - TEMPHUM12_ICFG_INT_ACTIVE_HIGH - TEMPHUM12_ICFG_COMPARATOR_MODE TEMPHUM12_REG_CONFIGURATION: - TEMPHUM12_MCFG_TEMP_RES_14bit - TEMPHUM12_MCFG_HUM_RES_14bit - TEMPHUM12_MCFG_TEMP_HUM_READ - TEMPHUM12_MCFG_TRIG_START_MEASUREMEN
@description 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 |
@description 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. |
@description 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. |
@description This function initializes all necessary pins and peripherals used for this click.