23#ifndef NTC_THERMISTOR_ADC_INTERFACE_HPP
24#define NTC_THERMISTOR_ADC_INTERFACE_HPP
42template <
typename Derived>
63template <typename Port>
65 detail::ExactHook<Port, bool()
noexcept>::Take(&Port::EnsureInitialized);
66 detail::ExactHook<Port, bool(uint8_t, uint32_t&)
noexcept>::Take(&Port::ReadRaw);
CRTP base of the platform ADC port.
Definition ntc_thermistor_adc_interface.hpp:43
AdcInterface(const AdcInterface &)=delete
Ports are not copied: the driver holds a reference.
AdcInterface & operator=(const AdcInterface &)=delete
Ports are not copied: the driver holds a reference.
AdcInterface() noexcept=default
Only the derived port is constructed.
Satisfied by a class that derives from AdcInterface<Port> and implements the required hooks with exac...
Definition ntc_thermistor_adc_interface.hpp:64
The NTC thermistor driver: everything it declares lives here; internals in detail.
Definition ntc_thermistor.hpp:25
Compile-time helpers of the NTC_THERMISTOR driver: typed integer literals, exact hook matching and en...