airquality2 2.0.0.0
|
Functions | |
void | airquality2_cfg_setup (airquality2_cfg_t *cfg) |
Config Object Initialization function. | |
AIRQUALITY2_RETVAL | airquality2_init (airquality2_t *ctx, airquality2_cfg_t *cfg) |
Initialization function. | |
void | airquality2_generic_read (airquality2_t *ctx, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | airquality2_get_all_data (airquality2_t *ctx, uint16_t *value_co2, uint16_t *value_tvoc, int32_t *resistance) |
Read all data info function. | |
void airquality2_cfg_setup | ( | airquality2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void airquality2_generic_read | ( | airquality2_t * | ctx, |
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data.
uint8_t airquality2_get_all_data | ( | airquality2_t * | ctx, |
uint16_t * | value_co2, | ||
uint16_t * | value_tvoc, | ||
int32_t * | resistance ) |
Read all data info function.
ctx | Click object. |
value_co2 | Pointer to 16-bit Prediction Value CO2. |
value_tvoc | Pointer to 16-bit Prediction Value TVOC. |
resistance | Pointer to 16-bit ( signed ) Resistance Value. |
@description Reads all data information about the indoor air quality.
AIRQUALITY2_RETVAL airquality2_init | ( | airquality2_t * | ctx, |
airquality2_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.