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

Union for accessing UART frames in different ways. More...

#include <tmc51x0_comm_interface.hpp>

Public Attributes

uint8_t bytes [8]
 Frame as 8 bytes (maximum size)
 
struct { 
 
   uint8_t   sync_reserved 
 Byte 0: Sync (0x05) More...
 
   uint8_t   node_addr 
 Byte 1: Node Address. More...
 
   uint8_t   rw_address 
 Byte 2: RW bit (1) + 7-bit register address. More...
 
   uint8_t   data_bytes [4] 
 Bytes 3-6: 32-bit data (MSB-first) More...
 
   uint8_t   crc 
 Byte 7: CRC8 checksum. More...
 
write_fields 
 
struct { 
 
   uint8_t   sync_reserved 
 Byte 0: Sync (0x05) More...
 
   uint8_t   node_addr 
 Byte 1: Node Address. More...
 
   uint8_t   rw_address 
 Byte 2: RW bit (0) + 7-bit register address. More...
 
   uint8_t   crc 
 Byte 3: CRC8 checksum. More...
 
read_request_fields 
 
struct { 
 
   uint8_t   sync_reserved 
 Byte 0: Sync (0x05) More...
 
   uint8_t   master_addr 
 Byte 1: Master Address (0xFF) More...
 
   uint8_t   reg_addr 
 Byte 2: Register Address (0x00) More...
 
   uint8_t   data_bytes [4] 
 Bytes 3-6: 32-bit data (MSB-first) More...
 
   uint8_t   crc 
 Byte 7: CRC8 checksum. More...
 
read_reply_fields 
 

Detailed Description

Union for accessing UART frames in different ways.

Member Data Documentation

◆ bytes

uint8_t tmc51x0::UartFrame::Frame::bytes[8]

Frame as 8 bytes (maximum size)

◆ crc

uint8_t tmc51x0::UartFrame::Frame::crc

Byte 7: CRC8 checksum.

Byte 3: CRC8 checksum.

◆ data_bytes

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

Bytes 3-6: 32-bit data (MSB-first)

◆ master_addr

uint8_t tmc51x0::UartFrame::Frame::master_addr

Byte 1: Master Address (0xFF)

◆ node_addr

uint8_t tmc51x0::UartFrame::Frame::node_addr

Byte 1: Node Address.

◆ [struct]

struct { ... } tmc51x0::UartFrame::Frame::read_reply_fields

◆ [struct]

struct { ... } tmc51x0::UartFrame::Frame::read_request_fields

◆ reg_addr

uint8_t tmc51x0::UartFrame::Frame::reg_addr

Byte 2: Register Address (0x00)

◆ rw_address

uint8_t tmc51x0::UartFrame::Frame::rw_address

Byte 2: RW bit (1) + 7-bit register address.

Byte 2: RW bit (0) + 7-bit register address.

◆ sync_reserved

uint8_t tmc51x0::UartFrame::Frame::sync_reserved

Byte 0: Sync (0x05)

◆ [struct]

struct { ... } tmc51x0::UartFrame::Frame::write_fields

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