20#ifndef BMP581_KCONFIG_HPP
21#define BMP581_KCONFIG_HPP
24#if __has_include("sdkconfig.h")
34#ifndef CONFIG_BMP581_PRESSURE_OVERSAMPLING
36#define CONFIG_BMP581_PRESSURE_OVERSAMPLING 1
38#ifndef CONFIG_BMP581_TEMPERATURE_OVERSAMPLING
40#define CONFIG_BMP581_TEMPERATURE_OVERSAMPLING 1
42#ifndef CONFIG_BMP581_STARTUP_TIMEOUT_MS
45#define CONFIG_BMP581_STARTUP_TIMEOUT_MS 10
47#ifndef CONFIG_BMP581_DATA_READY_TIMEOUT_MS
50#define CONFIG_BMP581_DATA_READY_TIMEOUT_MS 2000
62 for (uint32_t i = 1U; i < 8U; ++i) {
63 if (std::cmp_greater_equal(samples, uint32_t{1} << i)) {
78#if defined(CONFIG_BMP581_DATA_READY) && CONFIG_BMP581_DATA_READY
79 c.source_data_ready =
true;
#define CONFIG_BMP581_STARTUP_TIMEOUT_MS
Definition bmp581_kconfig.hpp:45
#define CONFIG_BMP581_TEMPERATURE_OVERSAMPLING
Definition bmp581_kconfig.hpp:40
#define CONFIG_BMP581_PRESSURE_OVERSAMPLING
Definition bmp581_kconfig.hpp:36
#define CONFIG_BMP581_DATA_READY_TIMEOUT_MS
Definition bmp581_kconfig.hpp:50
Public types of the BMP581 driver: errors, Result<T>, configuration, measurements and the datasheet's...
Oversampling
Oversampling ratio, OSR_CONFIG.osr_p and osr_t (section 7.33).
Definition bmp581_types.hpp:229
@ X1
1 sample. Reset value.
The BMP581 driver: everything it declares lives here; internals in detail.
Definition bmp581.hpp:32
constexpr Oversampling OversamplingFromSamples(int32_t samples) noexcept
The oversampling setting for a number of samples, rounded down to a power of two.
Definition bmp581_kconfig.hpp:60
constexpr Config KconfigDefaults() noexcept
The configuration menuconfig selected, on top of the datasheet defaults.
Definition bmp581_kconfig.hpp:74
Everything EnsureInitialized() and ApplyConfig() write to the chip.
Definition bmp581_types.hpp:411
Oversampling pressure_oversampling
OSR_CONFIG.osr_p.
Definition bmp581_types.hpp:413