pressure21 2.1.0.0
Pressure 21 Registers Settings

Settings for registers of Pressure 21 Click driver. More...

Macros

#define PRESSURE21_CHIP_ID   0x50
 Pressure 21 chip ID value.
 
#define PRESSURE21_PAD_INT_DRV_DEFAULT   0x30
 Pressure 21 INT config register settings.
 
#define PRESSURE21_INT_ENABLE   0x08
 
#define PRESSURE21_INT_DISABLE   0x00
 
#define PRESSURE21_INT_OPEN_DRAIN   0x04
 
#define PRESSURE21_INT_PUSH_PULL   0x00
 
#define PRESSURE21_INT_ACTIVE_HIGH   0x02
 
#define PRESSURE21_INT_ACTIVE_LOW   0x00
 
#define PRESSURE21_INT_LATCHED   0x01
 
#define PRESSURE21_INT_PULSED   0x00
 
#define PRESSURE21_OOR_P_EN   0x08
 Pressure 21 INT source register settings.
 
#define PRESSURE21_FIFO_THS_EN   0x04
 
#define PRESSURE21_FIFO_FULL_EN   0x02
 
#define PRESSURE21_DRDY_DATA_REG_EN   0x01
 
#define PRESSURE21_DISABLE_INT   0x00
 
#define PRESSURE21_INT_STAT_POR   0x10
 Pressure 21 INT status register settings.
 
#define PRESSURE21_INT_STAT_OOR_P   0x08
 
#define PRESSURE21_INT_STAT_FIFO_THS   0x04
 
#define PRESSURE21_INT_STAT_FIFO_FULL   0x02
 
#define PRESSURE21_INT_STAT_DRDY_DATA_REG   0x01
 
#define PRESSURE21_OOR_SEL_IIR_P   0x80
 Pressure 21 DSP config register settings.
 
#define PRESSURE21_FIFO_SEL_IIR_P   0x40
 
#define PRESSURE21_SHDW_SEL_IIR_P   0x20
 
#define PRESSURE21_FIFO_SEL_IIR_T   0x10
 
#define PRESSURE21_SHDW_SEL_IIR_T   0x08
 
#define PRESSURE21_IIR_FLUSH_FORCED_EN   0x04
 
#define PRESSURE21_DSP_CFG_RESERVED_BITS   0x03
 
#define PRESSURE21_SET_IIR_P_BYPASS   0x00
 Pressure 21 DSP IIR config register settings.
 
#define PRESSURE21_SET_IIR_P_FLT_COEF_1   0x08
 
#define PRESSURE21_SET_IIR_P_FLT_COEF_3   0x10
 
#define PRESSURE21_SET_IIR_P_FLT_COEF_7   0x18
 
#define PRESSURE21_SET_IIR_P_FLT_COEF_15   0x20
 
#define PRESSURE21_SET_IIR_P_FLT_COEF_31   0x28
 
#define PRESSURE21_SET_IIR_P_FLT_COEF_63   0x30
 
#define PRESSURE21_SET_IIR_P_FLT_COEF_127   0x38
 
#define PRESSURE21_SET_IIR_T_BYPASS   0x00
 
#define PRESSURE21_SET_IIR_T_FLT_COEF_1   0x01
 
#define PRESSURE21_SET_IIR_T_FLT_COEF_3   0x02
 
#define PRESSURE21_SET_IIR_T_FLT_COEF_7   0x03
 
#define PRESSURE21_SET_IIR_T_FLT_COEF_15   0x04
 
#define PRESSURE21_SET_IIR_T_FLT_COEF_31   0x05
 
#define PRESSURE21_SET_IIR_T_FLT_COEF_63   0x06
 
#define PRESSURE21_SET_IIR_T_FLT_COEF_127   0x07
 
#define PRESSURE21_PRESS_EN   0x40
 Pressure 21 OSR config register settings.
 
#define PRESSURE21_OSR_P_1X   0x00
 
#define PRESSURE21_OSR_P_2X   0x08
 
#define PRESSURE21_OSR_P_4X   0x10
 
#define PRESSURE21_OSR_P_8X   0x18
 
#define PRESSURE21_OSR_P_16X   0x20
 
#define PRESSURE21_OSR_P_32X   0x28
 
#define PRESSURE21_OSR_P_64X   0x30
 
#define PRESSURE21_OSR_P_128X   0x38
 
#define PRESSURE21_OSR_T_1X   0x00
 
