Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TMCStepper mRotaryEncoder-os
source/TMC5160_bitfields.h@1:60419aa0c030, 2021-02-04 (annotated)
- Committer:
- charly
- Date:
- Thu Feb 04 21:35:45 2021 +0000
- Revision:
- 1:60419aa0c030
- Parent:
- 0:3f4cfbeda9d3
Fast version with ca. 2,5rpm
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| charly | 0:3f4cfbeda9d3 | 1 | #pragma once |
| charly | 0:3f4cfbeda9d3 | 2 | #pragma pack(push, 1) |
| charly | 0:3f4cfbeda9d3 | 3 | |
| charly | 0:3f4cfbeda9d3 | 4 | struct SHORT_CONF_t { |
| charly | 0:3f4cfbeda9d3 | 5 | constexpr static uint8_t address = 0x09; |
| charly | 0:3f4cfbeda9d3 | 6 | union { |
| charly | 0:3f4cfbeda9d3 | 7 | uint32_t sr : 19; |
| charly | 0:3f4cfbeda9d3 | 8 | struct { |
| charly | 0:3f4cfbeda9d3 | 9 | uint8_t s2vs_level : 4, |
| charly | 0:3f4cfbeda9d3 | 10 | : 4, |
| charly | 0:3f4cfbeda9d3 | 11 | s2g_level : 4, |
| charly | 0:3f4cfbeda9d3 | 12 | : 4, |
| charly | 0:3f4cfbeda9d3 | 13 | shortfilter : 2; |
| charly | 0:3f4cfbeda9d3 | 14 | bool shortdelay : 1; |
| charly | 0:3f4cfbeda9d3 | 15 | }; |
| charly | 0:3f4cfbeda9d3 | 16 | }; |
| charly | 0:3f4cfbeda9d3 | 17 | }; |
| charly | 0:3f4cfbeda9d3 | 18 | |
| charly | 0:3f4cfbeda9d3 | 19 | struct DRV_CONF_t { |
| charly | 0:3f4cfbeda9d3 | 20 | constexpr static uint8_t address = 0x0A; |
| charly | 0:3f4cfbeda9d3 | 21 | union { |
| charly | 0:3f4cfbeda9d3 | 22 | uint32_t sr : 22; |
| charly | 0:3f4cfbeda9d3 | 23 | struct { |
| charly | 0:3f4cfbeda9d3 | 24 | uint8_t bbmtime : 5, |
| charly | 0:3f4cfbeda9d3 | 25 | : 3, |
| charly | 0:3f4cfbeda9d3 | 26 | bbmclks : 4, |
| charly | 0:3f4cfbeda9d3 | 27 | : 4, |
| charly | 0:3f4cfbeda9d3 | 28 | otselect : 2, |
| charly | 0:3f4cfbeda9d3 | 29 | drvstrength : 2, |
| charly | 0:3f4cfbeda9d3 | 30 | filt_isense : 2; |
| charly | 0:3f4cfbeda9d3 | 31 | }; |
| charly | 0:3f4cfbeda9d3 | 32 | }; |
| charly | 0:3f4cfbeda9d3 | 33 | }; |
| charly | 0:3f4cfbeda9d3 | 34 | |
| charly | 0:3f4cfbeda9d3 | 35 | struct GLOBAL_SCALER_t { |
| charly | 0:3f4cfbeda9d3 | 36 | constexpr static uint8_t address = 0x0B; |
| charly | 0:3f4cfbeda9d3 | 37 | uint8_t sr; |
| charly | 0:3f4cfbeda9d3 | 38 | }; |
| charly | 0:3f4cfbeda9d3 | 39 | |
| charly | 0:3f4cfbeda9d3 | 40 | struct OFFSET_READ_t { |
| charly | 0:3f4cfbeda9d3 | 41 | constexpr static uint8_t address = 0x0C; |
| charly | 0:3f4cfbeda9d3 | 42 | }; |
| charly | 0:3f4cfbeda9d3 | 43 | |
| charly | 0:3f4cfbeda9d3 | 44 | struct ENC_DEVIATION_t { |
| charly | 0:3f4cfbeda9d3 | 45 | constexpr static uint8_t address = 0x3D; |
| charly | 0:3f4cfbeda9d3 | 46 | uint32_t sr : 20; |
| charly | 0:3f4cfbeda9d3 | 47 | }; |
| charly | 0:3f4cfbeda9d3 | 48 | |
| charly | 0:3f4cfbeda9d3 | 49 | struct PWM_AUTO_t { |
| charly | 0:3f4cfbeda9d3 | 50 | constexpr static uint8_t address = 0x72; |
| charly | 0:3f4cfbeda9d3 | 51 | union { |
| charly | 0:3f4cfbeda9d3 | 52 | uint32_t sr : 24; |
| charly | 0:3f4cfbeda9d3 | 53 | struct { |
| charly | 0:3f4cfbeda9d3 | 54 | uint8_t pwm_ofs_auto : 8, |
| charly | 0:3f4cfbeda9d3 | 55 | : 8, |
| charly | 0:3f4cfbeda9d3 | 56 | pwm_grad_auto : 8; |
| charly | 0:3f4cfbeda9d3 | 57 | }; |
| charly | 0:3f4cfbeda9d3 | 58 | }; |
| charly | 0:3f4cfbeda9d3 | 59 | }; |
| charly | 0:3f4cfbeda9d3 | 60 | |
| charly | 0:3f4cfbeda9d3 | 61 | #pragma pack(pop) |