pressure23 2.1.0.0
Pressure 23 Registers Settings

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

Macros

#define PRESSURE23_SNSR_CFG_SEL_PRESS   0x00
 Pressure 23 description of sensor configuration data.
 
#define PRESSURE23_SNSR_CFG_SEL_TEMP   0x01
 
#define PRESSURE23_SNSR_CFG_SEL_BIT_MASK   0x01
 
#define PRESSURE23_SNSR_CFG_RATIO_OFF   0x00
 
#define PRESSURE23_SNSR_CFG_RATIO_1   0x01
 
#define PRESSURE23_SNSR_CFG_RATIO_2   0x02
 
#define PRESSURE23_SNSR_CFG_RATIO_4   0x03
 
#define PRESSURE23_SNSR_CFG_RATIO_8   0x04
 
#define PRESSURE23_SNSR_CFG_RATIO_16   0x05
 
#define PRESSURE23_SNSR_CFG_RATIO_32   0x06
 
#define PRESSURE23_SNSR_CFG_RATIO_BIT_MASK   0x07
 
#define PRESSURE23_SNSR_CFG_FILTER_OFF   0x00
 
#define PRESSURE23_SNSR_CFG_FILTER_2   0x01
 
#define PRESSURE23_SNSR_CFG_FILTER_4   0x02
 
#define PRESSURE23_SNSR_CFG_FILTER_8   0x03
 
#define PRESSURE23_SNSR_CFG_FILTER_16   0x04
 
#define PRESSURE23_SNSR_CFG_FILTER_32   0x05
 
#define PRESSURE23_SNSR_CFG_FILTER_BIT_MASK   0x07
 
#define PRESSURE23_SNSR_CFG_RES_24_BIT   0x00
 
#define PRESSURE23_SNSR_CFG_RES_16_BIT   0x01
 
#define PRESSURE23_SNSR_CFG_RES_8_BIT   0x02
 
#define PRESSURE23_SNSR_CFG_RES_BIT_MASK   0x03
 
#define PRESSURE23_SNSR_CFG_OSR_0   0x00
 
#define PRESSURE23_SNSR_CFG_OSR_1   0x01
 
#define PRESSURE23_SNSR_CFG_OSR_2   0x02
 
#define PRESSURE23_SNSR_CFG_OSR_3   0x03
 
#define PRESSURE23_SNSR_CFG_OSR_4   0x04
 
#define PRESSURE23_SNSR_CFG_OSR_5   0x05
 
#define PRESSURE23_SNSR_CFG_OSR_6   0x06
 
#define PRESSURE23_SNSR_CFG_OSR_BIT_MASK   0x07
 
#define PRESSURE23_CNV_ADC_SEL_PRESS   0x00
 Pressure 23 description of conversion selection and ADC selection data.
 
#define PRESSURE23_CNV_ADC_SEL_TEMP   0x01
 
#define PRESSURE23_CNV_ADC_BIT_MASK   0x01
 
#define PRESSURE23_CNV_ADC_REG_BIT_MASK   0x04
 
#define PRESSURE23_OP_REG_FIFO_INT_TH_OFF   0x00
 Pressure 23 description of operation register data.
 
#define PRESSURE23_OP_REG_FIFO_INT_TH_BIT_MASK   0x1F
 
#define PRESSURE23_OP_REG_FIFO_MODE_OFF   0x00
 
#define PRESSURE23_OP_REG_FIFO_MODE_BIT_MASK   0x03
 
#define PRESSURE23_OP_REG_DELAY_OFF   0x00
 
#define PRESSURE23_OP_REG_DELAY_5_MS   0x01
 
#define PRESSURE23_OP_REG_DELAY_10_MS   0x02
 
#define PRESSURE23_OP_REG_DELAY_20_MS   0x03
 
#define PRESSURE23_OP_REG_DELAY_50_MS   0x04
 
#define PRESSURE23_OP_REG_DELAY_100_MS   0x05
 
#define PRESSURE23_OP_REG_DELAY_200_MS   0x06
 
#define PRESSURE23_OP_REG_DELAY_500_MS   0x07
 
#define PRESSURE23_OP_REG_DELAY_1_SEC   0x08
 
