diff --git a/src/hal/tmc2130.h b/src/hal/tmc2130.h index bff12e8..f01c2f3 100644 --- a/src/hal/tmc2130.h +++ b/src/hal/tmc2130.h @@ -81,6 +81,28 @@ public: static inline bool Stall(const MotorParams ¶ms) { return gpio::ReadPin(params.sgPin) == gpio::Level::high; } + + enum class Registers : uint8_t { + /// General Configuration Registers + GCONF = 0x00, + GSTAT = 0x01, + IOIN = 0x04, + + /// Velocity Dependent Driver Feature Control Register Set + IHOLD_IRUN = 0x10, + TPOWERDOWN = 0x11, + TSTEP = 0x12, + TPWMTHRS = 0x13, + TCOOLTHRS = 0x14, + THIGH = 0x15, + + /// Motor Driver Registers + MSCNT = 0x6A, + CHOPCONF = 0x6C, + COOLCONF = 0x6D, + DRV_STATUS = 0x6F, + PWMCONF = 0x70, + }; }; } // namespace tmc2130