|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Chopper and driver configuration register (CHOPCONF) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t toff: 4 | ||
| Bits 3..0: Off time and driver enable. More... | ||
| uint32_t hstrt_tfd: 3 | ||
| Bits 6..4: HSTRT (chm=0) or TFD[2..0] (chm=1) More... | ||
| uint32_t hend_offset: 4 | ||
| Bits 10..7: HEND (chm=0) or OFFSET (chm=1) More... | ||
| uint32_t tfd_3: 1 | ||
| Bit 11: TFD[3] (chm=1) or reserved (chm=0) More... | ||
| uint32_t disfdcc: 1 | ||
| Bit 12: Fast decay mode (chm=1) More... | ||
| uint32_t reserved1: 1 | ||
| Bit 13: Reserved, set to 0. More... | ||
| uint32_t chm: 1 | ||
| Bit 14: Chopper mode (0=SpreadCycle, 1=Constant off time) More... | ||
| uint32_t tbl: 2 | ||
| Bits 16..15: Comparator blank time select. More... | ||
| uint32_t reserved2: 1 | ||
| Bit 17: Reserved, set to 0. More... | ||
| uint32_t vhighfs: 1 | ||
| Bit 18: High velocity fullstep selection. More... | ||
| uint32_t vhighchm: 1 | ||
| Bit 19: High velocity chopper mode. More... | ||
| uint32_t tpfd: 4 | ||
| Bits 23..20: Passive fast decay time. More... | ||
| uint32_t mres: 4 | ||
| Bits 27..24: Micro step resolution. More... | ||
| uint32_t intpol: 1 | ||
| Bit 28: Interpolation to 256 microsteps. More... | ||
| uint32_t dedge: 1 | ||
| Bit 29: Enable double edge step pulses. More... | ||
| uint32_t diss2g: 1 | ||
| Bit 30: Short to GND protection disable. More... | ||
| uint32_t diss2vs: 1 | ||
| Bit 31: Short to supply protection disable. More... | ||
| } | bits | |
Chopper and driver configuration register (CHOPCONF)
Configuration for chopper timing, microstep resolution, and driver operation modes.
Bit assignments per datasheet:
| struct { ... } tmc51x0::CHOPCONF_Register::bits |
| uint32_t tmc51x0::CHOPCONF_Register::chm |
Bit 14: Chopper mode (0=SpreadCycle, 1=Constant off time)
| uint32_t tmc51x0::CHOPCONF_Register::dedge |
Bit 29: Enable double edge step pulses.
| uint32_t tmc51x0::CHOPCONF_Register::disfdcc |
Bit 12: Fast decay mode (chm=1)
| uint32_t tmc51x0::CHOPCONF_Register::diss2g |
Bit 30: Short to GND protection disable.
| uint32_t tmc51x0::CHOPCONF_Register::diss2vs |
Bit 31: Short to supply protection disable.
| uint32_t tmc51x0::CHOPCONF_Register::hend_offset |
Bits 10..7: HEND (chm=0) or OFFSET (chm=1)
| uint32_t tmc51x0::CHOPCONF_Register::hstrt_tfd |
Bits 6..4: HSTRT (chm=0) or TFD[2..0] (chm=1)
| uint32_t tmc51x0::CHOPCONF_Register::intpol |
Bit 28: Interpolation to 256 microsteps.
| uint32_t tmc51x0::CHOPCONF_Register::mres |
Bits 27..24: Micro step resolution.
| uint32_t tmc51x0::CHOPCONF_Register::reserved1 |
Bit 13: Reserved, set to 0.
| uint32_t tmc51x0::CHOPCONF_Register::reserved2 |
Bit 17: Reserved, set to 0.
| uint32_t tmc51x0::CHOPCONF_Register::tbl |
Bits 16..15: Comparator blank time select.
| uint32_t tmc51x0::CHOPCONF_Register::tfd_3 |
Bit 11: TFD[3] (chm=1) or reserved (chm=0)
| uint32_t tmc51x0::CHOPCONF_Register::toff |
Bits 3..0: Off time and driver enable.
| uint32_t tmc51x0::CHOPCONF_Register::tpfd |
Bits 23..20: Passive fast decay time.
| uint32_t tmc51x0::CHOPCONF_Register::value |
| uint32_t tmc51x0::CHOPCONF_Register::vhighchm |
Bit 19: High velocity chopper mode.
| uint32_t tmc51x0::CHOPCONF_Register::vhighfs |
Bit 18: High velocity fullstep selection.