|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Type definitions and enumerations for TMC51x0 stepper motor driver (TMC5130 & TMC5160) More...
Go to the source code of this file.
Classes | |
| struct | tmc51x0::InputStatus |
| Input pin status structure. More... | |
| struct | tmc51x0::MechanicalSystem |
| Mechanical system configuration structure. More... | |
| struct | tmc51x0::MotorSpec |
| Motor specification structure. More... | |
| struct | tmc51x0::PowerStageParameters |
| Power stage parameters structure. More... | |
| struct | tmc51x0::MicrostepChangeOptions |
| Options for changing microstep resolution (CHOPCONF.MRES) More... | |
| struct | tmc51x0::ChopperConfig |
| Chopper configuration structure. More... | |
| struct | tmc51x0::StealthChopConfig |
| StealthChop configuration structure. More... | |
| struct | tmc51x0::StallGuardConfig |
| StallGuard2 configuration structure. More... | |
| struct | tmc51x0::StallGuardTuningResult |
| Result structure for StallGuard2 threshold (SGT) tuning. More... | |
| struct | tmc51x0::VelocityValue |
| Self-describing velocity value with explicit unit. More... | |
| struct | tmc51x0::AccelerationValue |
| Self-describing acceleration value with explicit unit. More... | |
| struct | tmc51x0::RampConfig |
| Ramp configuration structure. More... | |
| struct | tmc51x0::CoolStepConfig |
| CoolStep configuration structure. More... | |
| struct | tmc51x0::DcStepConfig |
| DcStep configuration structure. More... | |
| struct | tmc51x0::ReferenceSwitchConfig |
| Reference switch configuration structure. More... | |
| struct | tmc51x0::EncoderConfig |
| Encoder configuration structure. More... | |
| struct | tmc51x0::Diag0Config |
| DIAG0 pin configuration structure. More... | |
| struct | tmc51x0::Diag1Config |
| DIAG1 pin configuration structure. More... | |
| struct | tmc51x0::ExternalClockConfig |
| External clock configuration structure. More... | |
| struct | tmc51x0::UartConfig |
| UART communication configuration structure. More... | |
| struct | tmc51x0::GlobalConfig |
| Global configuration (GCONF) structure. More... | |
| struct | tmc51x0::DriverConfig |
| Driver initialization configuration structure. More... | |
| struct | tmc51x0::HomingSettingsCache |
| Cached settings for homing operations. More... | |
Namespaces | |
| namespace | tmc51x0 |
| namespace | tmc51x0::ClockFreq |
| TMC51x0 clock frequency constants. | |
| namespace | tmc51x0::ChipVersion |
| TMC chip version constants. | |
| namespace | tmc51x0::RegisterConstants |
| Register conversion constants. | |
| namespace | tmc51x0::MathConstants |
| Mathematical constants. | |
Functions | |
| constexpr const char * | tmc51x0::ToString (MotorDirection d) noexcept |
| Convert MotorDirection to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (MotorType t) noexcept |
| Convert MotorType to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (Unit u) noexcept |
| Convert Unit to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (MechanicalSystemType type) noexcept |
| Convert MechanicalSystemType to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (ChopperMode m) noexcept |
| Convert ChopperMode to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (MicrostepResolution mres) noexcept |
| Convert MicrostepResolution to human-readable string. | |
| constexpr uint16_t | tmc51x0::MicrostepsPerFullStep (MicrostepResolution mres) noexcept |
| Get microsteps-per-full-step for an MRES value. | |
| constexpr const char * | tmc51x0::ToString (MicrostepLutPreset preset) noexcept |
| Convert MicrostepLutPreset to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (ReferenceSwitchActiveLevel a) noexcept |
| Convert ReferenceSwitchActiveLevel to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (ReferenceLatchMode m) noexcept |
| Convert ReferenceLatchMode to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (ReferenceStopMode m) noexcept |
| Convert ReferenceStopMode to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (EncoderNSensitivity s) noexcept |
| Convert EncoderNSensitivity to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (EncoderClearMode m) noexcept |
| Convert EncoderClearMode to human-readable string. | |
| constexpr const char * | tmc51x0::ToString (EncoderPrescalerMode m) noexcept |
| Convert EncoderPrescalerMode to human-readable string. | |
Variables | |
| constexpr uint32_t | tmc51x0::ClockFreq::DEFAULT_F_CLK = 12000000U |
| Typical internal clock frequency in Hz (12 MHz) | |
| constexpr uint32_t | tmc51x0::ClockFreq::MIN_F_CLK = 8000000U |
| Minimum clock frequency in Hz. | |
| constexpr uint32_t | tmc51x0::ClockFreq::MAX_F_CLK = 16000000U |
| Maximum clock frequency in Hz. | |
| constexpr uint8_t | tmc51x0::ChipVersion::TMC5130 = 0x11 |
| TMC5130 chip version. | |
| constexpr uint8_t | tmc51x0::ChipVersion::TMC5160 = 0x30 |
| TMC5160 chip version. | |
| constexpr float | tmc51x0::RegisterConstants::TPOWERDOWN_DIVISOR = 262144.0F |
| 2^18, used for TPOWERDOWN and TZEROWAIT register conversion | |
| constexpr float | tmc51x0::RegisterConstants::MS_PER_SEC = 1e3F |
| Milliseconds per second (used for ms to seconds conversion) | |
| constexpr float | tmc51x0::RegisterConstants::US_PER_SEC = 1e6F |
| Microseconds per second (used for us to seconds conversion) | |
| constexpr float | tmc51x0::RegisterConstants::NS_PER_SEC = 1e9F |
| Nanoseconds per second (used for ns to seconds conversion) | |
| constexpr float | tmc51x0::RegisterConstants::ENC_DECIMAL_MULTIPLIER = 1e4F |
| Multiplier for encoder decimal mode (fractional part) | |
| constexpr uint32_t | tmc51x0::RegisterConstants::ENC_BINARY_MULTIPLIER = 65536U |
| Multiplier for encoder binary mode (2^16) | |
| constexpr float | tmc51x0::MathConstants::PI = 3.14159265359F |
| π (pi) constant | |
| constexpr float | tmc51x0::MathConstants::TWO_PI = 2.0F * PI |
| 2π (two pi) | |
| constexpr float | tmc51x0::MathConstants::DEGREES_PER_REV = 360.0F |
| Degrees per revolution. | |
Type definitions and enumerations for TMC51x0 stepper motor driver (TMC5130 & TMC5160)