Prusa3d Marlin fork
SpoolJoin.h
Go to the documentation of this file.
1 #pragma once
3 #include <stdint.h>
4 
5 // See documentation here: https://help.prusa3d.com/article/spooljoin-mmu2s_134252
6 
7 namespace SpoolJoin {
8 
9 class SpoolJoin {
10 public:
11  SpoolJoin();
12 
13  enum class EEPROM : uint8_t {
14  Unknown,
15  Enabled,
16  Disabled,
17  Empty = 0xFF
18  };
19 
21  void initSpoolJoinStatus();
22 
24  static void toggleSpoolJoin();
25 
28  bool isSpoolJoinEnabled();
29 
32  void setSlot(uint8_t slot);
33 
37  uint8_t nextSlot();
38 
39 private:
41  uint8_t currentMMUSlot;
42 };
43 
44 extern SpoolJoin spooljoin;
45 
46 } // namespace SpoolJoin
Definition: SpoolJoin.h:9
EEPROM
Definition: SpoolJoin.h:13