pressure18 2.1.0.0
Pressure 18 Registers Settings

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

Macros

#define PRESSURE18_CHIP_ID   0x50
 Pressure 18 chip id setting.
 
#define PRESSURE18_ERR_FATAL   0x01
 Pressure 18 ERR register settings.
 
#define PRESSURE18_ERR_CMD   0x02
 
#define PRESSURE18_ERR_CONF   0x04
 
#define PRESSURE18_STATUS_CMD_RDY   0x10
 Pressure 18 STATUS register settings.
 
#define PRESSURE18_STATUS_DRDY_PRESS   0x20
 
#define PRESSURE18_STATUS_DRDY_TEMP   0x40
 
#define PRESSURE18_INT_CTRL_OD_PUSH_PULL   0x00
 Pressure 18 INT_CTRL register settings.
 
#define PRESSURE18_INT_CTRL_OD_OPEN_DRAIN   0x01
 
#define PRESSURE18_INT_CTRL_LEVEL_ACTIVE_LOW   0x00
 
#define PRESSURE18_INT_CTRL_LEVEL_ACTIVE_HIGH   0x02
 
#define PRESSURE18_INT_CTRL_LATCH_DISABLED   0x00
 
#define PRESSURE18_INT_CTRL_LATCH_ENABLED   0x04
 
#define PRESSURE18_INT_CTRL_FWTM_DISABLED   0x00
 
#define PRESSURE18_INT_CTRL_FWTM_ENABLED   0x08
 
#define PRESSURE18_INT_CTRL_FFULL_DISABLED   0x00
 
#define PRESSURE18_INT_CTRL_FFULL_ENABLED   0x10
 
#define PRESSURE18_INT_CTRL_DRDY_DISABLED   0x00
 
#define PRESSURE18_INT_CTRL_DRDY_ENABLED   0x40
 
#define PRESSURE18_PWR_CTRL_PRESS_EN   0x01
 Pressure 18 PWR_CTRL register settings.
 
#define PRESSURE18_PWR_CTRL_TEMP_EN   0x02
 
#define PRESSURE18_PWR_CTRL_MODE_SLEEP   0x00
 
#define PRESSURE18_PWR_CTRL_MODE_FORCED   0x10
 
#define PRESSURE18_PWR_CTRL_MODE_NORMAL   0x30
 
#define PRESSURE18_OSR_P_X1   0x00
 Pressure 18 OSR register settings.
 
#define PRESSURE18_OSR_P_X2   0x01
 
#define PRESSURE18_OSR_P_X4   0x02
 
#define PRESSURE18_OSR_P_X8   0x03
 
#define PRESSURE18_OSR_P_X16   0x04
 
#define PRESSURE18_OSR_P_X32   0x05
 
#define PRESSURE18_OSR_T_X1   0x00
 
#define PRESSURE18_OSR_T_X2   0x08
 
#define PRESSURE18_OSR_T_X4   0x10
 
#define PRESSURE18_OSR_T_X8   0x18
 
#define PRESSURE18_OSR_T_X16   0x20
 
#define PRESSURE18_OSR_T_X32   0x28
 
#define PRESSURE18_ODR_5_MS   0x00
 Pressure 18 ODR register settings.
 
#define PRESSURE18_ODR_10_MS   0x01
 
#define PRESSURE18_ODR_20_MS   0x02
 
#define PRESSURE18_ODR_40_MS   0x03
 
#define PRESSURE18_ODR_80_MS   0x04
 
#define PRESSURE18_ODR_160_MS   0x05
 
#define PRESSURE18_ODR_320_MS   0x06
 
#define PRESSURE18_ODR_640_MS   0x07
 
#define PRESSURE18_ODR_1p280_S   0x08
 
#define PRESSURE18_ODR_2p560_S   0x09
 
#define PRESSURE18_ODR_5p120_S   0x0A
 
#define PRESSURE18_ODR_10p24_S   0x0B
 
#define PRESSURE18_ODR_20p48_S   0x0C
 
#define PRESSURE18_ODR_40p96_S   0x0D
 
#define PRESSURE18_ODR_81p92_S   0x0E
 
#define PRESSURE18_ODR_163p84_S   0x0F
 
#define PRESSURE18_ODR_327p68_S   0x10
 
#define PRESSURE18_ODR_655p36_S   0x11
 
#define PRESSURE18_CMD_NOP   0x00
 Pressure 18 CMD register settings.
 
#define PRESSURE18_CMD_EXTMODE_EN_MIDDLE   0x34
 
#define PRESSURE18_CMD_FIFO_FLUSH   0xB0
 
#define PRESSURE18_CMD_SOFT_RESET   0xB6
 
