HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
tmc51x0::Diag0Config Struct Reference

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)
 

Detailed Description

DIAG0 pin configuration structure.

Configuration for DIAG0 diagnostic output pin functionality. DIAG0 pin behavior depends on SD_MODE setting:

  • SD_MODE=1 (External step/dir): Diagnostic outputs (error, otpw, stall)
  • SD_MODE=0 (Internal ramp): Can be used as STEP output
Note
Always shows reset-status (active low during reset condition).

Constructor & Destructor Documentation

◆ Diag0Config()

tmc51x0::Diag0Config::Diag0Config ( )
default

Default constructor.

Initializes with all diagnostic features disabled (default).

Member Data Documentation

◆ error

bool tmc51x0::Diag0Config::error {false}

Bit 5: Enable DIAG0 on driver errors (OT, S2G, UV_CP) - SD_MODE=1 only.

◆ otpw

bool tmc51x0::Diag0Config::otpw {false}

Bit 6: Enable DIAG0 on overtemperature prewarning - SD_MODE=1 only.

◆ pushpull

bool tmc51x0::Diag0Config::pushpull {false}

Bit 12: Output mode (false=open collector active low, true=push pull active high)

◆ stall_step

bool tmc51x0::Diag0Config::stall_step
Initial value:
{
false}

Bit 7: (SD_MODE=1) DIAG0 on stall, (SD_MODE=0) DIAG0 as STEP output (half frequency, dual edge)


The documentation for this struct was generated from the following file: