Karl Zweimüller / Mbed OS TMC2209-Test2

Dependencies:   TMCStepper mRotaryEncoder-os

Revision:
2:94c5b3f09463
Parent:
1:60419aa0c030
Child:
3:209a9c414f54
--- a/source/TMC2160_bitfields.h	Thu Feb 04 21:35:45 2021 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-#pragma once
-#pragma pack(push, 1)
-
-namespace TMC2160_n {
-  struct IOIN_t {
-    constexpr static uint8_t address = 0x04;
-    union {
-      uint32_t sr;
-      struct {
-        bool  refl_step : 1,
-              refr_dir : 1,
-              encb_dcen_cfg4 : 1,
-              enca_dcin_cfg5 : 1,
-              drv_enn : 1,
-              dco_cfg6 : 1,
-              : 2;
-        uint16_t : 16;
-        uint8_t version : 8;
-      };
-    };
-  };
-
-  struct PWMCONF_t {
-    constexpr static uint8_t address = 0x70;
-    union {
-      uint32_t sr;
-      struct {
-        uint8_t pwm_ofs : 8,
-                pwm_grad : 8,
-                pwm_freq : 2;
-        bool pwm_autoscale : 1,
-             pwm_autograd : 1;
-        uint8_t freewheel : 2,
-                          : 2,
-                pwm_reg : 4,
-                pwm_lim : 4;
-      };
-    };
-  };
-
-  struct PWM_SCALE_t {
-    constexpr static uint8_t address = 0x71;
-    union {
-      uint32_t sr : 25;
-      struct {
-        uint8_t pwm_scale_sum : 8,
-                              : 8;
-        uint16_t pwm_scale_auto : 9;
-      };
-    };
-  };
-}
-
-#pragma pack(pop)
\ No newline at end of file