airquality3 2.0.0.0
|
This file contains API for Air quality 3 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | airquality3_t |
Click ctx object definition. More... | |
struct | airquality3_cfg_t |
Click configuration structure definition. More... | |
struct | airguality3_info_t |
Info structure definition. More... | |
struct | airquality3_air_data_t |
Air data structure definition. More... | |
Functions | |
void | airquality3_cfg_setup (airquality3_cfg_t *cfg) |
Config Object Initialization function. | |
AIRQUALITY3_RETVAL | airquality3_init (airquality3_t *ctx, airquality3_cfg_t *cfg) |
Initialization function. | |
void | airquality3_default_cfg (airquality3_t *ctx) |
Click Default Configuration function. | |
void | airquality3_generic_write (airquality3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | airquality3_generic_read (airquality3_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | airquality3_get_starus (airquality3_t *ctx) |
Reads status. | |
void | airquality3_get_device_info (airquality3_t *ctx, airguality3_info_t *info) |
Get device info. | |
void | airquality3_software_reset (airquality3_t *ctx, uint32_t reset) |
Software reset. | |
uint8_t | airquality3_get_co2_and_tvoc (airquality3_t *ctx, airquality3_air_data_t *air_data) |
Get CO2 and TVOC data. | |
void | airquality3_get_raw_data (airquality3_t *ctx, uint16_t *raw_data) |
Function reads raw ADC data values for resistance and current source used. | |
void | airquality3_set_environment_data (airquality3_t *ctx, uint32_t env_data) |
Temperature and humidity data settings. | |
void | airquality3_get_ntc_data (airquality3_t *ctx, uint8_t *data_buf) |
Get NTC value. | |
void | airquality3_set_measurement_mode (airquality3_t *ctx, uint8_t mode) |
Function for settings sensor drive mode and interrupts. | |
void | airquality3_set_baseline (airquality3_t *ctx, uint16_t baseline) |
Function for settings baseline value. | |
void | airquality3_app_function (airquality3_t *ctx, uint8_t app_task) |
function to start APP task | |
void | airquality3_set_power (airquality3_t *ctx, uint16_t pwr_state) |
Function for power ON/OFF chip. | |
void | airquality3_hardware_reset (airquality3_t *ctx) |
Hardware reset. | |
uint8_t | airquality3_get_interrupt_state (airquality3_t *ctx) |
Get interrupt state. | |
This file contains API for Air quality 3 Click driver.