|
ADS9324 Driver 0.1.0
API reference
|
A configuration proven valid when the program is built. An invalid one does not compile. More...
#include <ads9324_types.hpp>
Public Member Functions | |
| consteval | CheckedConfig (const Config &config) |
| constexpr const Config & | Get () const &noexcept |
| void | Get () const &&=delete |
| Not on a temporary: the reference would dangle (KB-CPP20-044). | |
A configuration proven valid when the program is built. An invalid one does not compile.
constexpr CheckedConfig kBoard{MyConfig()}; runs Validate() at build time; Get() returns the proven configuration.