diff options
Diffstat (limited to 'src/DuetNG/TMC2660.h')
-rw-r--r-- | src/DuetNG/TMC2660.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/DuetNG/TMC2660.h b/src/DuetNG/TMC2660.h index 5284789b..91f4b40c 100644 --- a/src/DuetNG/TMC2660.h +++ b/src/DuetNG/TMC2660.h @@ -9,6 +9,7 @@ #define TMC2660_H_ #include "Pins.h" +#include "Libraries/General/StringRef.h" // TMC2660 Read response. The microstep counter can also be read, but we don't include that here. const uint32_t TMC_RR_SG = 1 << 0; // stall detected @@ -19,7 +20,7 @@ const uint32_t TMC_RR_OLA = 1 << 5; // open load A const uint32_t TMC_RR_OLB = 1 << 6; // open load B const uint32_t TMC_RR_STST = 1 << 7; // standstill detected -namespace TMC2660 +namespace SmartDrivers { void Init(const Pin[DRIVES], size_t numTmcDrivers) pre(numTmcDrivers <= DRIVES); @@ -29,6 +30,10 @@ namespace TMC2660 bool SetMicrostepping(size_t drive, int microsteps, int mode); unsigned int GetMicrostepping(size_t drive, int mode, bool& interpolation); void SetDriversPowered(bool powered); + void SetStallThreshold(size_t drive, int sgThreshold); + void SetStallFilter(size_t drive, bool sgFilter); + void SetCoolStep(size_t drive, uint16_t coolStepConfig); + void AppendStallConfig(size_t drive, StringRef& reply); }; #endif /* TMC2660_H_ */ |