#define PRESSURE18_PA_TO_MBAR   0.01
 Pressure 18 Pascal to mBar conversion value.
 
#define PRESSURE18_DEVICE_ADDRESS_0   0x76
 Pressure 18 device address setting.
 
#define PRESSURE18_DEVICE_ADDRESS_1   0x77
 
#define PRESSURE18_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define PRESSURE18_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Pressure 18 Click driver.

Macro Definition Documentation

◆ PRESSURE18_CHIP_ID

#define PRESSURE18_CHIP_ID   0x50

Pressure 18 chip id setting.

Specified setting for chip id of Pressure 18 Click driver.

◆ PRESSURE18_CMD_EXTMODE_EN_MIDDLE

#define PRESSURE18_CMD_EXTMODE_EN_MIDDLE   0x34

◆ PRESSURE18_CMD_FIFO_FLUSH

#define PRESSURE18_CMD_FIFO_FLUSH   0xB0

◆ PRESSURE18_CMD_NOP

#define PRESSURE18_CMD_NOP   0x00

Pressure 18 CMD register settings.

Specified CMD register settings of Pressure 18 Click driver.

◆ PRESSURE18_CMD_SOFT_RESET

#define PRESSURE18_CMD_SOFT_RESET   0xB6

◆ PRESSURE18_DEVICE_ADDRESS_0

#define PRESSURE18_DEVICE_ADDRESS_0   0x76

Pressure 18 device address setting.

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

◆ PRESSURE18_DEVICE_ADDRESS_1

#define PRESSURE18_DEVICE_ADDRESS_1   0x77

◆ PRESSURE18_ERR_CMD

#define PRESSURE18_ERR_CMD   0x02

◆ PRESSURE18_ERR_CONF

#define PRESSURE18_ERR_CONF   0x04

◆ PRESSURE18_ERR_FATAL

#define PRESSURE18_ERR_FATAL   0x01

Pressure 18 ERR register settings.

Specified ERR register settings of Pressure 18 Click driver.

◆ PRESSURE18_INT_CTRL_DRDY_DISABLED

#define PRESSURE18_INT_CTRL_DRDY_DISABLED   0x00

◆ PRESSURE18_INT_CTRL_DRDY_ENABLED

#define PRESSURE18_INT_CTRL_DRDY_ENABLED   0x40

◆ PRESSURE18_INT_CTRL_FFULL_DISABLED

#define PRESSURE18_INT_CTRL_FFULL_DISABLED   0x00

◆ PRESSURE18_INT_CTRL_FFULL_ENABLED

#define PRESSURE18_INT_CTRL_FFULL_ENABLED   0x10

◆ PRESSURE18_INT_CTRL_FWTM_DISABLED

#define PRESSURE18_INT_CTRL_FWTM_DISABLED   0x00

◆ PRESSURE18_INT_CTRL_FWTM_ENABLED

#define PRESSURE18_INT_CTRL_FWTM_ENABLED   0x08

◆ PRESSURE18_INT_CTRL_LATCH_DISABLED

#define PRESSURE18_INT_CTRL_LATCH_DISABLED   0x00

◆ PRESSURE18_INT_CTRL_LATCH_ENABLED

#define PRESSURE18_INT_CTRL_LATCH_ENABLED   0x04

◆ PRESSURE18_INT_CTRL_LEVEL_ACTIVE_HIGH

#define PRESSURE18_INT_CTRL_LEVEL_ACTIVE_HIGH   0x02

◆ PRESSURE18_INT_CTRL_LEVEL_ACTIVE_LOW

#define PRESSURE18_INT_CTRL_LEVEL_ACTIVE_LOW   0x00

◆ PRESSURE18_INT_CTRL_OD_OPEN_DRAIN

#define PRESSURE18_INT_CTRL_OD_OPEN_DRAIN   0x01

◆ PRESSURE18_INT_CTRL_OD_PUSH_PULL

#define PRESSURE18_INT_CTRL_OD_PUSH_PULL   0x00

Pressure 18 INT_CTRL register settings.

Specified INT_CTRL register settings of Pressure 18 Click driver.

◆ PRESSURE18_ODR_10_MS

#define PRESSURE18_ODR_10_MS   0x01

◆ PRESSURE18_ODR_10p24_S

#define PRESSURE18_ODR_10p24_S   0x0B

◆ PRESSURE18_ODR_160_MS

#define PRESSURE18_ODR_160_MS   0x05

◆ PRESSURE18_ODR_163p84_S

#define PRESSURE18_ODR_163p84_S   0x0F

◆ PRESSURE18_ODR_1p280_S

#define PRESSURE18_ODR_1p280_S   0x08

◆ PRESSURE18_ODR_20_MS

