27#ifndef TMC9660_UART_INTERFACE_HPP
28#define TMC9660_UART_INTERFACE_HPP
61template <
typename Derived>
81template <typename Port>
83 detail::ExactHook<Port, bool()
noexcept>::Take(&Port::EnsureInitialized);
84 detail::ExactHook<Port,
BusStatus(
const uint8_t*, std::size_t, uint8_t*, std::size_t,
85 uint32_t)
noexcept>::Take(&Port::Exchange);
CRTP base of the platform UART port.
Definition tmc9660_uart_interface.hpp:62
UartInterface() noexcept=default
Only the derived port is constructed.
UartInterface & operator=(const UartInterface &)=delete
Ports are not copied: the driver holds a reference.
UartInterface(const UartInterface &)=delete
Ports are not copied: the driver holds a reference.
Satisfied by a class that derives from UartInterface<Port> and implements the required hooks with exa...
Definition tmc9660_uart_interface.hpp:82
BusStatus
What a UART port reports for one exchange.
Definition tmc9660_types.hpp:180
The TMC9660 driver: everything it declares lives here; internals in detail.
Definition tmc9660.hpp:37
constexpr uint32_t kMinAutobaudRate
Lowest standard baud rate the chip detects automatically.
Definition tmc9660_uart_interface.hpp:52
constexpr uint32_t kMaxBaudRate
Highest baud rate.
Definition tmc9660_uart_interface.hpp:46
constexpr uint8_t kUartDataBits
Data bits of a frame: 8N1, one start bit and one stop bit.
Definition tmc9660_uart_interface.hpp:44
constexpr uint32_t kMaxAutobaudRate
Highest standard baud rate the chip detects automatically at a 40 MHz system clock.
Definition tmc9660_uart_interface.hpp:54
constexpr uint32_t kTurnaroundUs
Definition tmc9660_uart_interface.hpp:50
Compile-time helpers of the TMC9660 driver: byte copy, exact hook matching, typed register fields and...
Public types of the TMC9660 driver: errors, Result<T>, the protocol enumerations, Config and its mode...