Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
shr16.h
Go to the documentation of this file.
1 #pragma once
3 
4 #include <stdint.h>
5 
6 namespace hal {
7 
41 namespace shr16 {
42 
43 class SHR16 {
44 
45 public:
46  void Init();
47  void SetLED(uint16_t led);
48 
50  void SetTMCEnabled(uint8_t index, bool ena);
51  void SetTMCDir(uint8_t index, bool dir);
52 
53 private:
54  uint16_t shr16_v;
55  void Write(uint16_t v);
56 };
57 
58 extern SHR16 shr16;
59 
60 } // namespace shr16
61 } // namespace hal
Definition: shr16.h:43
void SetTMCEnabled(uint8_t index, bool ena)
indices: PULLEY = 0, SELECTOR = 1, IDLER = 2
Definition: shr16.cpp:83