EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
CCS811 Measurement Mode Settings

Detailed Description

CCS811 measurement mode setting macro definitions.

Macros

#define CCS811_MEASURE_MODE_DRIVE_MODE_10SEC   0x20
 
#define CCS811_MEASURE_MODE_DRIVE_MODE_1SEC   0x10
 
#define CCS811_MEASURE_MODE_DRIVE_MODE_60SEC   0x30
 
#define CCS811_MEASURE_MODE_DRIVE_MODE_IDLE   0x00
 
#define CCS811_MEASURE_MODE_DRIVE_MODE_RAW   0x40
 
#define CCS811_MEASURE_MODE_DRIVE_MODE_SHIFT   4
 
#define CCS811_MEASURE_MODE_INTERRUPT   0x08
 
#define CCS811_MEASURE_MODE_THRESH   0x04
 

Macro Definition Documentation

#define CCS811_MEASURE_MODE_DRIVE_MODE_10SEC   0x20

IAQ Mode 2, a measurement is performed every 10 seconds

Definition at line 110 of file ccs811.h.

#define CCS811_MEASURE_MODE_DRIVE_MODE_1SEC   0x10

IAQ Mode 1, a measurement is performed every second

Definition at line 109 of file ccs811.h.

#define CCS811_MEASURE_MODE_DRIVE_MODE_60SEC   0x30

IAQ Mode 3, a measurement is performed every 60 seconds

Definition at line 111 of file ccs811.h.

#define CCS811_MEASURE_MODE_DRIVE_MODE_IDLE   0x00

Idle mode, measurements are disabled

Definition at line 108 of file ccs811.h.

#define CCS811_MEASURE_MODE_DRIVE_MODE_RAW   0x40

IAQ Mode 4, Raw Data Mode, a measurement is performed every 250ms for external algorithms

Definition at line 112 of file ccs811.h.

#define CCS811_MEASURE_MODE_DRIVE_MODE_SHIFT   4

DRIVE_MODE field bit shift value

Definition at line 107 of file ccs811.h.

#define CCS811_MEASURE_MODE_INTERRUPT   0x08

Interrupt generation enable

Definition at line 113 of file ccs811.h.

#define CCS811_MEASURE_MODE_THRESH   0x04

Enable interrupt when eCO2 level exceeds threshold

Definition at line 114 of file ccs811.h.