MCP9700 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
mcp9700::AdcPort Concept Reference

Satisfied by a class that derives from AdcInterface<Port> and implements the required hooks with exactly the types above, noexcept and returning bool (handbook KB-CPP20-006). More...

#include <mcp9700_adc_interface.hpp>

Concept definition

template<typename Port>
concept mcp9700::AdcPort = std::derived_from<Port, AdcInterface<Port>> && requires {
detail::ExactHook<Port, bool() noexcept>::Take(&Port::EnsureInitialized);
detail::ExactHook<Port, bool(uint8_t, uint32_t&) noexcept>::Take(&Port::ReadVoltageMv);
}
Satisfied by a class that derives from AdcInterface<Port> and implements the required hooks with exac...
Definition mcp9700_adc_interface.hpp:92

Detailed Description

Satisfied by a class that derives from AdcInterface<Port> and implements the required hooks with exactly the types above, noexcept and returning bool (handbook KB-CPP20-006).

Template Parameters
PortThe port class.