BMP581 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Variables
bmp581::spi Namespace Reference

What the BMP581 needs from the SPI bus (sections 5.2.1, 5.5, table 18). A port and a board configuration check their settings against these with static_assert (handbook KB-CPP-123). More...

Variables

constexpr uint8_t kSpiMode = 0
 
constexpr bool kMsbFirst = true
 Each byte is clocked most significant bit first (figures 8 to 11).
 
constexpr uint32_t kMaxClockHz = 12'000'000
 Highest SCK frequency with VDDIO at or above 1.62 V and C_bus up to 80 pF (table 4, f_spi).
 
constexpr uint32_t kMaxClockLowVoltageHz = 7'000'000
 Highest SCK frequency below VDDIO 1.62 V with C_bus up to 40 pF (table 4, f_spi_lowv).
 
constexpr uint32_t kMinCsHighNs = 80
 
constexpr uint32_t kCsSetupNs = 40
 
constexpr uint32_t kCsHoldNs = 40
 Last SCK edge to CSB high, the CSB lag time (table 18, T_hold_csb).
 
constexpr bool kContinuousWord = false
 false: SCK may pause between the bytes of one frame while CSB stays low (section 5.5).
 

Detailed Description

What the BMP581 needs from the SPI bus (sections 5.2.1, 5.5, table 18). A port and a board configuration check their settings against these with static_assert (handbook KB-CPP-123).

Variable Documentation

◆ kCsSetupNs

constexpr uint32_t bmp581::spi::kCsSetupNs = 40
inlineconstexpr

CSB low to the first SCK edge. Table 18 gives only the CSB lag time; the same value is assumed here (not verified on hardware).

◆ kMinCsHighNs

constexpr uint32_t bmp581::spi::kMinCsHighNs = 80
inlineconstexpr

Shortest CSB high time between two frames: the idle time after a write or a read access (table 18, T_wr_idle and T_rd_idle).

◆ kSpiMode

constexpr uint8_t bmp581::spi::kSpiMode = 0
inlineconstexpr

SPI mode 0 (CPOL 0, CPHA 0); the chip also accepts mode 3, chosen by SCK at the CSB falling edge (section 5.5).