|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
Bootloader command structure for UART (64-bit / 8-byte protocol). More...
#include <bootloader_protocol.hpp>
Public Member Functions | |
| void | toBuffer (std::array< uint8_t, 8 > &out) const noexcept |
| Serialize to 8-byte buffer for UART transmission. | |
Public Attributes | |
| uint8_t | deviceAddr |
| Device address. | |
| uint8_t | command |
| Command byte. | |
| uint32_t | value |
| 32-bit data value | |
Bootloader command structure for UART (64-bit / 8-byte protocol).
Format: [SYNC(0x55)] [DEVICE_ADDR] [COMMAND] [VALUE(32 MSB first)] [CRC8]
No bit-flipping (unlike SPI). CRC-8 checksum with polynomial x^8 + x^2 + x^1 + x^0. Serialization is handled automatically by the TMC9660Bootloader::sendCommand() methods.
|
inlinenoexcept |
Serialize to 8-byte buffer for UART transmission.
| uint8_t tmc9660::BootloaderCommandUART::command |
Command byte.
| uint8_t tmc9660::BootloaderCommandUART::deviceAddr |
Device address.
| uint32_t tmc9660::BootloaderCommandUART::value |
32-bit data value