BMP581 Driver 1.0.0
API reference
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
bmp581_types.hpp File Reference

BMP581 driver types: results, configuration, samples. More...

#include "bmp581_registers.hpp"
#include <cstdint>
#include <string_view>
Include dependency graph for bmp581_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bmp581::DriverResult< T >
 
struct  bmp581::DriverResult< void >
 
struct  bmp581::OsrOdrConfig
 Oversampling / ODR / pressure-enable (OSR_CONFIG + ODR_CONFIG). More...
 
struct  bmp581::IirConfig
 IIR configuration (DSP_CONFIG + DSP_IIR). Writable in standby only. More...
 
struct  bmp581::EffectiveOsr
 Effective oversampling and ODR validity (OSR_EFF). More...
 
struct  bmp581::InterruptConfig
 Interrupt pin configuration (INT_CONFIG). More...
 
struct  bmp581::InterruptSources
 Interrupt sources (INT_SOURCE). More...
 
struct  bmp581::Sample
 One pressure / temperature sample. More...
 
struct  bmp581::Config
 Convenience: one-call configuration for Driver::Configure(). More...
 

Namespaces

namespace  bmp581
 

Enumerations

enum class  bmp581::DriverError : uint8_t {
  bmp581::None = 0 , bmp581::InvalidParameter , bmp581::NotInitialized , bmp581::Bus ,
  bmp581::InvalidChipId , bmp581::NvmNotReady , bmp581::PorSoftReset , bmp581::InvalidPowerMode ,
  bmp581::NvmInvalidAddr , bmp581::NvmCommandError
}
 Driver-level error codes (stable for logging / telemetry). More...
 

Functions

constexpr std::string_view bmp581::ToString (DriverError e) noexcept
 
constexpr std::string_view bmp581::ToString (PowerMode m) noexcept
 
constexpr Config bmp581::BarometricReferencePreset () noexcept
 Barometric preset for a ~100 Hz reference channel. OSR ×8 pressure / ×1 temperature keeps the ODR valid at 100 Hz on the BMP581; IIR coeff 3 trims the last few Pa of noise without adding meaningful lag.
 

Detailed Description

BMP581 driver types: results, configuration, samples.