#define PRESSURE21_OSR_T_2X   0x01
 
#define PRESSURE21_OSR_T_4X   0x02
 
#define PRESSURE21_OSR_T_8X   0x03
 
#define PRESSURE21_OSR_T_16X   0x04
 
#define PRESSURE21_OSR_T_32X   0x05
 
#define PRESSURE21_OSR_T_64X   0x06
 
#define PRESSURE21_OSR_T_128X   0x07
 
#define PRESSURE21_DEEP_DIS   0x80
 Pressure 21 ODR config register settings.
 
#define PRESSURE21_ODR_240_HZ   0x00
 
#define PRESSURE21_ODR_218p537_HZ   0x04
 
#define PRESSURE21_ODR_199p111_HZ   0x08
 
#define PRESSURE21_ODR_179p2_HZ   0x0C
 
#define PRESSURE21_ODR_160_HZ   0x10
 
#define PRESSURE21_ODR_149p333_HZ   0x14
 
#define PRESSURE21_ODR_140_HZ   0x18
 
#define PRESSURE21_ODR_129p855_HZ   0x1C
 
#define PRESSURE21_ODR_120_HZ   0x20
 
#define PRESSURE21_ODR_110p164_HZ   0x24
 
#define PRESSURE21_ODR_100p299_HZ   0x28
 
#define PRESSURE21_ODR_89p6_HZ   0x2C
 
#define PRESSURE21_ODR_80_HZ   0x30
 
#define PRESSURE21_ODR_70_HZ   0x34
 
#define PRESSURE21_ODR_60_HZ   0x38
 
#define PRESSURE21_ODR_50p056_HZ   0x3C
 
#define PRESSURE21_ODR_45p025_HZ   0x40
 
#define PRESSURE21_ODR_40_HZ   0x44
 
#define PRESSURE21_ODR_35_HZ   0x48
 
#define PRESSURE21_ODR_30_HZ   0x4C
 
#define PRESSURE21_ODR_25p005_HZ   0x50
 
#define PRESSURE21_ODR_20_HZ   0x54
 
#define PRESSURE21_ODR_15_HZ   0x58
 
#define PRESSURE21_ODR_10_HZ   0x5C
 
#define PRESSURE21_ODR_5_HZ   0x60
 
#define PRESSURE21_ODR_4_HZ   0x64
 
#define PRESSURE21_ODR_3_HZ   0x68
 
#define PRESSURE21_ODR_2_HZ   0x6C
 
#define PRESSURE21_ODR_1_HZ   0x70
 
#define PRESSURE21_ODR_0p5_HZ   0x74
 
#define PRESSURE21_ODR_0p25_HZ   0x78
 
#define PRESSURE21_ODR_0p125_HZ   0x7C
 
#define PRESSURE21_PWR_MODE_STANDBY   0x00
 
#define PRESSURE21_PWR_MODE_NORMAL   0x01
 
#define PRESSURE21_PWR_MODE_FORCE   0x02
 
#define PRESSURE21_PWR_MODE_NON_STOP   0x03
 
#define PRESSURE21_PRESS_RESOLUTION   64.0
 Pressure 21 pressure and temperature calculation values.
 
#define PRESSURE21_TEMP_RESOLUTION   65536.0
 
#define PRESSURE21_PA_TO_MBAR   0.01
 
#define PRESSURE21_DEVICE_ADDRESS_0   0x46
 Pressure 21 device address setting.
 
#define PRESSURE21_DEVICE_ADDRESS_1   0x47
 
#define PRESSURE21_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define PRESSURE21_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Pressure 21 Click driver.

Macro Definition Documentation

◆ PRESSURE21_CHIP_ID

#define PRESSURE21_CHIP_ID   0x50

Pressure 21 chip ID value.

Specified chip ID value of Pressure 21 Click driver.

◆ PRESSURE21_DEEP_DIS

#define PRESSURE21_DEEP_DIS   0x80

Pressure 21 ODR config register settings.

Specified settings for ODR config register of Pressure 21 Click driver.

◆ PRESSURE21_DEVICE_ADDRESS_0

#define PRESSURE21_DEVICE_ADDRESS_0   0x46

Pressure 21 device address setting.

Specified setting for device slave address selection of Pressure 21 Click driver.

◆ PRESSURE21_DEVICE_ADDRESS_1

#define PRESSURE21_DEVICE_ADDRESS_1   0x47

◆ PRESSURE21_DISABLE_INT

