|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Microstep lookup table segmentation definition register (MSLUTSEL) More...
#include <tmc51x0_registers.hpp>
Public Attributes | ||
| uint32_t | value | |
| struct { | ||
| uint32_t w0: 2 | ||
| Bits 1..0: LUT width select from ofs00 to ofs(X1-1) More... | ||
| uint32_t w1: 2 | ||
| Bits 3..2: LUT width select from ofs(X1) to ofs(X2-1) More... | ||
| uint32_t w2: 2 | ||
| Bits 5..4: LUT width select from ofs(X2) to ofs(X3-1) More... | ||
| uint32_t w3: 2 | ||
| Bits 7..6: LUT width select from ofs(X3) to ofs255. More... | ||
| uint32_t x1: 8 | ||
| Bits 15..8: LUT segment 1 start. More... | ||
| uint32_t x2: 8 | ||
| Bits 23..16: LUT segment 2 start. More... | ||
| uint32_t x3: 8 | ||
| Bits 31..24: LUT segment 3 start. More... | ||
| } | bits | |
Microstep lookup table segmentation definition register (MSLUTSEL)
Defines four segments within each quarter MSLUT wave and their width control.
Bit assignments per datasheet:
Width control bit coding W0...W3:
Segment boundaries:
For defined response: 0 < X1 < X2 < X3
| struct { ... } tmc51x0::MSLUTSEL_Register::bits |
| uint32_t tmc51x0::MSLUTSEL_Register::value |
| uint32_t tmc51x0::MSLUTSEL_Register::w0 |
Bits 1..0: LUT width select from ofs00 to ofs(X1-1)
| uint32_t tmc51x0::MSLUTSEL_Register::w1 |
Bits 3..2: LUT width select from ofs(X1) to ofs(X2-1)
| uint32_t tmc51x0::MSLUTSEL_Register::w2 |
Bits 5..4: LUT width select from ofs(X2) to ofs(X3-1)
| uint32_t tmc51x0::MSLUTSEL_Register::w3 |
Bits 7..6: LUT width select from ofs(X3) to ofs255.
| uint32_t tmc51x0::MSLUTSEL_Register::x1 |
Bits 15..8: LUT segment 1 start.
| uint32_t tmc51x0::MSLUTSEL_Register::x2 |
Bits 23..16: LUT segment 2 start.
| uint32_t tmc51x0::MSLUTSEL_Register::x3 |
Bits 31..24: LUT segment 3 start.