airquality9 2.0.0.0
Air Quality 9 Registers Settings

Settings for registers of Air Quality 9 Click driver. More...

Macros

#define AIRQUALITY9_OPMODE_DEEP_SLEEP   0x00
 Air Quality 9 operating mode settings.
 
#define AIRQUALITY9_OPMODE_IDLE   0x01
 
#define AIRQUALITY9_OPMODE_STANDARD   0x02
 
#define AIRQUALITY9_OPMODE_RESET   0xF0
 
#define AIRQUALITY_CONFIG_INTPOL_LOW   0x00
 Air Quality 9 interrupt config register settings.
 
#define AIRQUALITY_CONFIG_INTPOL_HIGH   0x40
 
#define AIRQUALITY_CONFIG_INTCFG_OPEN_DRAIN   0x00
 
#define AIRQUALITY_CONFIG_INTCFG_PUSH_PULL   0x20
 
#define AIRQUALITY_CONFIG_INTGPR_BIT   0x08
 
#define AIRQUALITY_CONFIG_INTDAT_BIT   0x02
 
#define AIRQUALITY_CONFIG_INTEN_BIT   0x01
 
#define AIRQUALITY_STATUS_OPMODE_RUNNING   0x80
 Air Quality 9 data status register values.
 
#define AIRQUALITY_STATUS_ERROR_DETECTED   0x40
 
#define AIRQUALITY_STATUS_VALID_NORMAL_OP   0x00
 
#define AIRQUALITY_STATUS_VALID_WARM_UP   0x04
 
#define AIRQUALITY_STATUS_VALID_INIT_START_UP   0x08
 
#define AIRQUALITY_STATUS_VALID_INVALID   0x0C
 
#define AIRQUALITY_STATUS_VALID_FLAG_BITS   0x0C
 
#define AIRQUALITY_STATUS_NEW_DATA   0x02
 
#define AIRQUALITY_STATUS_NEW_GPR   0x01
 
#define AIRQUALITY9_PART_ID_LSB   0x60
 Air Quality 9 part ID value.
 
#define AIRQUALITY9_PART_ID_MSB   0x01
 
#define AIRQUALITY9_AQI_UBA_EXELLENT   1
 Air Quality 9 AQI-UBA rating values.
 
#define AIRQUALITY9_AQI_UBA_GOOD   2
 
#define AIRQUALITY9_AQI_UBA_MODERATE   3
 
#define AIRQUALITY9_AQI_UBA_POOR   4
 
#define AIRQUALITY9_AQI_UBA_UNHEALTHY   5
 
#define AIRQUALITY9_DEVICE_ADDRESS_0   0x52
 Air Quality 9 device address setting.
 
#define AIRQUALITY9_DEVICE_ADDRESS_1   0x53
 
#define AIRQUALITY9_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define AIRQUALITY9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Air Quality 9 Click driver.

Macro Definition Documentation

◆ AIRQUALITY9_AQI_UBA_EXELLENT

#define AIRQUALITY9_AQI_UBA_EXELLENT   1

Air Quality 9 AQI-UBA rating values.

Specified AQI-UBA rating values of Air Quality 9 Click driver.

◆ AIRQUALITY9_AQI_UBA_GOOD

#define AIRQUALITY9_AQI_UBA_GOOD   2

◆ AIRQUALITY9_AQI_UBA_MODERATE

#define AIRQUALITY9_AQI_UBA_MODERATE   3

◆ AIRQUALITY9_AQI_UBA_POOR

#define AIRQUALITY9_AQI_UBA_POOR   4

◆ AIRQUALITY9_AQI_UBA_UNHEALTHY

#define AIRQUALITY9_AQI_UBA_UNHEALTHY   5

◆ AIRQUALITY9_DEVICE_ADDRESS_0

#define AIRQUALITY9_DEVICE_ADDRESS_0   0x52

Air Quality 9 device address setting.

Specified setting for device slave address selection of Air Quality 9 Click driver.

