airquality8 2.0.0.0
|
This file contains API for Air Quality 8 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 | airquality8_t |
Air Quality 8 Click context object. More... | |
struct | airquality8_cfg_t |
Air Quality 8 Click configuration object. More... | |
Enumerations | |
enum | airquality8_return_value_t { AIRQUALITY8_OK = 0 , AIRQUALITY8_ERROR = -1 , AIRQUALITY8_ERROR_INIT_OUT_OF_RANGE = 1 , AIRQUALITY8_ERROR_GAS_TIMEOUT = 2 , AIRQUALITY8_ERROR_I2C = 3 , AIRQUALITY8_ERROR_SENSOR_UNSUPPORTED = 4 , AIRQUALITY8_ERROR_CONFIG_MISSING = 5 , AIRQUALITY8_ERROR_SENSOR = 6 , AIRQUALITY8_ERROR_ACCESS_CONFLICT = 7 , AIRQUALITY8_ERROR_POR_EVENT = 8 } |
Air Quality 8 Click return value data. More... | |
Functions | |
void | airquality8_cfg_setup (airquality8_cfg_t *cfg) |
Air Quality 8 configuration object setup function. | |
err_t | airquality8_init (airquality8_t *ctx, airquality8_cfg_t *cfg) |
Air Quality 8 initialization function. | |
err_t | airquality8_default_cfg (airquality8_t *ctx) |
Air Quality 8 default configuration function. | |
err_t | airquality8_generic_write (airquality8_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Air Quality 8 I2C writing function. | |
err_t | airquality8_generic_read (airquality8_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Air Quality 8 I2C reading function. | |
void | airquality8_hw_reset (airquality8_t *ctx) |
Air Quality 8 reset function. | |
err_t | airquality8_get_status (airquality8_t *ctx, uint8_t *status) |
Air Quality 8 get status function. | |
err_t | airquality8_get_sensor_info (airquality8_t *ctx, uint8_t *cfg_data, uint8_t *prod_data, uint16_t *pid) |
Air Quality 8 get sensor info function. | |
err_t | airquality8_init_sensor (airquality8_t *ctx, uint16_t *mox_lr, uint16_t *mox_er) |
Air Quality 8 init sensor function. | |
err_t | airquality8_init_measurement (airquality8_t *ctx) |
Air Quality 8 init measurement function. | |
err_t | airquality8_start_measurement (airquality8_t *ctx) |
Air Quality 8 start measurement function. | |
err_t | airquality8_read_rmox (airquality8_t *ctx, float *rmox, uint16_t mox_lr, uint16_t mox_er) |
Air Quality 8 calculate rmox resistance function. | |
float | airquality8_calc_oaq (float *rmox, uint8_t rcda_strategy, uint8_t gas_detection_strategy) |
Air Quality 8 calculates AQI function. | |
uint8_t | raq_check_interrupt (airquality8_t *ctx) |
Air Quality 8 check interrupt function. | |
This file contains API for Air Quality 8 Click Driver.
Air Quality 8 Click return value data.
Predefined enum values for driver return values.