|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
Configuration structure for auto-configuring motor parameters. More...
#include <tmc9660.hpp>
Public Attributes | |
| tmc9660::tmcl::MotorType | motorType |
| Motor type (DC, BLDC, STEPPER) | |
| uint8_t | polePairs |
| Number of pole pairs (for BLDC/Stepper, typically 1-21) | |
| uint32_t | pwmFrequency_Hz |
| float | maxPhaseCurrent_A |
| tmc9660::tmcl::MotorDirection | direction |
| Motor direction (default: FORWARD) | |
| tmc9660::tmcl::PwmSwitchingScheme | pwmSwitchingScheme |
| float | maxFluxCurrent_A |
| uint16_t | outputVoltageLimit |
| Output voltage limit for FOC controller (default: 8000) | |
| tmc9660::tmcl::IdleMotorPwmBehavior | idlePwmBehavior |
| std::optional< tmc9660::tmcl::CommutationMode > | commutationMode |
Configuration structure for auto-configuring motor parameters.
This structure captures high-level motor characteristics and automatically derives all necessary low-level configuration parameters.
| std::optional<tmc9660::tmcl::CommutationMode> tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::commutationMode |
Commutation mode to apply after configuration (optional, default: remains SYSTEM_OFF). Applied last, after all motor parameters are set.
| tmc9660::tmcl::MotorDirection tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::direction |
Motor direction (default: FORWARD)
| tmc9660::tmcl::IdleMotorPwmBehavior tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::idlePwmBehavior |
Idle motor PWM behavior (default: PWM_OFF)
| float tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::maxFluxCurrent_A |
Maximum flux current in amperes (optional, defaults to maxPhaseCurrent_A * 0.2 for BLDC/Stepper)
| float tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::maxPhaseCurrent_A |
Maximum phase current in amperes (used to set MAX_TORQUE and MAX_FLUX)
| tmc9660::tmcl::MotorType tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::motorType |
Motor type (DC, BLDC, STEPPER)
| uint16_t tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::outputVoltageLimit |
Output voltage limit for FOC controller (default: 8000)
| uint8_t tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::polePairs |
Number of pole pairs (for BLDC/Stepper, typically 1-21)
| uint32_t tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::pwmFrequency_Hz |
PWM frequency in Hz (10000-100000, recommended: 20-25kHz for BLDC, 20kHz for stepper)
| tmc9660::tmcl::PwmSwitchingScheme tmc9660::TMC9660< CommType >::MotorConfig::MotorProfile::pwmSwitchingScheme |
PWM switching scheme (default: SVPWM for BLDC, STANDARD for others)