pressure20 2.0.0.0
Pressure 20 Registers Settings

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

Macros

#define PRESSURE20_TRIM1_MSB_PEFE_OFFSET_MASK   0x3F
 Pressure 20 TRIM settings.
 
#define PRESSURE20_TRIM2_LSB_HFOSC_MASK   0x7F
 
#define PRESSURE20_TRIM2_MSB_PEFE_GAIN_MASK   0x70
 
#define PRESSURE20_TRIM2_MSB_BG_PTAT_MASK   0x0F
 
#define PRESSURE20_OTP_ADDRESS_OFFSET   0xF8
 Pressure 20 OTP address and command settings.
 
#define PRESSURE20_OTP_ADDRESS_GAIN   0xF9
 
#define PRESSURE20_OTP_ADDRESS_HFOSC   0xFA
 
#define PRESSURE20_OTP_COMMAND_READ_ACTION   0x10
 
#define PRESSURE20_OTP_MRA_LSB   0x04
 Pressure 20 OTP settings.
 
#define PRESSURE20_OTP_MRA_MSB   0x04
 
#define PRESSURE20_OTP_MRB_LSB   0x21
 
#define PRESSURE20_OTP_MRB_MSB   0x20
 
#define PRESSURE20_OTP_MR_LSB   0x10
 
#define PRESSURE20_OTP_MR_MSB   0x80
 
#define PRESSURE20_OTP_WRITE_SWITCH   0x02
 Pressure 20 OTP_CONFIG1 register settings.
 
#define PRESSURE20_OTP_ENABLE   0x01
 
#define PRESSURE20_OTP_DISABLE   0x00
 
#define PRESSURE20_OTP_RESET_SET   0x80
 Pressure 20 OTP_DBG2 register settings.
 
#define PRESSURE20_OTP_RESET_CLEAR   0x00
 
#define PRESSURE20_BUSY   0x01
 Pressure 20 OTP_STATUS register settings.
 
#define PRESSURE20_BOOT_UP_STATUS   0x01
 Pressure 20 OTP_STATUS2 register settings.
 
#define PRESSURE20_MASTER_LOCK   0x00
 Pressure 20 MASTER_LOCK register settings.
 
#define PRESSURE20_MASTER_UNLOCK   0x1F
 
#define PRESSURE20_MEAS_CONFIG_MODE0_ODR_25HZ   0x00
 Pressure 20 MODE_SELECT register settings.
 
#define PRESSURE20_MEAS_CONFIG_MODE1_ODR_120HZ   0x20
 
#define PRESSURE20_MEAS_CONFIG_MODE2_ODR_40HZ   0x40
 
#define PRESSURE20_MEAS_CONFIG_MODE3_ODR_2HZ   0x60
 
#define PRESSURE20_MEAS_CONFIG_MODE4   0x80
 
#define PRESSURE20_FORCED_MEAS_TRIGGER   0x10
 
#define PRESSURE20_MEAS_MODE_TRIGGER   0x00
 
#define PRESSURE20_MEAS_MODE_CONTINUOUS   0x08
 
#define PRESSURE20_POWER_MODE_NORMAL   0x00
 
#define PRESSURE20_POWER_MODE_ACTIVE   0x04
 
#define PRESSURE20_FIFO_READOUT_MODE_PRESS_1ST   0x00
 
#define PRESSURE20_FIFO_READOUT_MODE_TEMP_ONLY   0x01
 
#define PRESSURE20_FIFO_READOUT_MODE_TEMP_1ST   0x02
 
#define PRESSURE20_FIFO_READOUT_MODE_PRESS_ONLY   0x03
 
#define PRESSURE20_MODE_SYNC_STATUS   0x01
 Pressure 20 DEVICE_STATUS register settings.
 
#define PRESSURE20_FIFO_FLUSH   0x80
 Pressure 20 FIFO_FILL register settings.
 
#define PRESSURE20_FIFO_EMPTY   0x40
 
#define PRESSURE20_FIFO_FULL   0x20
 
#define PRESSURE20_FIFO_LEVEL_EMPTY   0x00
 
#define PRESSURE20_FIFO_LEVEL_1   0x01
 
#define PRESSURE20_FIFO_LEVEL_2   0x02
 
#define PRESSURE20_FIFO_LEVEL_3   0x03
 
