HF-TMC9660 Driver
Hardware Agnostic C++ Driver for the TMC9660
|
SPI implementation of TMC9660CommInterface. More...
#include <TMC9660CommInterface.hpp>
Public Member Functions | |
CommMode | mode () const noexcept override |
Return underlying communication mode. | |
virtual bool | spiTransfer (std::array< uint8_t, 8 > &tx, std::array< uint8_t, 8 > &rx) noexcept=0 |
Low-level SPI transfer of 8 bytes. | |
bool | transfer (const TMCLFrame &tx, TMCLReply &reply, uint8_t) noexcept override |
Perform a full duplex TMCL transfer. | |
![]() | |
virtual | ~TMC9660CommInterface () noexcept=default |
SPI implementation of TMC9660CommInterface.
Uses a 4-wire SPI bus (mode 3) to exchange 64-bit datagrams (8 bytes). Data is sent MSB-first, big-endian. Replies match the previous command; initial reply uses FIRST_CMD status.
|
inlineoverridevirtualnoexcept |
Return underlying communication mode.
Implements TMC9660CommInterface.
|
pure virtualnoexcept |
Low-level SPI transfer of 8 bytes.
tx | Buffer containing 8 bytes to transmit. |
rx | Buffer to receive 8 bytes from device. |
|
inlineoverridevirtualnoexcept |
Perform a full duplex TMCL transfer.
Implementations encode tx
according to the active mode (SPI or UART), transmit it and decode the reply into reply
. The address
parameter is only used for UART transfers and ignored for SPI.
Implements TMC9660CommInterface.