BMP581 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Typedefs | Variables
bmp581::reg Namespace Reference

The BMP581 register map. More...

Typedefs

using IntConfigMode = detail::Field< uint8_t, 0U, 1U >
 int_mode: 0 pulsed, 1 latched.
 
using IntConfigPol = detail::Field< uint8_t, 1U, 1U >
 int_pol: 0 active low, 1 high.
 
using IntConfigOd = detail::Field< uint8_t, 2U, 1U >
 int_od: 0 push-pull, 1 open drain.
 
using IntConfigEn = detail::Field< uint8_t, 3U, 1U >
 int_en: the INT pin enabled.
 
using IntConfigPadDrv = detail::Field< uint8_t, 4U, 4U >
 pad_int_drv: INT pad drive.
 
using FifoThreshold = detail::Field< uint8_t, 0U, 5U >
 fifo_threshold: 0 off, 1 to 31 frames.
 
using FifoModeBit = detail::Field< uint8_t, 5U, 1U >
 fifo_mode: 0 streaming, 1 stop on full.
 
using FifoCountField = detail::Field< uint8_t, 0U, 6U >
 fifo_count: frames in the FIFO.
 
using FifoFrameSel = detail::Field< uint8_t, 0U, 2U >
 fifo_frame_sel: off, T, P, P and T.
 
using FifoDecSel = detail::Field< uint8_t, 2U, 3U >
 fifo_dec_sel: keep every 2^n-th frame.
 
using DspCompPtEn = detail::Field< uint8_t, 0U, 2U >
 comp_pt_en: 0b11 both compensated.
 
using DspIirT = detail::Field< uint8_t, 0U, 3U >
 set_iir_t: temperature IIR coefficient.
 
using DspIirP = detail::Field< uint8_t, 3U, 3U >
 set_iir_p: pressure IIR coefficient.
 
using OorThrP16 = detail::Field< uint8_t, 0U, 1U >
 oor_thr_p_16: reference bit 16.
 
using OorCntLim = detail::Field< uint8_t, 6U, 2U >
 cnt_lim: 1, 3, 7 or 15 samples.
 
using OsrT = detail::Field< uint8_t, 0U, 3U >
 osr_t: 2^n temperature oversampling.
 
using OsrP = detail::Field< uint8_t, 3U, 3U >
 osr_p: 2^n pressure oversampling.
 
using OdrPwrMode = detail::Field< uint8_t, 0U, 2U >
 pwr_mode: what the chip does now.
 
using OdrOdr = detail::Field< uint8_t, 2U, 5U >
 odr: output data rate code.
 
using OsrEffT = detail::Field< uint8_t, 0U, 3U >
 osr_t_eff.
 
using OsrEffP = detail::Field< uint8_t, 3U, 3U >
 osr_p_eff.
 

Variables

constexpr uint8_t kChipId = 0x01
 CHIP_ID (R): 0x50 (section 7.1).
 
constexpr uint8_t kRevId = 0x02
 REV_ID (R): ASIC revision, 0x32 (section 7.2).
 
constexpr uint8_t kChipStatus = 0x11
 
constexpr uint8_t kDriveConfig = 0x13
 
constexpr uint8_t kIntConfig = 0x14
 INT_CONFIG (R/W): the INT pin (section 7.5).
 
constexpr uint8_t kIntSource = 0x15
 INT_SOURCE (R/W): interrupt sources (7.6).
 
constexpr uint8_t kFifoConfig = 0x16
 FIFO_CONFIG (R/W): threshold, mode (7.7).
 
constexpr uint8_t kFifoCount = 0x17
 FIFO_COUNT (R): frames in the FIFO (7.8).
 
constexpr uint8_t kFifoSel = 0x18
 FIFO_SEL (R/W): frame type, decimation (7.9).
 
constexpr uint8_t kReserved0 = 0x1C
 Reserved (R): always reads 0x00 (7.10).
 
constexpr uint8_t kTempXlsb = 0x1D
 TEMP_DATA_XLSB (R): temperature bits 7..0.
 
constexpr uint8_t kTempLsb = 0x1E
 TEMP_DATA_LSB (R): temperature bits 15..8.
 
constexpr uint8_t kTempMsb = 0x1F
 TEMP_DATA_MSB (R): temperature bits 23..16.
 
constexpr uint8_t kPressXlsb = 0x20
 PRESS_DATA_XLSB (R): pressure bits 7..0.
 
constexpr uint8_t kPressLsb = 0x21
 PRESS_DATA_LSB (R): pressure bits 15..8.
 
constexpr uint8_t kPressMsb = 0x22
 PRESS_DATA_MSB (R): pressure bits 23..16.
 
constexpr uint8_t kReserved1 = 0x23
 Reserved (R): always reads 0x00 (7.17).
 
constexpr uint8_t kReserved4 = 0x26
 Reserved (R): always reads 0x00 (7.20).
 
constexpr uint8_t kIntStatus = 0x27
 INT_STATUS (R): clear-on-read (7.21).
 
constexpr uint8_t kStatus = 0x28
 STATUS (R): NVM ready and errors (7.22).
 
constexpr uint8_t kFifoData = 0x29
 FIFO_DATA (R): FIFO output port (7.23).
 
constexpr uint8_t kNvmAddr = 0x2B
 NVM_ADDR (R/W) (7.24).
 
constexpr uint8_t kNvmDataLsb = 0x2C
 NVM_DATA_LSB (R/W) (7.25).
 
constexpr uint8_t kNvmDataMsb = 0x2D
 NVM_DATA_MSB (R/W) (7.26).
 