#define PRESSURE23_OP_REG_DELAY_2_SEC   0x09
 
#define PRESSURE23_OP_REG_DELAY_5_SEC   0x0A
 
#define PRESSURE23_OP_REG_DELAY_10_SEC   0x0B
 
#define PRESSURE23_OP_REG_DELAY_20_SEC   0x0C
 
#define PRESSURE23_OP_REG_DELAY_60_SEC   0x0D
 
#define PRESSURE23_OP_REG_DELAY_BIT_MASK   0x0F
 
#define PRESSURE23_LIM_REG_SEL_TEMP   0x00
 Pressure 23 description of limit register data.
 
#define PRESSURE23_LIM_REG_SEL_PRESS   0x01
 
#define PRESSURE23_LIM_REG_SEL_BIT_MASK   0x01
 
#define PRESSURE23_LIM_REG_LIM_LOW   0x00
 
#define PRESSURE23_LIM_REG_LIM_HIGH   0x01
 
#define PRESSURE23_LIM_REG_LIM_BIT_MASK   0x01
 
#define PRESSURE23_COEF_TEMP_D2_DIV   536870912.0f
 Pressure 23 calculation coefficients.
 
#define PRESSURE23_COEF_TEMP_D1_DIV   34359738368.0f
 
#define PRESSURE23_COEF_TEMP_C2_DIV   64.0f
 
#define PRESSURE23_COEF_OFF_SENS_DIV   512.0f
 
#define PRESSURE23_COEF_PRESS_DIV   4194304.0f
 
#define PRESSURE23_DEVICE_ADDRESS_GND   0x77
 Pressure 23 device address setting.
 
#define PRESSURE23_DEVICE_ADDRESS_VCC   0x76
 
#define PRESSURE23_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define PRESSURE23_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Pressure 23 Click driver.

Macro Definition Documentation

◆ PRESSURE23_CNV_ADC_BIT_MASK

#define PRESSURE23_CNV_ADC_BIT_MASK   0x01

◆ PRESSURE23_CNV_ADC_REG_BIT_MASK

#define PRESSURE23_CNV_ADC_REG_BIT_MASK   0x04

◆ PRESSURE23_CNV_ADC_SEL_PRESS

#define PRESSURE23_CNV_ADC_SEL_PRESS   0x00

Pressure 23 description of conversion selection and ADC selection data.

Specified conversion selection and ADC selection data of Pressure 23 Click driver.

◆ PRESSURE23_CNV_ADC_SEL_TEMP

#define PRESSURE23_CNV_ADC_SEL_TEMP   0x01

◆ PRESSURE23_COEF_OFF_SENS_DIV

#define PRESSURE23_COEF_OFF_SENS_DIV   512.0f

◆ PRESSURE23_COEF_PRESS_DIV

#define PRESSURE23_COEF_PRESS_DIV   4194304.0f

◆ PRESSURE23_COEF_TEMP_C2_DIV

#define PRESSURE23_COEF_TEMP_C2_DIV   64.0f

◆ PRESSURE23_COEF_TEMP_D1_DIV

#define PRESSURE23_COEF_TEMP_D1_DIV   34359738368.0f

◆ PRESSURE23_COEF_TEMP_D2_DIV

#define PRESSURE23_COEF_TEMP_D2_DIV   536870912.0f

Pressure 23 calculation coefficients.

Specified calculation coefficients of Pressure 23 Click driver.

◆ PRESSURE23_DEVICE_ADDRESS_GND

#define PRESSURE23_DEVICE_ADDRESS_GND   0x77

Pressure 23 device address setting.

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

◆ PRESSURE23_DEVICE_ADDRESS_VCC

#define PRESSURE23_DEVICE_ADDRESS_VCC   0x76

◆ PRESSURE23_LIM_REG_LIM_BIT_MASK

#define PRESSURE23_LIM_REG_LIM_BIT_MASK   0x01

◆ PRESSURE23_LIM_REG_LIM_HIGH

#define PRESSURE23_LIM_REG_LIM_HIGH   0x01

◆ PRESSURE23_LIM_REG_LIM_LOW

#define PRESSURE23_LIM_REG_LIM_LOW   0x00

