HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
tmc9660::BootloaderCommandUART Struct Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ toBuffer()

void tmc9660::BootloaderCommandUART::toBuffer ( std::array< uint8_t, 8 > & out) const
inlinenoexcept

Serialize to 8-byte buffer for UART transmission.

Here is the call graph for this function:

Member Data Documentation

◆ command

uint8_t tmc9660::BootloaderCommandUART::command

Command byte.

◆ deviceAddr

uint8_t tmc9660::BootloaderCommandUART::deviceAddr

Device address.

◆ value

uint32_t tmc9660::BootloaderCommandUART::value

32-bit data value


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