You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.0 KiB

12 months ago
  1. /*
  2. * TMC5130_Register.h
  3. *
  4. * Created on: 30.09.2016
  5. * Author: ed based on te
  6. */
  7. #ifndef TMC5130_REGISTER_H
  8. #define TMC5130_REGISTER_H
  9. // ===== TMC5130 register set =====
  10. #define TMC5130_GCONF 0x00
  11. #define TMC5130_GSTAT 0x01
  12. #define TMC5130_IFCNT 0x02
  13. #define TMC5130_SLAVECONF 0x03
  14. #define TMC5130_IOIN 0x04
  15. #define TMC5130_X_COMPARE 0x05
  16. #define TMC5130_IHOLD_IRUN 0x10
  17. #define TMC5130_TPOWERDOWN 0x11
  18. #define TMC5130_TSTEP 0x12
  19. #define TMC5130_TPWMTHRS 0x13
  20. #define TMC5130_TCOOLTHRS 0x14
  21. #define TMC5130_THIGH 0x15
  22. #define TMC5130_RAMPMODE 0x20
  23. #define TMC5130_XACTUAL 0x21
  24. #define TMC5130_VACTUAL 0x22
  25. #define TMC5130_VSTART 0x23
  26. #define TMC5130_A1 0x24
  27. #define TMC5130_V1 0x25
  28. #define TMC5130_AMAX 0x26
  29. #define TMC5130_VMAX 0x27
  30. #define TMC5130_DMAX 0x28
  31. #define TMC5130_D1 0x2A
  32. #define TMC5130_VSTOP 0x2B
  33. #define TMC5130_TZEROWAIT 0x2C
  34. #define TMC5130_XTARGET 0x2D
  35. #define TMC5130_VDCMIN 0x33
  36. #define TMC5130_SWMODE 0x34
  37. #define TMC5130_RAMPSTAT 0x35
  38. #define TMC5130_XLATCH 0x36
  39. #define TMC5130_ENCMODE 0x38
  40. #define TMC5130_XENC 0x39
  41. #define TMC5130_ENC_CONST 0x3A
  42. #define TMC5130_ENC_STATUS 0x3B
  43. #define TMC5130_ENC_LATCH 0x3C
  44. #define TMC5130_MSLUT0 0x60
  45. #define TMC5130_MSLUT1 0x61
  46. #define TMC5130_MSLUT2 0x62
  47. #define TMC5130_MSLUT3 0x63
  48. #define TMC5130_MSLUT4 0x64
  49. #define TMC5130_MSLUT5 0x65
  50. #define TMC5130_MSLUT6 0x66
  51. #define TMC5130_MSLUT7 0x67
  52. #define TMC5130_MSLUTSEL 0x68
  53. #define TMC5130_MSLUTSTART 0x69
  54. #define TMC5130_MSCNT 0x6A
  55. #define TMC5130_MSCURACT 0x6B
  56. #define TMC5130_CHOPCONF 0x6C
  57. #define TMC5130_COOLCONF 0x6D
  58. #define TMC5130_DCCTRL 0x6E
  59. #define TMC5130_DRVSTATUS 0x6F
  60. #define TMC5130_PWMCONF 0x70
  61. #define TMC5130_PWMSTATUS 0x71
  62. #define TMC5130_ENCM_CTRL 0x72
  63. #define TMC5130_LOST_STEPS 0x73
  64. #endif /* TMC5130_REGISTER_H */