HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
Type Definitions

Enums and type definitions for communication interfaces.

Enums and type definitions for communication interfaces.

SPI Protocol

TMC51x0 uses 40-bit SPI datagrams per datasheet section 4.1:

Byte structure (MSB transmitted first):

Response structure (40 bits):

Read access behavior (pipelined):

Write access behavior:

SPI Mode: Mode 3 (CPOL=1, CPHA=1) Clock: MSB-first Minimum: 40 SCK clock cycles required CSN: Must stay low during entire transaction

UART Protocol

TMC51x0 uses UART single wire interface per datasheet section 5.1. Each byte is transmitted LSB...MSB, highest byte transmitted first.

Write Access Datagram (64 bits = 8 bytes total):

Read Access Request Datagram (32 bits = 4 bytes total):

Read Access Reply Datagram (64 bits = 8 bytes total):

CRC8: CRC8-ATM polynomial (0x07), applied LSB to MSB.

Baud Rate:

Communication Reset:

SENDDELAY: