TMCStepper
Library supporting Trinamic Stepper Drivers for Arduino platforms
Loading...
Searching...
No Matches
TMC5160_bitfields.h
Go to the documentation of this file.
1
15#pragma once
16#pragma pack(push, 1)
17
19 constexpr static uint8_t address = 0x09;
20 union {
21 uint32_t sr : 19;
22 struct {
23 uint8_t s2vs_level : 4,
24 : 4,
26 : 4,
28 bool shortdelay : 1;
29 };
30 };
31};
32
33struct DRV_CONF_t {
34 constexpr static uint8_t address = 0x0A;
35 union {
36 uint32_t sr : 22;
37 struct {
38 uint8_t bbmtime : 5,
39 : 3,
41 : 4,
45 };
46 };
47};
48
50 constexpr static uint8_t address = 0x0B;
51 uint8_t sr;
52};
53
55 constexpr static uint8_t address = 0x0C;
56};
57
59 constexpr static uint8_t address = 0x3D;
60 uint32_t sr : 20;
61};
62
63struct PWM_AUTO_t {
64 constexpr static uint8_t address = 0x72;
65 union {
66 uint32_t sr : 24;
67 struct {
68 uint8_t pwm_ofs_auto : 8,
69 : 8,
71 };
72 };
73};
74
75#pragma pack(pop)
uint8_t filt_isense
uint8_t drvstrength
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
static constexpr uint8_t address
uint8_t pwm_grad_auto
static constexpr uint8_t address
uint8_t pwm_ofs_auto
static constexpr uint8_t address