|
| #define | TMC51X0_LOG_LEVEL 4 |
| | Compile-time debug logging control for TMC51x0 library.
|
| |
| #define | TMC51X0_LOGE(comm_obj, tag, ...) (comm_obj).LogDebug(::tmc51x0::LogLevel::Error, tag, __VA_ARGS__) |
| |
| #define | TMC51X0_LOGW(comm_obj, tag, ...) (comm_obj).LogDebug(::tmc51x0::LogLevel::Warn, tag, __VA_ARGS__) |
| |
| #define | TMC51X0_LOGI(comm_obj, tag, ...) (comm_obj).LogDebug(::tmc51x0::LogLevel::Info, tag, __VA_ARGS__) |
| |
| #define | TMC51X0_LOGD(comm_obj, tag, ...) (comm_obj).LogDebug(::tmc51x0::LogLevel::Debug, tag, __VA_ARGS__) |
| |
| #define | TMC51X0_LOGV(comm_obj, tag, ...) (comm_obj).LogDebug(::tmc51x0::LogLevel::Verbose, tag, __VA_ARGS__) |
| |
| #define | TMC51X0_LOG_DEBUG(comm_obj, level, tag, ...) |
| |
| #define | TMC51X0_SPI_MAX_CHAIN_DEVICES 8 |
| |
|
| enum class | tmc51x0::LogLevel : uint8_t {
tmc51x0::Error = 0
, tmc51x0::Warn = 1
, tmc51x0::Info = 2
, tmc51x0::Debug = 3
,
tmc51x0::Verbose = 4
} |
| | Driver-native log levels for debug output. More...
|
| |
| enum class | tmc51x0::CommMode : uint8_t { tmc51x0::SPI
, tmc51x0::UART
} |
| | Supported physical communication modes for TMC51x0. More...
|
| |
| enum class | tmc51x0::TMC51x0CtrlPin : uint8_t {
tmc51x0::EN
, tmc51x0::DIR
, tmc51x0::STEP
, tmc51x0::REFL_STEP
,
tmc51x0::REFR_DIR
, tmc51x0::DIAG0
, tmc51x0::DIAG1
, tmc51x0::ENCA
,
tmc51x0::ENCB
, tmc51x0::ENCN
, tmc51x0::DCEN
, tmc51x0::DCIN
,
tmc51x0::DCO
, tmc51x0::CLK
, tmc51x0::SPI_MODE
, tmc51x0::SD_MODE
} |
| | TMC51x0 control pin identifiers with board-agnostic naming. More...
|
| |
| enum class | tmc51x0::GpioSignal : uint8_t { tmc51x0::INACTIVE = 0
, tmc51x0::ACTIVE = 1
} |
| | GPIO signal states with board-agnostic naming. More...
|
| |
| enum class | tmc51x0::UartFrameType : uint8_t { tmc51x0::WriteAccess
, tmc51x0::ReadRequest
, tmc51x0::ReadReply
} |
| | TMC5160 UART frame types. More...
|
| |
Communication interfaces for TMC51x0 stepper motor driver using SPI and UART.
- Copyright
- Copyright (c) 2024-2025 HardFOC. All rights reserved.
This file provides comprehensive communication interfaces for the TMC51x0 motor driver, supporting both SPI and UART protocols with register read/write operations. It includes GPIO control interfaces and board-agnostic pin management for different hardware implementations. Supports both TMC5130 and TMC5160 chips.
Compile-Time Configuration
TMC51X0_DISABLE_DEBUG_LOGGING: Define this macro to completely disable all debug logging throughout the TMC51x0 library. This removes all logging code from the binary at compile time, saving code size and improving performance.
Example usage:
#define TMC51X0_DISABLE_DEBUG_LOGGING
Communication interfaces for TMC51x0 stepper motor driver using SPI and UART.