MAX22200 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
max22200_kconfig.hpp
Go to the documentation of this file.
1
21#ifndef MAX22200_KCONFIG_HPP
22#define MAX22200_KCONFIG_HPP
23
24#ifdef __has_include
25#if __has_include("sdkconfig.h")
26#include "sdkconfig.h"
27#endif
28#endif
29
30#include "max22200_types.hpp"
31
32#ifndef CONFIG_MAX22200_RREF_OHM
34#define CONFIG_MAX22200_RREF_OHM 0
35#endif
36
37namespace max22200 {
38
43constexpr Config KconfigDefaults() noexcept {
44 Config c{};
45#if defined(CONFIG_MAX22200_VARIANT_A) && CONFIG_MAX22200_VARIANT_A
47#endif
48#if defined(CONFIG_MAX22200_CLOCK_80KHZ) && CONFIG_MAX22200_CLOCK_80KHZ
49 c.clock = MasterClock::Khz80;
50#endif
51 c.rref_ohm = CONFIG_MAX22200_RREF_OHM;
52 return c;
53}
54
55} // namespace max22200
56
57#endif // MAX22200_KCONFIG_HPP
@ Max22200A
Selective clear on read: only the flags whose SDI bit is high clear.
#define CONFIG_MAX22200_RREF_OHM
Definition max22200_kconfig.hpp:34
Public types of the MAX22200 driver: errors, Result<T>, the channel and chip settings,...
The MAX22200 driver: everything it declares lives here; internals in detail.
Definition max22200.hpp:27
constexpr Config KconfigDefaults() noexcept
The configuration menuconfig selected, on top of Config{}.
Definition max22200_kconfig.hpp:43
What the driver is told about the chip and the board. Config{} holds the reset values of STATUS and e...
Definition max22200_types.hpp:456
Variant variant
Definition max22200_types.hpp:457