mmu2_fsensor.h 621 B

1234567891011121314151617
  1. #pragma once
  2. #include <stdint.h>
  3. #include "Filament_sensor.h"
  4. namespace MMU2 {
  5. /// Possible states of filament from the perspective of presence in various parts of the printer
  6. /// Beware, the numeric codes are important and sent into the MMU
  7. enum class FilamentState : uint_fast8_t {
  8. NOT_PRESENT = 0, ///< filament sensor doesn't see the filament
  9. AT_FSENSOR = 1, ///< filament detected by the filament sensor, but the nozzle has not detected the filament yet
  10. IN_NOZZLE = 2 ///< filament detected by the filament sensor and also loaded in the nozzle
  11. };
  12. FilamentState WhereIsFilament();
  13. } // namespace MMU2