HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
tmc51x0::SpiResponse Struct Reference

TMC5160 SPI response structure. More...

#include <tmc51x0_comm_interface.hpp>

Collaboration diagram for tmc51x0::SpiResponse:
[legend]

Public Attributes

SpiStatus status
 SPI_STATUS flags from the chip.
 
uint32_t value
 
bool success
 true if the transport transaction succeeded
 

Detailed Description

TMC5160 SPI response structure.

Contains the SPI_STATUS and data value from a single chip's response. Used for both single-chip and multi-chip (daisy-chain) communication. Responses are returned in the same order as commands were sent.

Member Data Documentation

◆ status

SpiStatus tmc51x0::SpiResponse::status

SPI_STATUS flags from the chip.

◆ success

bool tmc51x0::SpiResponse::success

true if the transport transaction succeeded

◆ value

uint32_t tmc51x0::SpiResponse::value

32-bit data value (for reads) or write confirmation (for writes)


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