|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
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 | |
Union for accessing UART frames in different ways.
| uint8_t tmc51x0::UartFrame::Frame::bytes[8] |
Frame as 8 bytes (maximum size)
| uint8_t tmc51x0::UartFrame::Frame::crc |
Byte 7: CRC8 checksum.
Byte 3: CRC8 checksum.
| uint8_t tmc51x0::UartFrame::Frame::data_bytes[4] |
Bytes 3-6: 32-bit data (MSB-first)
| uint8_t tmc51x0::UartFrame::Frame::master_addr |
Byte 1: Master Address (0xFF)
| uint8_t tmc51x0::UartFrame::Frame::node_addr |
Byte 1: Node Address.
| struct { ... } tmc51x0::UartFrame::Frame::read_reply_fields |
| struct { ... } tmc51x0::UartFrame::Frame::read_request_fields |
| uint8_t tmc51x0::UartFrame::Frame::reg_addr |
Byte 2: Register Address (0x00)
| 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.
| uint8_t tmc51x0::UartFrame::Frame::sync_reserved |
Byte 0: Sync (0x05)
| struct { ... } tmc51x0::UartFrame::Frame::write_fields |