Prusa3d Marlin fork
mmu2_fsensor.h
1 #pragma once
2 #include <stdint.h>
3 #include "Filament_sensor.h"
4 
5 namespace MMU2 {
6 
9 enum class FilamentState : uint_fast8_t {
10  NOT_PRESENT = 0,
11  AT_FSENSOR = 1,
12  IN_NOZZLE = 2,
13  UNAVAILABLE = 3
14 };
15 
16 FilamentState WhereIsFilament();
17 
18 } // namespace MMU2
New MMU2 protocol logic.
Definition: mmu2.cpp:26
FilamentState
Definition: mmu2_fsensor.h:9
@ UNAVAILABLE
sensor not available (likely not connected due broken cable)
@ AT_FSENSOR
filament detected by the filament sensor, but the nozzle has not detected the filament yet
@ IN_NOZZLE
filament detected by the filament sensor and also loaded in the nozzle
@ NOT_PRESENT
filament sensor doesn't see the filament