#define PRESSURE20_FIFO_LEVEL_4   0x04
 
#define PRESSURE20_FIFO_LEVEL_5   0x05
 
#define PRESSURE20_FIFO_LEVEL_6   0x06
 
#define PRESSURE20_FIFO_LEVEL_7   0x07
 
#define PRESSURE20_FIFO_LEVEL_8   0x08
 
#define PRESSURE20_FIFO_LEVEL_9   0x09
 
#define PRESSURE20_FIFO_LEVEL_10   0x0A
 
#define PRESSURE20_FIFO_LEVEL_11   0x0B
 
#define PRESSURE20_FIFO_LEVEL_12   0x0C
 
#define PRESSURE20_FIFO_LEVEL_13   0x0D
 
#define PRESSURE20_FIFO_LEVEL_14   0x0E
 
#define PRESSURE20_FIFO_LEVEL_15   0x0F
 
#define PRESSURE20_FIFO_LEVEL_FULL   0x10
 
#define PRESSURE20_INT_STAT_PRESS_DELTA   0x40
 Pressure 20 INTERRUPT_STATUS register settings.
 
#define PRESSURE20_INT_STAT_PRESS_ABS   0x20
 
#define PRESSURE20_INT_STAT_FIFO_WMK_LOW   0x08
 
#define PRESSURE20_INT_STAT_FIFO_WMK_HIGH   0x04
 
#define PRESSURE20_INT_STAT_FIFO_UNDERFLOW   0x02
 
#define PRESSURE20_INT_STAT_FIFO_OVERFLOW   0x01
 
#define PRESSURE20_INT_MASK_RESERVED   0x80
 Pressure 20 INTERRUPT_MASK register settings.
 
#define PRESSURE20_INT_MASK_PRESS_DELTA   0x40
 
#define PRESSURE20_INT_MASK_PRESS_ABS   0x20
 
#define PRESSURE20_INT_MASK_FIFO_WMK_LOW   0x08
 
#define PRESSURE20_INT_MASK_FIFO_WMK_HIGH   0x04
 
#define PRESSURE20_INT_MASK_FIFO_UNDERFLOW   0x02
 
#define PRESSURE20_INT_MASK_FIFO_OVERFLOW   0x01
 
#define PRESSURE20_INT_MASK_ALL   0xFF
 
#define PRESSURE20_DEVICE_ID   0x63
 Pressure 20 Device ID value.
 
#define PRESSURE20_PRESSURE_RES_RAW   0x020000ul
 Pressure 20 pressure and temperature calculation values.
 
#define PRESSURE20_PRESSURE_RES_MBAR   400
 
#define PRESSURE20_PRESSURE_OFFSET_MBAR   700
 
#define PRESSURE20_TEMPERATURE_RES_RAW   0x040000ul
 
#define PRESSURE20_TEMPERATURE_RES_C   65
 
#define PRESSURE20_TEMPERATURE_OFFSET_C   25
 
#define PRESSURE20_SPI_READ_REG   0x3C
 Pressure 20 SPI Read/Write command.
 
#define PRESSURE20_SPI_WRITE_REG   0x33
 
#define PRESSURE20_DEVICE_ADDRESS_0   0x63
 Pressure 20 device address setting.
 
#define PRESSURE20_DEVICE_ADDRESS_1   0x64
 
#define PRESSURE20_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define PRESSURE20_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Pressure 20 Click driver.

Macro Definition Documentation

◆ PRESSURE20_BOOT_UP_STATUS

#define PRESSURE20_BOOT_UP_STATUS   0x01

Pressure 20 OTP_STATUS2 register settings.

Specified OTP_STATUS2 register settings of Pressure 20 Click driver.

◆ PRESSURE20_BUSY

#define PRESSURE20_BUSY   0x01

Pressure 20 OTP_STATUS register settings.

Specified OTP_STATUS register settings of Pressure 20 Click driver.

◆ PRESSURE20_DEVICE_ADDRESS_0

#define PRESSURE20_DEVICE_ADDRESS_0   0x63

Pressure 20 device address setting.

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

◆ PRESSURE20_DEVICE_ADDRESS_1

#define PRESSURE20_DEVICE_ADDRESS_1   0x64

◆ PRESSURE20_DEVICE_ID

#define PRESSURE20_DEVICE_ID   0x63

Pressure 20 Device ID value.

