31#ifndef DYNAMIXEL_UART_INTERFACE_HPP
32#define DYNAMIXEL_UART_INTERFACE_HPP
76template <
typename Derived>
101template <typename Port>
103 detail::ExactHook<Port, bool()
noexcept>::Take(&Port::EnsureInitialized);
104 detail::ExactHook<Port, bool(
const uint8_t*, std::size_t)
noexcept>::Take(&Port::Write);
105 detail::ExactHook<Port, std::size_t(uint8_t*, std::size_t, uint32_t)
noexcept>::Take(&Port::Read);
106 detail::ExactHook<Port, bool()
noexcept>::Take(&Port::FlushInput);
107 detail::ExactHook<Port, void(uint32_t)
noexcept>::Take(&Port::DelayUs);
CRTP base of the platform UART port.
Definition dynamixel_uart_interface.hpp:77
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 dynamixel_uart_interface.hpp:102
Compile-time helpers of the DYNAMIXEL driver: typed integer literals, exact hook matching,...
Public types of the DYNAMIXEL driver: errors, Result<T>, protocol enumerations, replies,...
The DYNAMIXEL driver: everything it declares lives here; internals in detail.
Definition dynamixel.hpp:35
constexpr uint32_t kMaxTurnaroundUs
Largest Return Delay Time (254 counts of 2 microseconds).
Definition dynamixel_uart_interface.hpp:59
constexpr uint32_t kTurnaroundUs
Definition dynamixel_uart_interface.hpp:57
constexpr uint32_t kInstructionByteGapMaxUsV1
Longest pause between two bytes of a protocol 1.0 instruction packet that the servo accepts.
Definition dynamixel_uart_interface.hpp:63
constexpr uint32_t kFactoryBaudRate
Factory rate of the X series (Baud Rate register value 1).
Definition dynamixel_uart_interface.hpp:54
constexpr uint32_t kMaxBaudRate
Definition dynamixel_uart_interface.hpp:52
constexpr uint32_t kInstructionByteGapMaxUsV2
Longest pause between two bytes of a protocol 2.0 instruction packet that the servo accepts.
Definition dynamixel_uart_interface.hpp:61