|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
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 | |
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.
|
inlinestaticnoexcept |
Deserialize from 5-byte SPI buffer.
|
inlinenoexcept |
Get status as enum.
|
inlinenoexcept |
Check if reply indicates success.
| uint8_t tmc9660::BootloaderReplySPI::status |
Status byte.
| uint32_t tmc9660::BootloaderReplySPI::value |
32-bit data value