Specified Device ID value of Pressure 20 Click driver.

◆ PRESSURE20_FIFO_EMPTY

#define PRESSURE20_FIFO_EMPTY   0x40

◆ PRESSURE20_FIFO_FLUSH

#define PRESSURE20_FIFO_FLUSH   0x80

Pressure 20 FIFO_FILL register settings.

Specified FIFO_FILL register settings of Pressure 20 Click driver.

◆ PRESSURE20_FIFO_FULL

#define PRESSURE20_FIFO_FULL   0x20

◆ PRESSURE20_FIFO_LEVEL_1

#define PRESSURE20_FIFO_LEVEL_1   0x01

◆ PRESSURE20_FIFO_LEVEL_10

#define PRESSURE20_FIFO_LEVEL_10   0x0A

◆ PRESSURE20_FIFO_LEVEL_11

#define PRESSURE20_FIFO_LEVEL_11   0x0B

◆ PRESSURE20_FIFO_LEVEL_12

#define PRESSURE20_FIFO_LEVEL_12   0x0C

◆ PRESSURE20_FIFO_LEVEL_13

#define PRESSURE20_FIFO_LEVEL_13   0x0D

◆ PRESSURE20_FIFO_LEVEL_14

#define PRESSURE20_FIFO_LEVEL_14   0x0E

◆ PRESSURE20_FIFO_LEVEL_15

#define PRESSURE20_FIFO_LEVEL_15   0x0F

◆ PRESSURE20_FIFO_LEVEL_2

#define PRESSURE20_FIFO_LEVEL_2   0x02

◆ PRESSURE20_FIFO_LEVEL_3

#define PRESSURE20_FIFO_LEVEL_3   0x03

◆ PRESSURE20_FIFO_LEVEL_4

#define PRESSURE20_FIFO_LEVEL_4   0x04

◆ PRESSURE20_FIFO_LEVEL_5

#define PRESSURE20_FIFO_LEVEL_5   0x05

◆ PRESSURE20_FIFO_LEVEL_6

#define PRESSURE20_FIFO_LEVEL_6   0x06

◆ PRESSURE20_FIFO_LEVEL_7

#define PRESSURE20_FIFO_LEVEL_7   0x07

◆ PRESSURE20_FIFO_LEVEL_8

#define PRESSURE20_FIFO_LEVEL_8   0x08

◆ PRESSURE20_FIFO_LEVEL_9

#define PRESSURE20_FIFO_LEVEL_9   0x09

◆ PRESSURE20_FIFO_LEVEL_EMPTY

#define PRESSURE20_FIFO_LEVEL_EMPTY   0x00

◆ PRESSURE20_FIFO_LEVEL_FULL

#define PRESSURE20_FIFO_LEVEL_FULL   0x10

◆ PRESSURE20_FIFO_READOUT_MODE_PRESS_1ST

#define PRESSURE20_FIFO_READOUT_MODE_PRESS_1ST   0x00

◆ PRESSURE20_FIFO_READOUT_MODE_PRESS_ONLY

#define PRESSURE20_FIFO_READOUT_MODE_PRESS_ONLY   0x03

◆ PRESSURE20_FIFO_READOUT_MODE_TEMP_1ST

#define PRESSURE20_FIFO_READOUT_MODE_TEMP_1ST   0x02

◆ PRESSURE20_FIFO_READOUT_MODE_TEMP_ONLY

#define PRESSURE20_FIFO_READOUT_MODE_TEMP_ONLY   0x01

◆ PRESSURE20_FORCED_MEAS_TRIGGER

#define PRESSURE20_FORCED_MEAS_TRIGGER   0x10

◆ PRESSURE20_INT_MASK_ALL

#define PRESSURE20_INT_MASK_ALL   0xFF

◆ PRESSURE20_INT_MASK_FIFO_OVERFLOW

#define PRESSURE20_INT_MASK_FIFO_OVERFLOW   0x01

◆ PRESSURE20_INT_MASK_FIFO_UNDERFLOW

#define PRESSURE20_INT_MASK_FIFO_UNDERFLOW   0x02

◆ PRESSURE20_INT_MASK_FIFO_WMK_HIGH

#define PRESSURE20_INT_MASK_FIFO_WMK_HIGH   0x04

◆ PRESSURE20_INT_MASK_FIFO_WMK_LOW