◆ PRESSURE23_LIM_REG_SEL_BIT_MASK

#define PRESSURE23_LIM_REG_SEL_BIT_MASK   0x01

◆ PRESSURE23_LIM_REG_SEL_PRESS

#define PRESSURE23_LIM_REG_SEL_PRESS   0x01

◆ PRESSURE23_LIM_REG_SEL_TEMP

#define PRESSURE23_LIM_REG_SEL_TEMP   0x00

Pressure 23 description of limit register data.

Specified limit register data of Pressure 23 Click driver.

◆ PRESSURE23_OP_REG_DELAY_100_MS

#define PRESSURE23_OP_REG_DELAY_100_MS   0x05

◆ PRESSURE23_OP_REG_DELAY_10_MS

#define PRESSURE23_OP_REG_DELAY_10_MS   0x02

◆ PRESSURE23_OP_REG_DELAY_10_SEC

#define PRESSURE23_OP_REG_DELAY_10_SEC   0x0B

◆ PRESSURE23_OP_REG_DELAY_1_SEC

#define PRESSURE23_OP_REG_DELAY_1_SEC   0x08

◆ PRESSURE23_OP_REG_DELAY_200_MS

#define PRESSURE23_OP_REG_DELAY_200_MS   0x06

◆ PRESSURE23_OP_REG_DELAY_20_MS

#define PRESSURE23_OP_REG_DELAY_20_MS   0x03

◆ PRESSURE23_OP_REG_DELAY_20_SEC

#define PRESSURE23_OP_REG_DELAY_20_SEC   0x0C

◆ PRESSURE23_OP_REG_DELAY_2_SEC

#define PRESSURE23_OP_REG_DELAY_2_SEC   0x09

◆ PRESSURE23_OP_REG_DELAY_500_MS

#define PRESSURE23_OP_REG_DELAY_500_MS   0x07

◆ PRESSURE23_OP_REG_DELAY_50_MS

#define PRESSURE23_OP_REG_DELAY_50_MS   0x04

◆ PRESSURE23_OP_REG_DELAY_5_MS

#define PRESSURE23_OP_REG_DELAY_5_MS   0x01

◆ PRESSURE23_OP_REG_DELAY_5_SEC

#define PRESSURE23_OP_REG_DELAY_5_SEC   0x0A

◆ PRESSURE23_OP_REG_DELAY_60_SEC

#define PRESSURE23_OP_REG_DELAY_60_SEC   0x0D

◆ PRESSURE23_OP_REG_DELAY_BIT_MASK

#define PRESSURE23_OP_REG_DELAY_BIT_MASK   0x0F

◆ PRESSURE23_OP_REG_DELAY_OFF

#define PRESSURE23_OP_REG_DELAY_OFF   0x00

◆ PRESSURE23_OP_REG_FIFO_INT_TH_BIT_MASK

#define PRESSURE23_OP_REG_FIFO_INT_TH_BIT_MASK   0x1F

◆ PRESSURE23_OP_REG_FIFO_INT_TH_OFF

#define PRESSURE23_OP_REG_FIFO_INT_TH_OFF   0x00

Pressure 23 description of operation register data.

Specified operation register data of Pressure 23 Click driver.

◆ PRESSURE23_OP_REG_FIFO_MODE_BIT_MASK

#define PRESSURE23_OP_REG_FIFO_MODE_BIT_MASK   0x03

◆ PRESSURE23_OP_REG_FIFO_MODE_OFF

#define PRESSURE23_OP_REG_FIFO_MODE_OFF   0x00

◆ PRESSURE23_SET_DATA_SAMPLE_EDGE

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

◆ PRESSURE23_SET_DATA_SAMPLE_MIDDLE

#define PRESSURE23_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ PRESSURE23_SNSR_CFG_FILTER_16

#define PRESSURE23_SNSR_CFG_FILTER_16   0x04

◆ PRESSURE23_SNSR_CFG_FILTER_2

#define PRESSURE23_SNSR_CFG_FILTER_2   0x01

◆ PRESSURE23_SNSR_CFG_FILTER_32

#define PRESSURE23_SNSR_CFG_FILTER_32   0x05

