|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
Enums and type definitions for communication interfaces.
Enums and type definitions for communication interfaces.
For parameter read/write access, either UART or SPI may be used. Both interfaces share the same TMCL command structure and follow a strict command/reply order.
Table 3: Command format for parameter read/write access through SPI
| BYTE | 0 | 1-2 | 3 | 4-6 | 7 |
|---|---|---|---|---|---|
| Bits | 0-7 | 8-19 | 20-23 | 24-55 | 56-63 |
| Desc | Operation | Type | Motor/Bank | Data | Checksum |
Table 4: Reply format for parameter read/write access through SPI
| BYTE | 0 | 1 | 2 | 3-6 | 7 |
|---|---|---|---|---|---|
| Bits | 0-7 | 8-15 | 16-23 | 24-55 | 56-63 |
| Desc | SPI Status | TMCL Status | Operation | Data | Checksum |
| BYTE | 0 | 1 | 2-3 | 4 | 5-8 | 9 |
|---|---|---|---|---|---|---|
| Desc | Sync+Address | Command | Type | Motor/Bank | Data | Checksum |
| BYTE | 0 | 1 | 2 | 3 | 4-7 | 8 |
|---|---|---|---|---|---|---|
| Desc | Host Address | Sync+Address | TMCL Status | Operation | Data | Checksum |
The TMC9660 provides several GPIO pins for system control and status monitoring. The interface uses board-agnostic naming and signal levels to accommodate different board implementations (direct connection, inverters, etc.).