1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #pragma once
- #include <stdint.h>
- namespace MMU2 {
- enum CommandInProgress : uint8_t {
- NoCommand = 0,
- CutFilament = 'C',
- EjectFilament = 'E',
- Homing = 'H',
- LoadFilament = 'L',
- Reset = 'X',
- ToolChange = 'T',
- UnloadFilament = 'U',
- };
- void BeginReport(CommandInProgress cip, uint16_t ec);
- void EndReport(CommandInProgress cip, uint16_t ec);
- void ReportErrorHook(CommandInProgress cip, uint16_t ec);
- void ReportProgressHook(CommandInProgress cip, uint16_t ec);
- enum Buttons : uint8_t {
- Left = 0,
- Middle,
- Right,
-
-
- RestartMMU,
- StopPrint,
-
- NoButton = 0xff
- };
- Buttons ButtonPressed(uint16_t ec);
- bool MMUAvailable();
- bool UseMMU();
- }
|