◆ PRESSURE23_SNSR_CFG_FILTER_4

#define PRESSURE23_SNSR_CFG_FILTER_4   0x02

◆ PRESSURE23_SNSR_CFG_FILTER_8

#define PRESSURE23_SNSR_CFG_FILTER_8   0x03

◆ PRESSURE23_SNSR_CFG_FILTER_BIT_MASK

#define PRESSURE23_SNSR_CFG_FILTER_BIT_MASK   0x07

◆ PRESSURE23_SNSR_CFG_FILTER_OFF

#define PRESSURE23_SNSR_CFG_FILTER_OFF   0x00

◆ PRESSURE23_SNSR_CFG_OSR_0

#define PRESSURE23_SNSR_CFG_OSR_0   0x00

◆ PRESSURE23_SNSR_CFG_OSR_1

#define PRESSURE23_SNSR_CFG_OSR_1   0x01

◆ PRESSURE23_SNSR_CFG_OSR_2

#define PRESSURE23_SNSR_CFG_OSR_2   0x02

◆ PRESSURE23_SNSR_CFG_OSR_3

#define PRESSURE23_SNSR_CFG_OSR_3   0x03

◆ PRESSURE23_SNSR_CFG_OSR_4

#define PRESSURE23_SNSR_CFG_OSR_4   0x04

◆ PRESSURE23_SNSR_CFG_OSR_5

#define PRESSURE23_SNSR_CFG_OSR_5   0x05

◆ PRESSURE23_SNSR_CFG_OSR_6

#define PRESSURE23_SNSR_CFG_OSR_6   0x06

◆ PRESSURE23_SNSR_CFG_OSR_BIT_MASK

#define PRESSURE23_SNSR_CFG_OSR_BIT_MASK   0x07

◆ PRESSURE23_SNSR_CFG_RATIO_1

#define PRESSURE23_SNSR_CFG_RATIO_1   0x01

◆ PRESSURE23_SNSR_CFG_RATIO_16

#define PRESSURE23_SNSR_CFG_RATIO_16   0x05

◆ PRESSURE23_SNSR_CFG_RATIO_2

#define PRESSURE23_SNSR_CFG_RATIO_2   0x02

◆ PRESSURE23_SNSR_CFG_RATIO_32

#define PRESSURE23_SNSR_CFG_RATIO_32   0x06

◆ PRESSURE23_SNSR_CFG_RATIO_4

#define PRESSURE23_SNSR_CFG_RATIO_4   0x03

◆ PRESSURE23_SNSR_CFG_RATIO_8

#define PRESSURE23_SNSR_CFG_RATIO_8   0x04

◆ PRESSURE23_SNSR_CFG_RATIO_BIT_MASK

#define PRESSURE23_SNSR_CFG_RATIO_BIT_MASK   0x07

◆ PRESSURE23_SNSR_CFG_RATIO_OFF

#define PRESSURE23_SNSR_CFG_RATIO_OFF   0x00

◆ PRESSURE23_SNSR_CFG_RES_16_BIT

#define PRESSURE23_SNSR_CFG_RES_16_BIT   0x01

◆ PRESSURE23_SNSR_CFG_RES_24_BIT

#define PRESSURE23_SNSR_CFG_RES_24_BIT   0x00

◆ PRESSURE23_SNSR_CFG_RES_8_BIT

#define PRESSURE23_SNSR_CFG_RES_8_BIT   0x02

◆ PRESSURE23_SNSR_CFG_RES_BIT_MASK

#define PRESSURE23_SNSR_CFG_RES_BIT_MASK   0x03

◆ PRESSURE23_SNSR_CFG_SEL_BIT_MASK

#define PRESSURE23_SNSR_CFG_SEL_BIT_MASK   0x01

◆ PRESSURE23_SNSR_CFG_SEL_PRESS

#define PRESSURE23_SNSR_CFG_SEL_PRESS   0x00

Pressure 23 description of sensor configuration data.

Specified sensor configuration data of Pressure 23 Click driver.

◆ PRESSURE23_SNSR_CFG_SEL_TEMP

#define PRESSURE23_SNSR_CFG_SEL_TEMP   0x01