|
TMC5160 Driver 0.1.0
API reference
|
A configuration proven valid at build time. More...
#include <tmc5160_types.hpp>
Public Member Functions | |
| consteval | CheckedConfig (const Config &config) noexcept |
Check config at build time. | |
| 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 at build time.
constexpr CheckedConfig kBoard{MakeConfig(motor, board)}; fails to compile, naming ConfigIsInvalid, when Validate() rejects it. The driver still validates at start-up.
|
inlineexplicitnoexcept |
Check config at build time.
| config | The configuration; it must pass Validate(). |
|
inlineconstexprnoexcept |