#define PRESSURE21_DISABLE_INT   0x00

◆ PRESSURE21_DRDY_DATA_REG_EN

#define PRESSURE21_DRDY_DATA_REG_EN   0x01

◆ PRESSURE21_DSP_CFG_RESERVED_BITS

#define PRESSURE21_DSP_CFG_RESERVED_BITS   0x03

◆ PRESSURE21_FIFO_FULL_EN

#define PRESSURE21_FIFO_FULL_EN   0x02

◆ PRESSURE21_FIFO_SEL_IIR_P

#define PRESSURE21_FIFO_SEL_IIR_P   0x40

◆ PRESSURE21_FIFO_SEL_IIR_T

#define PRESSURE21_FIFO_SEL_IIR_T   0x10

◆ PRESSURE21_FIFO_THS_EN

#define PRESSURE21_FIFO_THS_EN   0x04

◆ PRESSURE21_IIR_FLUSH_FORCED_EN

#define PRESSURE21_IIR_FLUSH_FORCED_EN   0x04

◆ PRESSURE21_INT_ACTIVE_HIGH

#define PRESSURE21_INT_ACTIVE_HIGH   0x02

◆ PRESSURE21_INT_ACTIVE_LOW

#define PRESSURE21_INT_ACTIVE_LOW   0x00

◆ PRESSURE21_INT_DISABLE

#define PRESSURE21_INT_DISABLE   0x00

◆ PRESSURE21_INT_ENABLE

#define PRESSURE21_INT_ENABLE   0x08

◆ PRESSURE21_INT_LATCHED

#define PRESSURE21_INT_LATCHED   0x01

◆ PRESSURE21_INT_OPEN_DRAIN

#define PRESSURE21_INT_OPEN_DRAIN   0x04

◆ PRESSURE21_INT_PULSED

#define PRESSURE21_INT_PULSED   0x00

◆ PRESSURE21_INT_PUSH_PULL

#define PRESSURE21_INT_PUSH_PULL   0x00

◆ PRESSURE21_INT_STAT_DRDY_DATA_REG

#define PRESSURE21_INT_STAT_DRDY_DATA_REG   0x01

◆ PRESSURE21_INT_STAT_FIFO_FULL

#define PRESSURE21_INT_STAT_FIFO_FULL   0x02

◆ PRESSURE21_INT_STAT_FIFO_THS

#define PRESSURE21_INT_STAT_FIFO_THS   0x04

◆ PRESSURE21_INT_STAT_OOR_P

#define PRESSURE21_INT_STAT_OOR_P   0x08

◆ PRESSURE21_INT_STAT_POR

#define PRESSURE21_INT_STAT_POR   0x10

Pressure 21 INT status register settings.

Specified settings for INT status register of Pressure 21 Click driver.

◆ PRESSURE21_ODR_0p125_HZ

#define PRESSURE21_ODR_0p125_HZ   0x7C

◆ PRESSURE21_ODR_0p25_HZ

#define PRESSURE21_ODR_0p25_HZ   0x78

◆ PRESSURE21_ODR_0p5_HZ

#define PRESSURE21_ODR_0p5_HZ   0x74

◆ PRESSURE21_ODR_100p299_HZ

#define PRESSURE21_ODR_100p299_HZ   0x28

◆ PRESSURE21_ODR_10_HZ

#define PRESSURE21_ODR_10_HZ   0x5C

◆ PRESSURE21_ODR_110p164_HZ

#define PRESSURE21_ODR_110p164_HZ   0x24

◆ PRESSURE21_ODR_120_HZ

#define PRESSURE21_ODR_120_HZ   0x20

◆ PRESSURE21_ODR_129p855_HZ

#define PRESSURE21_ODR_129p855_HZ   0x1C

◆ PRESSURE21_ODR_140_HZ

#define PRESSURE21_ODR_140_HZ   0x18

◆ PRESSURE21_ODR_149p333_HZ

#define PRESSURE21_ODR_149p333_HZ   0x14

◆ PRESSURE21_ODR_15_HZ

#define PRESSURE21_ODR_15_HZ   0x58

◆ PRESSURE21_ODR_160_HZ

#define PRESSURE21_ODR_160_HZ   0x10

◆ PRESSURE21_ODR_179p2_HZ

#define PRESSURE21_ODR_179p2_HZ   0x0C

◆ PRESSURE21_ODR_199p111_HZ

#define PRESSURE21_ODR_199p111_HZ   0x08