#define PRESSURE18_ODR_20_MS   0x02

◆ PRESSURE18_ODR_20p48_S

#define PRESSURE18_ODR_20p48_S   0x0C

◆ PRESSURE18_ODR_2p560_S

#define PRESSURE18_ODR_2p560_S   0x09

◆ PRESSURE18_ODR_320_MS

#define PRESSURE18_ODR_320_MS   0x06

◆ PRESSURE18_ODR_327p68_S

#define PRESSURE18_ODR_327p68_S   0x10

◆ PRESSURE18_ODR_40_MS

#define PRESSURE18_ODR_40_MS   0x03

◆ PRESSURE18_ODR_40p96_S

#define PRESSURE18_ODR_40p96_S   0x0D

◆ PRESSURE18_ODR_5_MS

#define PRESSURE18_ODR_5_MS   0x00

Pressure 18 ODR register settings.

Specified ODR register settings of Pressure 18 Click driver.

◆ PRESSURE18_ODR_5p120_S

#define PRESSURE18_ODR_5p120_S   0x0A

◆ PRESSURE18_ODR_640_MS

#define PRESSURE18_ODR_640_MS   0x07

◆ PRESSURE18_ODR_655p36_S

#define PRESSURE18_ODR_655p36_S   0x11

◆ PRESSURE18_ODR_80_MS

#define PRESSURE18_ODR_80_MS   0x04

◆ PRESSURE18_ODR_81p92_S

#define PRESSURE18_ODR_81p92_S   0x0E

◆ PRESSURE18_OSR_P_X1

#define PRESSURE18_OSR_P_X1   0x00

Pressure 18 OSR register settings.

Specified OSR register settings of Pressure 18 Click driver.

◆ PRESSURE18_OSR_P_X16

#define PRESSURE18_OSR_P_X16   0x04

◆ PRESSURE18_OSR_P_X2

#define PRESSURE18_OSR_P_X2   0x01

◆ PRESSURE18_OSR_P_X32

#define PRESSURE18_OSR_P_X32   0x05

◆ PRESSURE18_OSR_P_X4

#define PRESSURE18_OSR_P_X4   0x02

◆ PRESSURE18_OSR_P_X8

#define PRESSURE18_OSR_P_X8   0x03

◆ PRESSURE18_OSR_T_X1

#define PRESSURE18_OSR_T_X1   0x00

◆ PRESSURE18_OSR_T_X16

#define PRESSURE18_OSR_T_X16   0x20

◆ PRESSURE18_OSR_T_X2

#define PRESSURE18_OSR_T_X2   0x08

◆ PRESSURE18_OSR_T_X32

#define PRESSURE18_OSR_T_X32   0x28

◆ PRESSURE18_OSR_T_X4

#define PRESSURE18_OSR_T_X4   0x10

◆ PRESSURE18_OSR_T_X8

#define PRESSURE18_OSR_T_X8   0x18

◆ PRESSURE18_PA_TO_MBAR

#define PRESSURE18_PA_TO_MBAR   0.01

Pressure 18 Pascal to mBar conversion value.

Specified Pascal to mBar conversion value of Pressure 18 Click driver.

◆ PRESSURE18_PWR_CTRL_MODE_FORCED

#define PRESSURE18_PWR_CTRL_MODE_FORCED   0x10

◆ PRESSURE18_PWR_CTRL_MODE_NORMAL

#define PRESSURE18_PWR_CTRL_MODE_NORMAL   0x30

◆ PRESSURE18_PWR_CTRL_MODE_SLEEP

#define PRESSURE18_PWR_CTRL_MODE_SLEEP   0x00

◆ PRESSURE18_PWR_CTRL_PRESS_EN

#define PRESSURE18_PWR_CTRL_PRESS_EN   0x01

Pressure 18 PWR_CTRL register settings.

Specified PWR_CTRL register settings of Pressure 18 Click driver.

◆ PRESSURE18_PWR_CTRL_TEMP_EN

#define PRESSURE18_PWR_CTRL_TEMP_EN   0x02

◆ PRESSURE18_SET_DATA_SAMPLE_EDGE

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

◆ PRESSURE18_SET_DATA_SAMPLE_MIDDLE

#define PRESSURE18_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ PRESSURE18_STATUS_CMD_RDY

#define PRESSURE18_STATUS_CMD_RDY   0x10

Pressure 18 STATUS register settings.

Specified STATUS register settings of Pressure 18 Click driver.

◆ PRESSURE18_STATUS_DRDY_PRESS

#define PRESSURE18_STATUS_DRDY_PRESS   0x20

◆ PRESSURE18_STATUS_DRDY_TEMP

#define PRESSURE18_STATUS_DRDY_TEMP   0x40