Prusa3d Marlin fork
printer_state.h
Go to the documentation of this file.
1 
12 #pragma once
13 #include "macros.h"
14 
15 // The order of the states is important as we check
16 // - LCD menu only shown when lower than "IsSDPrinting"
17 enum class PrinterState : uint8_t
18 {
19  NotReady = 0, //Lowest state to simplify queries
20  IsReady = 1, //
21  Idle = 2,
22  SDPrintingFinished = 3,
23  HostPrintingFinished = 4,
24  IsSDPrinting = 5,
25  IsHostPrinting = 6,
26 };
27 
28 PrinterState GetPrinterState();
29 PrinterState SetPrinterState(PrinterState status);