#define PRESSURE20_INT_MASK_FIFO_WMK_LOW   0x08

◆ PRESSURE20_INT_MASK_PRESS_ABS

#define PRESSURE20_INT_MASK_PRESS_ABS   0x20

◆ PRESSURE20_INT_MASK_PRESS_DELTA

#define PRESSURE20_INT_MASK_PRESS_DELTA   0x40

◆ PRESSURE20_INT_MASK_RESERVED

#define PRESSURE20_INT_MASK_RESERVED   0x80

Pressure 20 INTERRUPT_MASK register settings.

Specified INTERRUPT_MASK register settings of Pressure 20 Click driver.

◆ PRESSURE20_INT_STAT_FIFO_OVERFLOW

#define PRESSURE20_INT_STAT_FIFO_OVERFLOW   0x01

◆ PRESSURE20_INT_STAT_FIFO_UNDERFLOW

#define PRESSURE20_INT_STAT_FIFO_UNDERFLOW   0x02

◆ PRESSURE20_INT_STAT_FIFO_WMK_HIGH

#define PRESSURE20_INT_STAT_FIFO_WMK_HIGH   0x04

◆ PRESSURE20_INT_STAT_FIFO_WMK_LOW

#define PRESSURE20_INT_STAT_FIFO_WMK_LOW   0x08

◆ PRESSURE20_INT_STAT_PRESS_ABS

#define PRESSURE20_INT_STAT_PRESS_ABS   0x20

◆ PRESSURE20_INT_STAT_PRESS_DELTA

#define PRESSURE20_INT_STAT_PRESS_DELTA   0x40

Pressure 20 INTERRUPT_STATUS register settings.

Specified INTERRUPT_STATUS register settings of Pressure 20 Click driver.

◆ PRESSURE20_MASTER_LOCK

#define PRESSURE20_MASTER_LOCK   0x00

Pressure 20 MASTER_LOCK register settings.

Specified MASTER_LOCK register settings of Pressure 20 Click driver.

◆ PRESSURE20_MASTER_UNLOCK

#define PRESSURE20_MASTER_UNLOCK   0x1F

◆ PRESSURE20_MEAS_CONFIG_MODE0_ODR_25HZ

#define PRESSURE20_MEAS_CONFIG_MODE0_ODR_25HZ   0x00

Pressure 20 MODE_SELECT register settings.

Specified MODE_SELECT register settings of Pressure 20 Click driver.

◆ PRESSURE20_MEAS_CONFIG_MODE1_ODR_120HZ

#define PRESSURE20_MEAS_CONFIG_MODE1_ODR_120HZ   0x20

◆ PRESSURE20_MEAS_CONFIG_MODE2_ODR_40HZ

#define PRESSURE20_MEAS_CONFIG_MODE2_ODR_40HZ   0x40

◆ PRESSURE20_MEAS_CONFIG_MODE3_ODR_2HZ

#define PRESSURE20_MEAS_CONFIG_MODE3_ODR_2HZ   0x60

◆ PRESSURE20_MEAS_CONFIG_MODE4

#define PRESSURE20_MEAS_CONFIG_MODE4   0x80

◆ PRESSURE20_MEAS_MODE_CONTINUOUS

#define PRESSURE20_MEAS_MODE_CONTINUOUS   0x08

◆ PRESSURE20_MEAS_MODE_TRIGGER

#define PRESSURE20_MEAS_MODE_TRIGGER   0x00

◆ PRESSURE20_MODE_SYNC_STATUS

#define PRESSURE20_MODE_SYNC_STATUS   0x01

Pressure 20 DEVICE_STATUS register settings.

Specified DEVICE_STATUS register settings of Pressure 20 Click driver.

◆ PRESSURE20_OTP_ADDRESS_GAIN

#define PRESSURE20_OTP_ADDRESS_GAIN   0xF9

◆ PRESSURE20_OTP_ADDRESS_HFOSC

#define PRESSURE20_OTP_ADDRESS_HFOSC   0xFA

◆ PRESSURE20_OTP_ADDRESS_OFFSET

#define PRESSURE20_OTP_ADDRESS_OFFSET   0xF8

Pressure 20 OTP address and command settings.

Specified OTP address and command settings of Pressure 20 Click driver.

◆ PRESSURE20_OTP_COMMAND_READ_ACTION

