environment2 2.0.0.0
Environment 2 Registers Settings

Settings for registers of Environment 2 Click driver. More...

Macros

#define ENVIRONMENT2_SGP40_SET_DEV_ADDR   0x59
 Environment 2 device address setting.
 
#define ENVIRONMENT2_SHT40_SET_DEV_ADDR   0x44
 
#define ENVIRONMENT2_SEL_SGP40   0x00
 Environment 2 device selection.
 
#define ENVIRONMENT2_SEL_SHT40   0x01
 
#define F16(x)    ((fix16_t)(((x) >= 0) ? ((x)*65536.0 + 0.5) : ((x)*65536.0 - 0.5)))
 Environment 2 fixed point arithmetic parts.
 
#define VocAlgorithm_SAMPLING_INTERVAL   (1.)
 
#define VocAlgorithm_INITIAL_BLACKOUT   (45.)
 
#define VocAlgorithm_VOC_INDEX_GAIN   (230.)
 
#define VocAlgorithm_SRAW_STD_INITIAL   (50.)
 
#define VocAlgorithm_SRAW_STD_BONUS   (220.)
 
#define VocAlgorithm_TAU_MEAN_VARIANCE_HOURS   (12.)
 
#define VocAlgorithm_TAU_INITIAL_MEAN   (20.)
 
#define VocAlgorithm_INIT_DURATION_MEAN   ((3600. * 0.75))
 
#define VocAlgorithm_INIT_TRANSITION_MEAN   (0.01)
 
#define VocAlgorithm_TAU_INITIAL_VARIANCE   (2500.)
 
#define VocAlgorithm_INIT_DURATION_VARIANCE   ((3600. * 1.45))
 
#define VocAlgorithm_INIT_TRANSITION_VARIANCE   (0.01)
 
#define VocAlgorithm_GATING_THRESHOLD   (340.)
 
#define VocAlgorithm_GATING_THRESHOLD_INITIAL   (510.)
 
#define VocAlgorithm_GATING_THRESHOLD_TRANSITION   (0.09)
 
#define VocAlgorithm_GATING_MAX_DURATION_MINUTES   ((60. * 3.))
 
#define VocAlgorithm_GATING_MAX_RATIO   (0.3)
 
#define VocAlgorithm_SIGMOID_L   (500.)
 
#define VocAlgorithm_SIGMOID_K   (-0.0065)
 
#define VocAlgorithm_SIGMOID_X0   (213.)
 
#define VocAlgorithm_VOC_INDEX_OFFSET_DEFAULT   (100.)
 
#define VocAlgorithm_LP_TAU_FAST   (20.0)
 
#define VocAlgorithm_LP_TAU_SLOW   (500.0)
 
#define VocAlgorithm_LP_ALPHA   (-0.2)
 
#define VocAlgorithm_PERSISTENCE_UPTIME_GAMMA   ((3. * 3600.))
 
#define VocAlgorithm_MEAN_VARIANCE_ESTIMATOR__GAMMA_SCALING   (64.)
 
#define VocAlgorithm_MEAN_VARIANCE_ESTIMATOR__FIX16_MAX   (32767.)
 

Detailed Description

Settings for registers of Environment 2 Click driver.

Macro Definition Documentation

◆ ENVIRONMENT2_SEL_SGP40

#define ENVIRONMENT2_SEL_SGP40   0x00

Environment 2 device selection.

Specified selection for device slave address of Environment 2 Click driver.

◆ ENVIRONMENT2_SEL_SHT40

#define ENVIRONMENT2_SEL_SHT40   0x01

◆ ENVIRONMENT2_SGP40_SET_DEV_ADDR

#define ENVIRONMENT2_SGP40_SET_DEV_ADDR   0x59

Environment 2 device address setting.

Specified setting for device slave address selection of Environment 2 Click driver.

◆ ENVIRONMENT2_SHT40_SET_DEV_ADDR

#define ENVIRONMENT2_SHT40_SET_DEV_ADDR   0x44

◆ F16

#define F16 ( x)     ((fix16_t)(((x) >= 0) ? ((x)*65536.0 + 0.5) : ((x)*65536.0 - 0.5)))

Environment 2 fixed point arithmetic parts.

