FDO2 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
fdo2::UartPort Concept Reference

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

#include <fdo2_uart_interface.hpp>

Concept definition

template<typename Port>
concept fdo2::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);
}
Satisfied by a class that derives from UartInterface<Port> and implements the required hooks with exa...
Definition fdo2_uart_interface.hpp:125

Detailed Description

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

Each hook's address is matched with detail::ExactHook, which takes a member function of exactly the signature and converts no value: a hook declared with a narrower length or timeout, or without noexcept, does not satisfy the concept (handbook KB-CPP20-006).

Template Parameters
PortThe port class.