◆ PRESSURE21_ODR_1_HZ

#define PRESSURE21_ODR_1_HZ   0x70

◆ PRESSURE21_ODR_20_HZ

#define PRESSURE21_ODR_20_HZ   0x54

◆ PRESSURE21_ODR_218p537_HZ

#define PRESSURE21_ODR_218p537_HZ   0x04

◆ PRESSURE21_ODR_240_HZ

#define PRESSURE21_ODR_240_HZ   0x00

◆ PRESSURE21_ODR_25p005_HZ

#define PRESSURE21_ODR_25p005_HZ   0x50

◆ PRESSURE21_ODR_2_HZ

#define PRESSURE21_ODR_2_HZ   0x6C

◆ PRESSURE21_ODR_30_HZ

#define PRESSURE21_ODR_30_HZ   0x4C

◆ PRESSURE21_ODR_35_HZ

#define PRESSURE21_ODR_35_HZ   0x48

◆ PRESSURE21_ODR_3_HZ

#define PRESSURE21_ODR_3_HZ   0x68

◆ PRESSURE21_ODR_40_HZ

#define PRESSURE21_ODR_40_HZ   0x44

◆ PRESSURE21_ODR_45p025_HZ

#define PRESSURE21_ODR_45p025_HZ   0x40

◆ PRESSURE21_ODR_4_HZ

#define PRESSURE21_ODR_4_HZ   0x64

◆ PRESSURE21_ODR_50p056_HZ

#define PRESSURE21_ODR_50p056_HZ   0x3C

◆ PRESSURE21_ODR_5_HZ

#define PRESSURE21_ODR_5_HZ   0x60

◆ PRESSURE21_ODR_60_HZ

#define PRESSURE21_ODR_60_HZ   0x38

◆ PRESSURE21_ODR_70_HZ

#define PRESSURE21_ODR_70_HZ   0x34

◆ PRESSURE21_ODR_80_HZ

#define PRESSURE21_ODR_80_HZ   0x30

◆ PRESSURE21_ODR_89p6_HZ

#define PRESSURE21_ODR_89p6_HZ   0x2C

◆ PRESSURE21_OOR_P_EN

#define PRESSURE21_OOR_P_EN   0x08

Pressure 21 INT source register settings.

Specified settings for INT source register of Pressure 21 Click driver.

◆ PRESSURE21_OOR_SEL_IIR_P

#define PRESSURE21_OOR_SEL_IIR_P   0x80

Pressure 21 DSP config register settings.

Specified settings for DSP config register of Pressure 21 Click driver.

◆ PRESSURE21_OSR_P_128X

#define PRESSURE21_OSR_P_128X   0x38

◆ PRESSURE21_OSR_P_16X

#define PRESSURE21_OSR_P_16X   0x20

◆ PRESSURE21_OSR_P_1X

#define PRESSURE21_OSR_P_1X   0x00

◆ PRESSURE21_OSR_P_2X

#define PRESSURE21_OSR_P_2X   0x08

◆ PRESSURE21_OSR_P_32X

#define PRESSURE21_OSR_P_32X   0x28

◆ PRESSURE21_OSR_P_4X

#define PRESSURE21_OSR_P_4X   0x10

◆ PRESSURE21_OSR_P_64X

#define PRESSURE21_OSR_P_64X   0x30

◆ PRESSURE21_OSR_P_8X

#define PRESSURE21_OSR_P_8X   0x18

◆ PRESSURE21_OSR_T_128X

#define PRESSURE21_OSR_T_128X   0x07

◆ PRESSURE21_OSR_T_16X

#define PRESSURE21_OSR_T_16X   0x04

◆ PRESSURE21_OSR_T_1X

#define PRESSURE21_OSR_T_1X   0x00

◆ PRESSURE21_OSR_T_2X

#define PRESSURE21_OSR_T_2X   0x01

◆ PRESSURE21_OSR_T_32X

#define PRESSURE21_OSR_T_32X   0x05

◆ PRESSURE21_OSR_T_4X

#define PRESSURE21_OSR_T_4X   0x02

◆ PRESSURE21_OSR_T_64X

#define PRESSURE21_OSR_T_64X   0x06

◆ PRESSURE21_OSR_T_8X

#define PRESSURE21_OSR_T_8X   0x03

◆ PRESSURE21_PA_TO_MBAR

#define PRESSURE21_PA_TO_MBAR   0.01

◆ PRESSURE21_PAD_INT_DRV_DEFAULT

