|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
DIAG0 pin configuration structure. More...
#include <tmc51x0_types.hpp>
Public Member Functions | |
| Diag0Config ()=default | |
| Default constructor. | |
Public Attributes | |
| bool | error {false} |
| Bit 5: Enable DIAG0 on driver errors (OT, S2G, UV_CP) - SD_MODE=1 only. | |
| bool | otpw {false} |
| Bit 6: Enable DIAG0 on overtemperature prewarning - SD_MODE=1 only. | |
| bool | stall_step |
| Bit 7: (SD_MODE=1) DIAG0 on stall, (SD_MODE=0) DIAG0 as STEP output (half frequency, dual edge) | |
| bool | pushpull {false} |
| Bit 12: Output mode (false=open collector active low, true=push pull active high) | |
DIAG0 pin configuration structure.
Configuration for DIAG0 diagnostic output pin functionality. DIAG0 pin behavior depends on SD_MODE setting:
|
default |
Default constructor.
Initializes with all diagnostic features disabled (default).
| bool tmc51x0::Diag0Config::error {false} |
Bit 5: Enable DIAG0 on driver errors (OT, S2G, UV_CP) - SD_MODE=1 only.
| bool tmc51x0::Diag0Config::otpw {false} |
Bit 6: Enable DIAG0 on overtemperature prewarning - SD_MODE=1 only.
| bool tmc51x0::Diag0Config::pushpull {false} |
Bit 12: Output mode (false=open collector active low, true=push pull active high)
| bool tmc51x0::Diag0Config::stall_step |
Bit 7: (SD_MODE=1) DIAG0 on stall, (SD_MODE=0) DIAG0 as STEP output (half frequency, dual edge)