HF-TMC9660 Driver
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
TMC9660::Brake Struct Reference

Subsystem controlling the brake chopper and mechanical brake features. More...

#include <TMC9660.hpp>

Collaboration diagram for TMC9660::Brake:

Public Member Functions

bool enableChopper (bool enable) noexcept
 Enable or disable the brake chopper functionality.
 
bool setVoltageLimit (float voltage) noexcept
 Set the overvoltage threshold for the brake chopper.
 
bool setHysteresis (float voltage) noexcept
 Set the hysteresis for the brake chopper threshold.
 
bool release () noexcept
 Trigger a release of the mechanical brake.
 
bool engage () noexcept
 Engage (lock) the mechanical brake.
 
bool setReleasingDutyCycle (uint8_t percent) noexcept
 Set the PWM duty cycle for releasing the brake.
 
bool setHoldingDutyCycle (uint8_t percent) noexcept
 Set the PWM duty cycle for holding the brake released.
 
bool setReleasingDuration (uint16_t milliseconds) noexcept
 Set the duration of the brake release initial phase.
 
bool invertOutput (bool invert) noexcept
 Invert or normalize the brake output signal polarity.
 

Private Member Functions

 Brake (TMC9660 &parent) noexcept
 

Private Attributes

TMC9660driver
 

Friends

class TMC9660
 

Detailed Description

Subsystem controlling the brake chopper and mechanical brake features.

Constructor & Destructor Documentation

◆ Brake()

TMC9660::Brake::Brake ( TMC9660 parent)
inlineexplicitprivatenoexcept

Member Function Documentation

◆ enableChopper()

bool TMC9660::Brake::enableChopper ( bool  enable)
noexcept

Enable or disable the brake chopper functionality.

Parameters
enableTrue to enable the brake chopper, false to disable it.
Returns
True if the command was sent and acknowledged.

◆ engage()

bool TMC9660::Brake::engage ( )
noexcept

Engage (lock) the mechanical brake.

Returns
True if the command was sent successfully.

◆ invertOutput()

bool TMC9660::Brake::invertOutput ( bool  invert)
noexcept

Invert or normalize the brake output signal polarity.

Parameters
invertTrue to invert the brake output, false for normal.
Returns
True if the parameter was written successfully.

◆ release()

bool TMC9660::Brake::release ( )
noexcept

Trigger a release of the mechanical brake.

Returns
True if the command was sent successfully.

◆ setHoldingDutyCycle()

bool TMC9660::Brake::setHoldingDutyCycle ( uint8_t  percent)
noexcept

Set the PWM duty cycle for holding the brake released.

Parameters
percentDuty cycle (0 to 99%).
Returns
True if the parameter was written successfully.

◆ setHysteresis()

bool TMC9660::Brake::setHysteresis ( float  voltage)
noexcept

Set the hysteresis for the brake chopper threshold.

Parameters
voltageHysteresis in volts (0.0 to 5.0 V).
Returns
True if the parameter was written successfully.

◆ setReleasingDuration()

bool TMC9660::Brake::setReleasingDuration ( uint16_t  milliseconds)
noexcept

Set the duration of the brake release initial phase.

Parameters
millisecondsDuration in ms (0 to 65535).
Returns
True if the parameter was written successfully.

◆ setReleasingDutyCycle()

bool TMC9660::Brake::setReleasingDutyCycle ( uint8_t  percent)
noexcept

Set the PWM duty cycle for releasing the brake.

Parameters
percentDuty cycle (0 to 99%).
Returns
True if the parameter was written successfully.

◆ setVoltageLimit()

bool TMC9660::Brake::setVoltageLimit ( float  voltage)
noexcept

Set the overvoltage threshold for the brake chopper.

Parameters
voltageThreshold voltage in volts (5.0 to 100.0 V).
Returns
True if the parameter was written successfully.

Friends And Related Symbol Documentation

◆ TMC9660

friend class TMC9660
friend

Member Data Documentation

◆ driver

TMC9660& TMC9660::Brake::driver
private

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