airquality9 2.0.0.0
|
This file contains API for Air Quality 9 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | airquality9_s |
Air Quality 9 Click context object. More... | |
struct | airquality9_cfg_t |
Air Quality 9 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | airquality9_master_io_t) (struct airquality9_s *, uint8_t, uint8_t *, uint8_t) |
Air Quality 9 Click driver interface. | |
typedef struct airquality9_s | airquality9_t |
Air Quality 9 Click context object. | |
Enumerations | |
enum | airquality9_drv_t { AIRQUALITY9_DRV_SEL_SPI , AIRQUALITY9_DRV_SEL_I2C } |
Air Quality 9 Click driver selector. More... | |
enum | airquality9_return_value_t { AIRQUALITY9_OK = 0 , AIRQUALITY9_ERROR = -1 } |
Air Quality 9 Click return value data. More... | |
Functions | |
void | airquality9_cfg_setup (airquality9_cfg_t *cfg) |
Air Quality 9 configuration object setup function. | |
void | airquality9_drv_interface_selection (airquality9_cfg_t *cfg, airquality9_drv_t drv_sel) |
Air Quality 9 driver interface setup function. | |
err_t | airquality9_init (airquality9_t *ctx, airquality9_cfg_t *cfg) |
Air Quality 9 initialization function. | |
err_t | airquality9_default_cfg (airquality9_t *ctx) |
Air Quality 9 default configuration function. | |
err_t | airquality9_generic_write (airquality9_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Air Quality 9 data writing function. | |
err_t | airquality9_generic_read (airquality9_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Air Quality 9 data reading function. | |
void | airquality9_enable_device (airquality9_t *ctx) |
Air Quality 9 enable device function. | |
void | airquality9_disable_device (airquality9_t *ctx) |
Air Quality 9 disable device function. | |
uint8_t | airquality9_get_int_pin (airquality9_t *ctx) |
Air Quality 9 get int pin function. | |
err_t | airquality9_check_communication (airquality9_t *ctx) |
Air Quality 9 check communication function. | |
err_t | airquality9_set_operating_mode (airquality9_t *ctx, uint8_t opmode) |
Air Quality 9 set operating mode function. | |
err_t | airquality9_set_interrupt_config (airquality9_t *ctx, uint8_t int_cfg) |
Air Quality 9 set interrupt config function. | |
err_t | airquality9_read_status (airquality9_t *ctx, uint8_t *status) |
Air Quality 9 read status function. | |
err_t | airquality9_read_aqi_uba (airquality9_t *ctx, uint8_t *aqi_uba) |
Air Quality 9 read aqi uba function. | |
err_t | airquality9_read_tvoc (airquality9_t *ctx, uint16_t *tvoc) |
Air Quality 9 read tvoc function. | |
err_t | airquality9_read_eco2 (airquality9_t *ctx, uint16_t *eco2) |
Air Quality 9 read eco2 function. | |
This file contains API for Air Quality 9 Click Driver.
typedef err_t(* airquality9_master_io_t) (struct airquality9_s *, uint8_t, uint8_t *, uint8_t) |
Air Quality 9 Click driver interface.
Definition of driver interface of Air Quality 9 Click driver. Driver serial interface.
typedef struct airquality9_s airquality9_t |
Air Quality 9 Click context object.
Context object definition of Air Quality 9 Click driver.
enum airquality9_drv_t |