barometer9 2.1.0.0
Barometer 9 Registers Settings

Settings for registers of Barometer 9 Click driver. More...

Macros

#define BAROMETER9_HIGH_POWER_MODE   0x80
 Barometer 9 description setting.
 
#define BAROMETER9_LOW_POWER_MODE   0x00
 
#define BAROMETER9_DIRECT_PATH   0x00
 
#define BAROMETER9_FIFO_MODE   0x20
 
#define BAROMETER9_AVERAGE_MODE   0x40
 
#define BAROMETER9_IDLE_MODE   0x00
 
#define BAROMETER9_MEASURMENT_MODE   0x10
 
#define BAROMETER9_SW_RESET   0x08
 
#define BAROMETER9_READ_PRESS_ONLY   0x01
 
#define BAROMETER9_READ_TEMP_ONLY   0x02
 
#define BAROMETER9_READ_PRES_AND_TEMP   0x03
 
#define BAROMETER9_P_CONV_0   0x00
 Barometer 9 MEAS_CFG register setting.
 
#define BAROMETER9_P_CONV_1   0x08
 
#define BAROMETER9_P_CONV_2   0x10
 
#define BAROMETER9_PT_RATE_1   0x00
 
#define BAROMETER9_PT_RATE_4   0x01
 
#define BAROMETER9_PT_RATE_8   0x02
 
#define BAROMETER9_PT_RATE_16   0x03
 
#define BAROMETER9_PT_RATE_32   0x04
 
#define BAROMETER9_PT_RATE_64   0x05
 
#define BAROMETER9_PT_RATE_128   0x06
 
#define BAROMETER9_PT_RATE_256   0x07
 
#define BAROMETER9_TEMPERATURE_CON_CONST   128
 Barometer 9 conversion constants.
 
#define BAROMETER9_K_TO_C_CON_CONST   273.15f
 
#define BAROMETER9_PRESSURE_CON_CONST   64
 
#define BAROMETER9_DEVICE_ID   0x0321
 Barometer 9 Device ID value.
 
#define BAROMETER9_DEVICE_ADDRESS   0x20
 Barometer 9 device address setting.
 
#define BAROMETER9_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define BAROMETER9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Barometer 9 Click driver.

Macro Definition Documentation

◆ BAROMETER9_AVERAGE_MODE

#define BAROMETER9_AVERAGE_MODE   0x40

◆ BAROMETER9_DEVICE_ADDRESS

#define BAROMETER9_DEVICE_ADDRESS   0x20

Barometer 9 device address setting.

Specified setting for device slave address selection of Barometer 9 Click driver.

◆ BAROMETER9_DEVICE_ID

#define BAROMETER9_DEVICE_ID   0x0321

Barometer 9 Device ID value.

Specified Device ID of Barometer 9 Click driver.

◆ BAROMETER9_DIRECT_PATH

#define BAROMETER9_DIRECT_PATH   0x00

◆ BAROMETER9_FIFO_MODE

#define BAROMETER9_FIFO_MODE   0x20

◆ BAROMETER9_HIGH_POWER_MODE

#define BAROMETER9_HIGH_POWER_MODE   0x80

Barometer 9 description setting.

Specified setting for description of Barometer 9 Click driver.

◆ BAROMETER9_IDLE_MODE

#define BAROMETER9_IDLE_MODE   0x00

◆ BAROMETER9_K_TO_C_CON_CONST

#define BAROMETER9_K_TO_C_CON_CONST   273.15f

◆ BAROMETER9_LOW_POWER_MODE

#define BAROMETER9_LOW_POWER_MODE   0x00

◆ BAROMETER9_MEASURMENT_MODE

#define BAROMETER9_MEASURMENT_MODE   0x10

◆ BAROMETER9_P_CONV_0

#define BAROMETER9_P_CONV_0   0x00

Barometer 9 MEAS_CFG register setting.

Specified setting for MEAS_CFG register of Barometer 9 Click driver.

◆ BAROMETER9_P_CONV_1

#define BAROMETER9_P_CONV_1   0x08

◆ BAROMETER9_P_CONV_2

#define BAROMETER9_P_CONV_2   0x10

◆ BAROMETER9_PRESSURE_CON_CONST

#define BAROMETER9_PRESSURE_CON_CONST   64

◆ BAROMETER9_PT_RATE_1

#define BAROMETER9_PT_RATE_1   0x00

◆ BAROMETER9_PT_RATE_128

#define BAROMETER9_PT_RATE_128   0x06

◆ BAROMETER9_PT_RATE_16

#define BAROMETER9_PT_RATE_16   0x03

◆ BAROMETER9_PT_RATE_256

#define BAROMETER9_PT_RATE_256   0x07

◆ BAROMETER9_PT_RATE_32

#define BAROMETER9_PT_RATE_32   0x04

◆ BAROMETER9_PT_RATE_4

#define BAROMETER9_PT_RATE_4   0x01

◆ BAROMETER9_PT_RATE_64

#define BAROMETER9_PT_RATE_64   0x05

◆ BAROMETER9_PT_RATE_8

#define BAROMETER9_PT_RATE_8   0x02

◆ BAROMETER9_READ_PRES_AND_TEMP

#define BAROMETER9_READ_PRES_AND_TEMP   0x03

◆ BAROMETER9_READ_PRESS_ONLY

#define BAROMETER9_READ_PRESS_ONLY   0x01

◆ BAROMETER9_READ_TEMP_ONLY

#define BAROMETER9_READ_TEMP_ONLY   0x02

◆ BAROMETER9_SET_DATA_SAMPLE_EDGE

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

◆ BAROMETER9_SET_DATA_SAMPLE_MIDDLE

#define BAROMETER9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ BAROMETER9_SW_RESET

#define BAROMETER9_SW_RESET   0x08

◆ BAROMETER9_TEMPERATURE_CON_CONST

#define BAROMETER9_TEMPERATURE_CON_CONST   128

Barometer 9 conversion constants.

Specified conversion constants of Barometer 9 Click driver.