HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
tmc9660::TMC9660< CommType >::Brake::BrakeConfig Struct Reference

Configuration structure for brake auto-configuration. More...

#include <tmc9660.hpp>

Public Attributes

std::optional< boolenableChopper
 Enable brake chopper (optional, default: false).
 
std::optional< floatchopperVoltageThreshold_V
 Brake chopper voltage threshold in volts (optional, default: 30.0V for 24V systems).
 
std::optional< floatchopperHysteresis_V
 Brake chopper hysteresis in volts (optional, default: 2.0V).
 
std::optional< uint8_treleasingDutyCycle
 PWM duty cycle for brake release in percent (optional, default: 50%).
 
std::optional< uint8_tholdingDutyCycle
 PWM duty cycle for brake holding in percent (optional, default: 30%).
 
std::optional< uint16_treleasingDuration_ms
 Brake release duration in milliseconds (optional, default: 100ms).
 
std::optional< boolinvertOutput
 Invert brake output polarity (optional, default: false).
 

Detailed Description

template<typename CommType>
struct tmc9660::TMC9660< CommType >::Brake::BrakeConfig

Configuration structure for brake auto-configuration.

Member Data Documentation

◆ chopperHysteresis_V

template<typename CommType >
std::optional<float> tmc9660::TMC9660< CommType >::Brake::BrakeConfig::chopperHysteresis_V

Brake chopper hysteresis in volts (optional, default: 2.0V).

Hysteresis for brake chopper threshold to prevent oscillation. Typical values: 1.0-5.0V (default: 2.0V) Brake chopper hysteresis [V] (optional, default: 2.0V)

◆ chopperVoltageThreshold_V

template<typename CommType >
std::optional<float> tmc9660::TMC9660< CommType >::Brake::BrakeConfig::chopperVoltageThreshold_V

Brake chopper voltage threshold in volts (optional, default: 30.0V for 24V systems).

Voltage at which brake chopper activates to dump excess energy. Typical values:

  • 24V systems: 28-32V (default: 30.0V)
  • 48V systems: 56-60V
  • 12V systems: 14-16V Brake chopper voltage threshold [V] (optional, default: 30.0V)

◆ enableChopper

template<typename CommType >
std::optional<bool> tmc9660::TMC9660< CommType >::Brake::BrakeConfig::enableChopper

Enable brake chopper (optional, default: false).

When enabled, the brake chopper activates when bus voltage exceeds the threshold, dumping excess energy into a resistor. Enable brake chopper (optional, default: false)

◆ holdingDutyCycle

template<typename CommType >
std::optional<uint8_t> tmc9660::TMC9660< CommType >::Brake::BrakeConfig::holdingDutyCycle

PWM duty cycle for brake holding in percent (optional, default: 30%).

Duty cycle used to hold brake in released state. Range: 0-99% (default: 30%) Brake holding duty cycle [0-99%] (optional, default: 30%)

◆ invertOutput

template<typename CommType >
std::optional<bool> tmc9660::TMC9660< CommType >::Brake::BrakeConfig::invertOutput

Invert brake output polarity (optional, default: false).

When true, inverts the brake output signal polarity. Invert brake output (optional, default: false)

◆ releasingDuration_ms

template<typename CommType >
std::optional<uint16_t> tmc9660::TMC9660< CommType >::Brake::BrakeConfig::releasingDuration_ms

Brake release duration in milliseconds (optional, default: 100ms).

Duration of initial high-duty-cycle phase for brake release. Range: 0-65535ms (default: 100ms) Brake release duration [ms] (optional, default: 100ms)

◆ releasingDutyCycle

template<typename CommType >
std::optional<uint8_t> tmc9660::TMC9660< CommType >::Brake::BrakeConfig::releasingDutyCycle

PWM duty cycle for brake release in percent (optional, default: 50%).

Duty cycle used during initial brake release phase. Range: 0-99% (default: 50%) Brake release duty cycle [0-99%] (optional, default: 50%)


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