BMP581 Driver 1.0.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bmp581::BusInterface< Derived > Class Template Reference

CRTP base for the BMP581 register transport. More...

#include <bmp581_bus_interface.hpp>

Public Member Functions

bool WriteRegs (uint8_t reg, const uint8_t *data, std::size_t len) noexcept
 Write len bytes starting at register reg (auto-increment).
 
bool ReadRegs (uint8_t reg, uint8_t *out, std::size_t len) noexcept
 Read len bytes starting at register reg (auto-increment).
 
void DelayUs (uint32_t us) noexcept
 Blocking delay in microseconds (soft reset 2 ms, standby 2.5 ms, NVM 0.8 ms).
 
bool EnsureInitialized () noexcept
 Lazy bus bring-up; must return true before any transfer.
 

Detailed Description

template<typename Derived>
class bmp581::BusInterface< Derived >

CRTP base for the BMP581 register transport.

Template Parameters
DerivedConcrete adapter type (e.g. EspI2cAdapter).

Member Function Documentation

◆ DelayUs()

template<typename Derived >
void bmp581::BusInterface< Derived >::DelayUs ( uint32_t  us)
inlinenoexcept

Blocking delay in microseconds (soft reset 2 ms, standby 2.5 ms, NVM 0.8 ms).

◆ EnsureInitialized()

template<typename Derived >
bool bmp581::BusInterface< Derived >::EnsureInitialized ( )
inlinenoexcept

Lazy bus bring-up; must return true before any transfer.

◆ ReadRegs()

template<typename Derived >
bool bmp581::BusInterface< Derived >::ReadRegs ( uint8_t  reg,
uint8_t *  out,
std::size_t  len 
)
inlinenoexcept

Read len bytes starting at register reg (auto-increment).

◆ WriteRegs()

template<typename Derived >
bool bmp581::BusInterface< Derived >::WriteRegs ( uint8_t  reg,
const uint8_t *  data,
std::size_t  len 
)
inlinenoexcept

Write len bytes starting at register reg (auto-increment).


The documentation for this class was generated from the following file: