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

Bootloader command structure for SPI (40-bit / 5-byte protocol). More...

#include <bootloader_protocol.hpp>

Public Member Functions

void toBuffer (std::array< uint8_t, 5 > &out) const noexcept
 Serialize to 5-byte buffer for SPI transmission.
 

Public Attributes

uint8_t command
 Command byte.
 
uint32_t value
 32-bit data value
 

Detailed Description

Bootloader command structure for SPI (40-bit / 5-byte protocol).

Format: [COMMAND(8)] [VALUE(32)]

All bytes are bit-flipped during SPI transmission. Serialization is handled automatically by the TMC9660Bootloader::sendCommand() methods.

Member Function Documentation

◆ toBuffer()

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

Serialize to 5-byte buffer for SPI transmission.

Member Data Documentation

◆ command

uint8_t tmc9660::BootloaderCommandSPI::command

Command byte.

◆ value

uint32_t tmc9660::BootloaderCommandSPI::value

32-bit data value


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