You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const std::array<float,3> spispeeds = {10e6,5e6,2.5e6}; // Target speeds. Must double each entry
27
28
public:
28
29
MtEncoderSPI();
29
30
virtual~MtEncoderSPI();
@@ -57,6 +58,8 @@ class MtEncoderSPI: public Encoder, public SPIDevice, public PersistentStorage,
57
58
58
59
//bool useDMA = false; // if true uses DMA for angle updates instead of polling SPI. TODO when used with tmc external encoder using DMA will hang the interrupt randomly
59
60
61
+
voidsetSpiSpeed(uint8_t preset);
62
+
60
63
private:
61
64
uint8_treadSpi(uint16_t addr);
62
65
voidwriteSpi(uint16_t addr,uint8_t data);
@@ -85,6 +88,8 @@ class MtEncoderSPI: public Encoder, public SPIDevice, public PersistentStorage,
0 commit comments