constexpr uint8_t kDspConfig = 0x30
 DSP_CONFIG (R/W): compensation, IIR routing.
 
constexpr uint8_t kDspIir = 0x31
 DSP_IIR (R/W): IIR coefficients (7.28).
 
constexpr uint8_t kOorThrPLsb = 0x32
 OOR_THR_P_LSB (R/W): reference bits 7..0.
 
constexpr uint8_t kOorThrPMsb = 0x33
 OOR_THR_P_MSB (R/W): reference bits 15..8.
 
constexpr uint8_t kOorRange = 0x34
 OOR_RANGE (R/W): window, Pa (7.31).
 
constexpr uint8_t kOorConfig = 0x35
 OOR_CONFIG (R/W): reference bit 16, count (7.32).
 
constexpr uint8_t kOsrConfig = 0x36
 OSR_CONFIG (R/W): oversampling, press_en (7.33).
 
constexpr uint8_t kOdrConfig = 0x37
 ODR_CONFIG (R/W): power mode, ODR (7.34).
 
constexpr uint8_t kOsrEff = 0x38
 OSR_EFF (R): effective oversampling (7.35).
 
constexpr uint8_t kCmd = 0x7E
 CMD (W): soft reset and NVM sequences (7.36).
 
constexpr uint8_t kChipIdValue = 0x50
 CHIP_ID of every BMP581 (section 7.1).
 
constexpr uint8_t kIntConfigReset = 0x35
 
constexpr uint8_t kDspConfigReset = 0x03
 DSP_CONFIG: both compensated, IIR off.
 
constexpr uint8_t kOsrConfigReset = 0x00
 OSR_CONFIG: x1, x1, pressure off.
 
constexpr uint8_t kOdrConfigReset = 0x70
 ODR_CONFIG: standby, 1 Hz, deep standby on.
 
constexpr uint8_t kStatusReset = 0x02
 STATUS: NVM ready (section 7.22).
 
constexpr uint32_t kDataReset = 0x7F7F7FU
 
constexpr uint8_t kFifoEmpty = 0x7F
 FIFO_DATA of an empty or disabled FIFO (4.6.3).
 
constexpr uint8_t kIntStatusAfterReset = 0x10
 
constexpr uint8_t kCmdSoftReset = 0xB6
 Soft reset; over I2C the data byte is NACKed.
 
constexpr uint8_t kIntDrdy = 1U << 0U
 Data ready (drdy_data_reg).
 
constexpr uint8_t kIntFifoFull = 1U << 1U
 FIFO full.
 
constexpr uint8_t kIntFifoThs = 1U << 2U
 FIFO threshold reached.
 
constexpr uint8_t kIntOorP = 1U << 3U
 Pressure out of range.
 
constexpr uint8_t kIntPor = 1U << 4U
 INT_STATUS only: POR or soft reset complete.
 
constexpr uint8_t kIntSourceMask = 0x0FU
 INT_SOURCE bits 3..0 (7..4 reserved).
 
constexpr uint8_t kIntStatusMask = 0x1FU
 INT_STATUS bits 4..0 (7..5 reserved).
 
constexpr uint8_t kFifoConfigMask = 0x3FU
 FIFO_CONFIG bits 5..0 (7..6 reserved).
 
constexpr uint8_t kFifoSelMask = 0x1FU
 FIFO_SEL bits 4..0 (7..5 reserved).
 
constexpr uint8_t kStatusNvmRdy = 1U << 1U
 status_nvm_rdy: ready for NVM operations.
 
constexpr uint8_t kStatusNvmErr = 1U << 2U
 status_nvm_err: NVM error.
 
constexpr uint8_t kStatusNvmCmdErr = 1U << 3U
 status_nvm_cmd_err: NVM command error.
 
constexpr uint8_t kStatusReserved = 0x60U
 reserved_6_5: read 0.
 
constexpr uint8_t kDspIirFlushForced = 1U << 2U
 iir_flush_forced_en.
 
constexpr uint8_t kDspShdwSelIirT = 1U << 3U
 Temperature registers after the IIR.
 
constexpr uint8_t kDspFifoSelIirT = 1U << 4U
 Temperature FIFO after the IIR.
 
constexpr uint8_t kDspShdwSelIirP = 1U << 5U
 Pressure registers after the IIR.
 
constexpr uint8_t kDspFifoSelIirP = 1U << 6U
 Pressure FIFO after the IIR.
 
constexpr uint8_t kDspOorSelIirP = 1U << 7U
 Out-of-range check after the IIR.
 
constexpr uint8_t kDspShdwSelIir = 0x28U
 Both data registers after the IIR.
 
constexpr uint8_t kDspFifoSelIir = 0x50U
 Both FIFO values after the IIR.
 
constexpr uint8_t kDspIirMask = 0x3FU
 DSP_IIR bits 5..0.
 
constexpr uint8_t kOorConfigMask = 0xC1U
 OOR_CONFIG bits 7..6 and 0 (5..1 reserved).
 
constexpr uint8_t kOsrPressEn = 1U << 6U
 press_en: pressure measured as well.
 
constexpr uint8_t kOsrReserved = 0x80U
 reserved_7: reads 0.
 
constexpr uint8_t kOdrDeepDis = 1U << 7U
 deep_dis: deep standby disabled.
 
constexpr uint8_t kOsrEffOdrValid = 1U << 7U
 odr_is_valid.
 
constexpr uint8_t kOsrEffReserved = 1U << 6U
 reserved_6: reads 0.
 

Detailed Description

The BMP581 register map.