BASIS 2 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
alicat_basis2::UartInterface< Derived > Class Template Reference

CRTP base of the platform serial port. More...

#include <alicat_basis2_uart_interface.hpp>

Public Member Functions

 UartInterface (const UartInterface &)=delete
 Ports are not copied: the bus holds a reference.
 
UartInterface & operator= (const UartInterface &)=delete
 Ports are not copied: the bus holds a reference.
 

Protected Member Functions

 UartInterface () noexcept=default
 Only the derived port is constructed.
 
 ~UartInterface () noexcept=default
 Destroyed through the derived port only.
 

Detailed Description

template<typename Derived>
class alicat_basis2::UartInterface< Derived >

CRTP base of the platform serial port.

Derive class MyPort : public alicat_basis2::UartInterface<MyPort> and implement the hooks above. The base declares no hook and no data; the driver checks your class with the UartPort concept.

Template Parameters
DerivedYour port class.

The documentation for this class was generated from the following file: