BASIS 2 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
alicat_basis2::UartPort Concept Reference

Satisfied by a class that derives from UartInterface<Port> and implements the five required hooks with exactly the types above, noexcept. More...

#include <alicat_basis2_uart_interface.hpp>

Concept definition

template<typename Port>
concept alicat_basis2::UartPort = std::derived_from<Port, UartInterface<Port>> && requires {
detail::ExactHook<Port, bool() noexcept>::Take(&Port::EnsureInitialized);
detail::ExactHook<Port, bool(const uint8_t*, std::size_t) noexcept>::Take(&Port::Write);
detail::ExactHook<Port, std::size_t(uint8_t*, std::size_t, uint32_t) noexcept>::Take(&Port::Read);
detail::ExactHook<Port, bool() noexcept>::Take(&Port::FlushInput);
detail::ExactHook<Port, uint32_t() noexcept>::Take(&Port::NowMs);
}
Satisfied by a class that derives from UartInterface<Port> and implements the five required hooks wit...
Definition alicat_basis2_uart_interface.hpp:97

Detailed Description

Satisfied by a class that derives from UartInterface<Port> and implements the five required hooks with exactly the types above, noexcept.

Template Parameters
PortThe port class.