◆ AIRQUALITY9_DEVICE_ADDRESS_1

#define AIRQUALITY9_DEVICE_ADDRESS_1   0x53

◆ AIRQUALITY9_OPMODE_DEEP_SLEEP

#define AIRQUALITY9_OPMODE_DEEP_SLEEP   0x00

Air Quality 9 operating mode settings.

Specified operating mode settings of Air Quality 9 Click driver.

◆ AIRQUALITY9_OPMODE_IDLE

#define AIRQUALITY9_OPMODE_IDLE   0x01

◆ AIRQUALITY9_OPMODE_RESET

#define AIRQUALITY9_OPMODE_RESET   0xF0

◆ AIRQUALITY9_OPMODE_STANDARD

#define AIRQUALITY9_OPMODE_STANDARD   0x02

◆ AIRQUALITY9_PART_ID_LSB

#define AIRQUALITY9_PART_ID_LSB   0x60

Air Quality 9 part ID value.

Specified part ID value of Air Quality 9 Click driver.

◆ AIRQUALITY9_PART_ID_MSB

#define AIRQUALITY9_PART_ID_MSB   0x01

◆ AIRQUALITY9_SET_DATA_SAMPLE_EDGE

#define AIRQUALITY9_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with airquality9_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ AIRQUALITY9_SET_DATA_SAMPLE_MIDDLE

#define AIRQUALITY9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ AIRQUALITY_CONFIG_INTCFG_OPEN_DRAIN

#define AIRQUALITY_CONFIG_INTCFG_OPEN_DRAIN   0x00

◆ AIRQUALITY_CONFIG_INTCFG_PUSH_PULL

#define AIRQUALITY_CONFIG_INTCFG_PUSH_PULL   0x20

◆ AIRQUALITY_CONFIG_INTDAT_BIT

#define AIRQUALITY_CONFIG_INTDAT_BIT   0x02

◆ AIRQUALITY_CONFIG_INTEN_BIT

#define AIRQUALITY_CONFIG_INTEN_BIT   0x01

◆ AIRQUALITY_CONFIG_INTGPR_BIT

#define AIRQUALITY_CONFIG_INTGPR_BIT   0x08

◆ AIRQUALITY_CONFIG_INTPOL_HIGH

#define AIRQUALITY_CONFIG_INTPOL_HIGH   0x40

◆ AIRQUALITY_CONFIG_INTPOL_LOW

#define AIRQUALITY_CONFIG_INTPOL_LOW   0x00

Air Quality 9 interrupt config register settings.

Specified interrupt config register settings of Air Quality 9 Click driver.

◆ AIRQUALITY_STATUS_ERROR_DETECTED

#define AIRQUALITY_STATUS_ERROR_DETECTED   0x40

◆ AIRQUALITY_STATUS_NEW_DATA

#define AIRQUALITY_STATUS_NEW_DATA   0x02

◆ AIRQUALITY_STATUS_NEW_GPR

#define AIRQUALITY_STATUS_NEW_GPR   0x01

◆ AIRQUALITY_STATUS_OPMODE_RUNNING

#define AIRQUALITY_STATUS_OPMODE_RUNNING   0x80

Air Quality 9 data status register values.

Specified data status register values of Air Quality 9 Click driver.

◆ AIRQUALITY_STATUS_VALID_FLAG_BITS

#define AIRQUALITY_STATUS_VALID_FLAG_BITS   0x0C

◆ AIRQUALITY_STATUS_VALID_INIT_START_UP

#define AIRQUALITY_STATUS_VALID_INIT_START_UP   0x08

◆ AIRQUALITY_STATUS_VALID_INVALID

#define AIRQUALITY_STATUS_VALID_INVALID   0x0C

◆ AIRQUALITY_STATUS_VALID_NORMAL_OP

#define AIRQUALITY_STATUS_VALID_NORMAL_OP   0x00

◆ AIRQUALITY_STATUS_VALID_WARM_UP

#define AIRQUALITY_STATUS_VALID_WARM_UP   0x04