#define PRESSURE21_PAD_INT_DRV_DEFAULT   0x30

Pressure 21 INT config register settings.

Specified settings for INT config register of Pressure 21 Click driver.

◆ PRESSURE21_PRESS_EN

#define PRESSURE21_PRESS_EN   0x40

Pressure 21 OSR config register settings.

Specified settings for OSR config register of Pressure 21 Click driver.

◆ PRESSURE21_PRESS_RESOLUTION

#define PRESSURE21_PRESS_RESOLUTION   64.0

Pressure 21 pressure and temperature calculation values.

Specified pressure and temperature calculation values of Pressure 21 Click driver.

◆ PRESSURE21_PWR_MODE_FORCE

#define PRESSURE21_PWR_MODE_FORCE   0x02

◆ PRESSURE21_PWR_MODE_NON_STOP

#define PRESSURE21_PWR_MODE_NON_STOP   0x03

◆ PRESSURE21_PWR_MODE_NORMAL

#define PRESSURE21_PWR_MODE_NORMAL   0x01

◆ PRESSURE21_PWR_MODE_STANDBY

#define PRESSURE21_PWR_MODE_STANDBY   0x00

◆ PRESSURE21_SET_DATA_SAMPLE_EDGE

#define PRESSURE21_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 pressure21_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ PRESSURE21_SET_DATA_SAMPLE_MIDDLE

#define PRESSURE21_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ PRESSURE21_SET_IIR_P_BYPASS

#define PRESSURE21_SET_IIR_P_BYPASS   0x00

Pressure 21 DSP IIR config register settings.

Specified settings for DSP IIR config register of Pressure 21 Click driver.

◆ PRESSURE21_SET_IIR_P_FLT_COEF_1

#define PRESSURE21_SET_IIR_P_FLT_COEF_1   0x08

◆ PRESSURE21_SET_IIR_P_FLT_COEF_127

#define PRESSURE21_SET_IIR_P_FLT_COEF_127   0x38

◆ PRESSURE21_SET_IIR_P_FLT_COEF_15

#define PRESSURE21_SET_IIR_P_FLT_COEF_15   0x20

◆ PRESSURE21_SET_IIR_P_FLT_COEF_3

#define PRESSURE21_SET_IIR_P_FLT_COEF_3   0x10

◆ PRESSURE21_SET_IIR_P_FLT_COEF_31

#define PRESSURE21_SET_IIR_P_FLT_COEF_31   0x28

◆ PRESSURE21_SET_IIR_P_FLT_COEF_63

#define PRESSURE21_SET_IIR_P_FLT_COEF_63   0x30

◆ PRESSURE21_SET_IIR_P_FLT_COEF_7

#define PRESSURE21_SET_IIR_P_FLT_COEF_7   0x18

◆ PRESSURE21_SET_IIR_T_BYPASS

#define PRESSURE21_SET_IIR_T_BYPASS   0x00

◆ PRESSURE21_SET_IIR_T_FLT_COEF_1

#define PRESSURE21_SET_IIR_T_FLT_COEF_1   0x01

◆ PRESSURE21_SET_IIR_T_FLT_COEF_127

#define PRESSURE21_SET_IIR_T_FLT_COEF_127   0x07

◆ PRESSURE21_SET_IIR_T_FLT_COEF_15

#define PRESSURE21_SET_IIR_T_FLT_COEF_15   0x04

◆ PRESSURE21_SET_IIR_T_FLT_COEF_3

#define PRESSURE21_SET_IIR_T_FLT_COEF_3   0x02

◆ PRESSURE21_SET_IIR_T_FLT_COEF_31

#define PRESSURE21_SET_IIR_T_FLT_COEF_31   0x05

◆ PRESSURE21_SET_IIR_T_FLT_COEF_63

#define PRESSURE21_SET_IIR_T_FLT_COEF_63   0x06

◆ PRESSURE21_SET_IIR_T_FLT_COEF_7

#define PRESSURE21_SET_IIR_T_FLT_COEF_7   0x03

◆ PRESSURE21_SHDW_SEL_IIR_P

#define PRESSURE21_SHDW_SEL_IIR_P   0x20

◆ PRESSURE21_SHDW_SEL_IIR_T

#define PRESSURE21_SHDW_SEL_IIR_T   0x08

◆ PRESSURE21_TEMP_RESOLUTION

#define PRESSURE21_TEMP_RESOLUTION   65536.0