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

Union for accessing the 40-bit SPI frame in different ways. More...

#include <tmc51x0_comm_interface.hpp>

Public Attributes

uint8_t bytes [5]
 Frame as 5 bytes (for direct byte access)
 
struct { 
 
   uint8_t   address_byte 
 Address byte (bit 7 = write, bits 6-0 = address) More...
 
   uint8_t   data_bytes [4] 
 Data bytes (MSB to LSB) More...
 
fields 
 Frame as structured fields.
 
uint64_t raw
 

Detailed Description

Union for accessing the 40-bit SPI frame in different ways.

Member Data Documentation

◆ address_byte

uint8_t tmc51x0::SpiCommand::Frame::address_byte

Address byte (bit 7 = write, bits 6-0 = address)

◆ bytes

uint8_t tmc51x0::SpiCommand::Frame::bytes[5]

Frame as 5 bytes (for direct byte access)

◆ data_bytes

uint8_t tmc51x0::SpiCommand::Frame::data_bytes[4]

Data bytes (MSB to LSB)

◆ [struct]

struct { ... } tmc51x0::SpiCommand::Frame::fields

Frame as structured fields.

◆ raw

uint64_t tmc51x0::SpiCommand::Frame::raw

Frame as 64-bit value (for easy initialization, upper 24 bits unused)


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