#define PRESSURE20_OTP_COMMAND_READ_ACTION   0x10

◆ PRESSURE20_OTP_DISABLE

#define PRESSURE20_OTP_DISABLE   0x00

◆ PRESSURE20_OTP_ENABLE

#define PRESSURE20_OTP_ENABLE   0x01

◆ PRESSURE20_OTP_MR_LSB

#define PRESSURE20_OTP_MR_LSB   0x10

◆ PRESSURE20_OTP_MR_MSB

#define PRESSURE20_OTP_MR_MSB   0x80

◆ PRESSURE20_OTP_MRA_LSB

#define PRESSURE20_OTP_MRA_LSB   0x04

Pressure 20 OTP settings.

Specified OTP settings of Pressure 20 Click driver.

◆ PRESSURE20_OTP_MRA_MSB

#define PRESSURE20_OTP_MRA_MSB   0x04

◆ PRESSURE20_OTP_MRB_LSB

#define PRESSURE20_OTP_MRB_LSB   0x21

◆ PRESSURE20_OTP_MRB_MSB

#define PRESSURE20_OTP_MRB_MSB   0x20

◆ PRESSURE20_OTP_RESET_CLEAR

#define PRESSURE20_OTP_RESET_CLEAR   0x00

◆ PRESSURE20_OTP_RESET_SET

#define PRESSURE20_OTP_RESET_SET   0x80

Pressure 20 OTP_DBG2 register settings.

Specified OTP_DBG2 register settings of Pressure 20 Click driver.

◆ PRESSURE20_OTP_WRITE_SWITCH

#define PRESSURE20_OTP_WRITE_SWITCH   0x02

Pressure 20 OTP_CONFIG1 register settings.

Specified OTP_CONFIG1 register settings of Pressure 20 Click driver.

◆ PRESSURE20_POWER_MODE_ACTIVE

#define PRESSURE20_POWER_MODE_ACTIVE   0x04

◆ PRESSURE20_POWER_MODE_NORMAL

#define PRESSURE20_POWER_MODE_NORMAL   0x00

◆ PRESSURE20_PRESSURE_OFFSET_MBAR

#define PRESSURE20_PRESSURE_OFFSET_MBAR   700

◆ PRESSURE20_PRESSURE_RES_MBAR

#define PRESSURE20_PRESSURE_RES_MBAR   400

◆ PRESSURE20_PRESSURE_RES_RAW

#define PRESSURE20_PRESSURE_RES_RAW   0x020000ul

Pressure 20 pressure and temperature calculation values.

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

◆ PRESSURE20_SET_DATA_SAMPLE_EDGE

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

◆ PRESSURE20_SET_DATA_SAMPLE_MIDDLE

#define PRESSURE20_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ PRESSURE20_SPI_READ_REG

#define PRESSURE20_SPI_READ_REG   0x3C

Pressure 20 SPI Read/Write command.

Specified SPI Read/Write command of Pressure 20 Click driver.

◆ PRESSURE20_SPI_WRITE_REG

#define PRESSURE20_SPI_WRITE_REG   0x33

◆ PRESSURE20_TEMPERATURE_OFFSET_C

#define PRESSURE20_TEMPERATURE_OFFSET_C   25

◆ PRESSURE20_TEMPERATURE_RES_C

#define PRESSURE20_TEMPERATURE_RES_C   65

◆ PRESSURE20_TEMPERATURE_RES_RAW

#define PRESSURE20_TEMPERATURE_RES_RAW   0x040000ul

◆ PRESSURE20_TRIM1_MSB_PEFE_OFFSET_MASK

#define PRESSURE20_TRIM1_MSB_PEFE_OFFSET_MASK   0x3F

Pressure 20 TRIM settings.

Specified TRIM settings of Pressure 20 Click driver.

◆ PRESSURE20_TRIM2_LSB_HFOSC_MASK

#define PRESSURE20_TRIM2_LSB_HFOSC_MASK   0x7F

◆ PRESSURE20_TRIM2_MSB_BG_PTAT_MASK

#define PRESSURE20_TRIM2_MSB_BG_PTAT_MASK   0x0F

◆ PRESSURE20_TRIM2_MSB_PEFE_GAIN_MASK

#define PRESSURE20_TRIM2_MSB_PEFE_GAIN_MASK   0x70