|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
coolStep smart current control and stallGuard2 configuration register (COOLCONF) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t semin: 4 | ||
| uint32_t reserved1: 1 | ||
| Bit 4: Reserved, set to 0. More... | ||
| uint32_t seup: 2 | ||
| Bits 6..5: Current increment step width. More... | ||
| uint32_t reserved2: 1 | ||
| Bit 7: Reserved, set to 0. More... | ||
| uint32_t semax: 4 | ||
| uint32_t reserved3: 1 | ||
| Bit 12: Reserved, set to 0. More... | ||
| uint32_t sedn: 2 | ||
| Bits 14..13: Current decrement step speed. More... | ||
| uint32_t seimin: 1 | ||
| Bit 15: Minimum current for smart current control. More... | ||
| int32_t sgt: 7 | ||
| uint32_t reserved4: 1 | ||
| Bit 23: Reserved, set to 0. More... | ||
| uint32_t sfilt: 1 | ||
| Bit 24: StallGuard2 filter enable. More... | ||
| uint32_t reserved5: 7 | ||
| Bits 31..25: Reserved, set to 0. More... | ||
| } | bits | |
coolStep smart current control and stallGuard2 configuration register (COOLCONF)
Configuration for smart current control and stallGuard2 stall detection.
Bit assignments per datasheet:
| struct { ... } tmc51x0::COOLCONF_Register::bits |
| uint32_t tmc51x0::COOLCONF_Register::reserved1 |
Bit 4: Reserved, set to 0.
| uint32_t tmc51x0::COOLCONF_Register::reserved2 |
Bit 7: Reserved, set to 0.
| uint32_t tmc51x0::COOLCONF_Register::reserved3 |
Bit 12: Reserved, set to 0.
| uint32_t tmc51x0::COOLCONF_Register::reserved4 |
Bit 23: Reserved, set to 0.
| uint32_t tmc51x0::COOLCONF_Register::reserved5 |
Bits 31..25: Reserved, set to 0.
| uint32_t tmc51x0::COOLCONF_Register::sedn |
Bits 14..13: Current decrement step speed.
| uint32_t tmc51x0::COOLCONF_Register::seimin |
Bit 15: Minimum current for smart current control.
| uint32_t tmc51x0::COOLCONF_Register::semax |
Bits 11..8: StallGuard2 hysteresis value for smart current control
| uint32_t tmc51x0::COOLCONF_Register::semin |
Bits 3..0: Minimum StallGuard2 value for smart current control
| uint32_t tmc51x0::COOLCONF_Register::seup |
Bits 6..5: Current increment step width.
| uint32_t tmc51x0::COOLCONF_Register::sfilt |
Bit 24: StallGuard2 filter enable.
| int32_t tmc51x0::COOLCONF_Register::sgt |
Bits 22..16: StallGuard2 threshold value (signed -64 to +63)
| uint32_t tmc51x0::COOLCONF_Register::value |