BMP581 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
bmp581::SpiPort Concept Reference

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

#include <bmp581_spi_interface.hpp>

Concept definition

template<typename Port>
concept bmp581::SpiPort = std::derived_from<Port, SpiInterface<Port>> && requires {
detail::ExactHook<Port, bool() noexcept>::Take(&Port::EnsureInitialized);
detail::ExactHook<Port, bool(const uint8_t*, uint8_t*, std::size_t) noexcept>::Take(
&Port::Transfer);
}
Satisfied by a class that derives from SpiInterface<Port> and implements the required hooks with exac...
Definition bmp581_spi_interface.hpp:100

Detailed Description

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

Template Parameters
PortThe port class.