progress_codes.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /// @file progress_codes.h
  2. #pragma once
  3. #include <stdint.h>
  4. /// A complete set of progress codes which may be reported while running a high-level command/operation
  5. /// This header file shall be included in the printer's firmware as well as a reference,
  6. /// therefore the progress codes have been extracted to one place
  7. enum class ProgressCode : uint_fast8_t {
  8. OK = 0, ///< finished ok
  9. EngagingIdler, // P1
  10. DisengagingIdler, // P2
  11. UnloadingToFinda, // P3
  12. UnloadingToPulley, //P4
  13. FeedingToFinda, // P5
  14. FeedingToBondtech, // P6
  15. FeedingToNozzle, // P7
  16. AvoidingGrind, // P8
  17. FinishingMoves, // P9
  18. ERRDisengagingIdler, // P10
  19. ERREngagingIdler, // P11
  20. ERRWaitingForUser, // P12
  21. ERRInternal, // P13
  22. ERRHelpingFilament, // P14
  23. ERRTMCFailed, // P15
  24. UnloadingFilament, // P16
  25. LoadingFilament, // P17
  26. SelectingFilamentSlot, // P18
  27. PreparingBlade, // P19
  28. PushingFilament, // P20
  29. PerformingCut, // P21
  30. ReturningSelector, // P22
  31. ParkingSelector, // P23
  32. EjectingFilament, // P24
  33. RetractingFromFinda, // P25
  34. Homing,
  35. Empty = 0xff // dummy empty state
  36. };