|
TMC5160 Driver 0.1.0
API reference
|
Chopper configuration (CHOPCONF, section 6.5.2 page 51). More...
#include <tmc5160_types.hpp>
Public Attributes | |
| ChopperMode | mode {ChopperMode::SpreadCycle} |
| SpreadCycle or constant off time. | |
| uint8_t | toff {3} |
Off time 1 to 15 (0 is Disable()); reset value 0 means off. | |
| uint8_t | tbl {2} |
| Blank time 0 to 3: 16, 24, 36, 54 clocks; reset value 2. | |
| uint8_t | tpfd {4} |
| Passive fast decay 0 to 15, 128 clocks per step; reset value 4. | |
| uint8_t | hstrt {5} |
| SpreadCycle hysteresis start 0 to 7 (reset 5). | |
| uint8_t | hend {2} |
| SpreadCycle hysteresis end 0 to 15 (reset 2). | |
| uint8_t | tfd {0} |
| Constant off time: fast decay time 0 to 15. | |
| uint8_t | offset {0} |
| Constant off time: sine wave offset 0 to 15. | |
| bool | no_comparator {false} |
| Constant off time: no current comparator on fast decay. | |
| Microsteps | mres {Microsteps::M256} |
| Microstep resolution. | |
| bool | interpolate {true} |
| Interpolate to 256 microsteps (reset 1). | |
| bool | double_edge {false} |
| Step on both STEP edges. | |
| bool | high_fullstep {false} |
| Full steps above THIGH. | |
| bool | high_const_off {false} |
| Constant off time above THIGH. | |
Chopper configuration (CHOPCONF, section 6.5.2 page 51).