|
ADS9324 Driver 0.1.0
API reference
|
Optional ESP-IDF layer: a Config built from the CONFIG_ADS9324_* Kconfig options.
More...
#include "ads9324_types.hpp"Go to the source code of this file.
Namespaces | |
| namespace | ads9324 |
The ADS9324 driver: everything it declares lives here; internals in detail. | |
Macros | |
| #define | CONFIG_ADS9324_CONVST_HZ 100000 |
| #define | CONFIG_ADS9324_READY_TIMEOUT_US 10000 |
Functions | |
| constexpr Config | ads9324::KconfigDefaults () noexcept |
The configuration menuconfig selected, on top of the Config{} defaults. | |
Optional ESP-IDF layer: a Config built from the CONFIG_ADS9324_* Kconfig options.
Include this header only where you want menuconfig to choose the defaults; the driver never includes it and no driver signature depends on it. Under ESP-IDF the values come from sdkconfig.h. Without Kconfig every option falls back to the Config{} default, so KconfigDefaults() equals Config{}.
Kconfig writes a bool option set to "n" as an absent macro, so an absent option means off in both cases.
One configuration per program: the inline function below depends on the CONFIG_ macros, so every translation unit of one program must see the same values (ESP-IDF has one sdkconfig.h per build; each host test is its own program). No driver or library header includes this one (handbook KB-CPP20-018).
| #define CONFIG_ADS9324_CONVST_HZ 100000 |
CONVST frequency when Kconfig does not set it: 100 kHz, the lowest the chip allows.
| #define CONFIG_ADS9324_READY_TIMEOUT_US 10000 |
DRDY wait when Kconfig does not set it: Config{}.sampling.ready_timeout_us.