|
AT25040B Driver 0.1.0
API reference
|
Optional ESP-IDF layer: a Config built from the CONFIG_AT25040B_* Kconfig options.
More...
#include "at25040b_types.hpp"Go to the source code of this file.
Namespaces | |
| namespace | at25040b |
The AT25040B driver: everything it declares lives here; internals in detail. | |
Macros | |
| #define | CONFIG_AT25040B_WRITE_TIMEOUT_US 10000 |
Functions | |
| constexpr Config | at25040b::KconfigDefaults () noexcept |
| The configuration menuconfig selected. | |
Optional ESP-IDF layer: a Config built from the CONFIG_AT25040B_* 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 Config{}.
Kconfig writes a bool option set to "n" as an absent macro. The identity check is on by default, so its option is a "skip" option: an absent CONFIG_AT25040B_SKIP_WRITE_ENABLE_CHECK means the check runs, under ESP-IDF and outside it alike. Read and write verification is chosen per call (Verify), not here.
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 header includes this one (handbook KB-CPP20-018).
| #define CONFIG_AT25040B_WRITE_TIMEOUT_US 10000 |
Write cycle timeout in microseconds when Kconfig does not set it: Config{}.write_timeout_us.