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

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

#include <bootloader_protocol.hpp>

Public Member Functions

bool isOK () const noexcept
 Check if reply indicates success.
 
BootloaderStatus getStatus () const noexcept
 Get status as enum.
 

Static Public Member Functions

static BootloaderReplySPI fromBuffer (const std::array< uint8_t, 5 > &in) noexcept
 Deserialize from 5-byte SPI buffer.
 

Public Attributes

uint8_t status
 Status byte.
 
uint32_t value
 32-bit data value
 

Detailed Description

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

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

All bytes are bit-flipped during SPI reception. Replies are delayed by one SPI transaction (standard SPI behavior), requiring two transactions per command.

Member Function Documentation

◆ fromBuffer()

static BootloaderReplySPI tmc9660::BootloaderReplySPI::fromBuffer ( const std::array< uint8_t, 5 > & in)
inlinestaticnoexcept

Deserialize from 5-byte SPI buffer.

Here is the caller graph for this function:

◆ getStatus()

BootloaderStatus tmc9660::BootloaderReplySPI::getStatus ( ) const
inlinenoexcept

Get status as enum.

◆ isOK()

bool tmc9660::BootloaderReplySPI::isOK ( ) const
inlinenoexcept

Check if reply indicates success.

Member Data Documentation

◆ status

uint8_t tmc9660::BootloaderReplySPI::status

Status byte.

◆ value

uint32_t tmc9660::BootloaderReplySPI::value

32-bit data value


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