Specified the fixed point arithmetic parts for VOC algorithm of Environment 2 Click driver.

◆ VocAlgorithm_GATING_MAX_DURATION_MINUTES

#define VocAlgorithm_GATING_MAX_DURATION_MINUTES   ((60. * 3.))

◆ VocAlgorithm_GATING_MAX_RATIO

#define VocAlgorithm_GATING_MAX_RATIO   (0.3)

◆ VocAlgorithm_GATING_THRESHOLD

#define VocAlgorithm_GATING_THRESHOLD   (340.)

◆ VocAlgorithm_GATING_THRESHOLD_INITIAL

#define VocAlgorithm_GATING_THRESHOLD_INITIAL   (510.)

◆ VocAlgorithm_GATING_THRESHOLD_TRANSITION

#define VocAlgorithm_GATING_THRESHOLD_TRANSITION   (0.09)

◆ VocAlgorithm_INIT_DURATION_MEAN

#define VocAlgorithm_INIT_DURATION_MEAN   ((3600. * 0.75))

◆ VocAlgorithm_INIT_DURATION_VARIANCE

#define VocAlgorithm_INIT_DURATION_VARIANCE   ((3600. * 1.45))

◆ VocAlgorithm_INIT_TRANSITION_MEAN

#define VocAlgorithm_INIT_TRANSITION_MEAN   (0.01)

◆ VocAlgorithm_INIT_TRANSITION_VARIANCE

#define VocAlgorithm_INIT_TRANSITION_VARIANCE   (0.01)

◆ VocAlgorithm_INITIAL_BLACKOUT

#define VocAlgorithm_INITIAL_BLACKOUT   (45.)

◆ VocAlgorithm_LP_ALPHA

#define VocAlgorithm_LP_ALPHA   (-0.2)

◆ VocAlgorithm_LP_TAU_FAST

#define VocAlgorithm_LP_TAU_FAST   (20.0)

◆ VocAlgorithm_LP_TAU_SLOW

#define VocAlgorithm_LP_TAU_SLOW   (500.0)

◆ VocAlgorithm_MEAN_VARIANCE_ESTIMATOR__FIX16_MAX

#define VocAlgorithm_MEAN_VARIANCE_ESTIMATOR__FIX16_MAX   (32767.)

◆ VocAlgorithm_MEAN_VARIANCE_ESTIMATOR__GAMMA_SCALING

#define VocAlgorithm_MEAN_VARIANCE_ESTIMATOR__GAMMA_SCALING   (64.)

◆ VocAlgorithm_PERSISTENCE_UPTIME_GAMMA

#define VocAlgorithm_PERSISTENCE_UPTIME_GAMMA   ((3. * 3600.))

◆ VocAlgorithm_SAMPLING_INTERVAL

#define VocAlgorithm_SAMPLING_INTERVAL   (1.)

◆ VocAlgorithm_SIGMOID_K

#define VocAlgorithm_SIGMOID_K   (-0.0065)

◆ VocAlgorithm_SIGMOID_L

#define VocAlgorithm_SIGMOID_L   (500.)

◆ VocAlgorithm_SIGMOID_X0

#define VocAlgorithm_SIGMOID_X0   (213.)

◆ VocAlgorithm_SRAW_STD_BONUS

#define VocAlgorithm_SRAW_STD_BONUS   (220.)

◆ VocAlgorithm_SRAW_STD_INITIAL

#define VocAlgorithm_SRAW_STD_INITIAL   (50.)

◆ VocAlgorithm_TAU_INITIAL_MEAN

#define VocAlgorithm_TAU_INITIAL_MEAN   (20.)

◆ VocAlgorithm_TAU_INITIAL_VARIANCE

#define VocAlgorithm_TAU_INITIAL_VARIANCE   (2500.)

◆ VocAlgorithm_TAU_MEAN_VARIANCE_HOURS

#define VocAlgorithm_TAU_MEAN_VARIANCE_HOURS   (12.)

◆ VocAlgorithm_VOC_INDEX_GAIN

#define VocAlgorithm_VOC_INDEX_GAIN   (230.)

◆ VocAlgorithm_VOC_INDEX_OFFSET_DEFAULT

#define VocAlgorithm_VOC_INDEX_OFFSET_DEFAULT   (100.)