Prusa3d Marlin fork
Public Member Functions | Static Public Member Functions | List of all members
IR_sensor Class Reference
Inheritance diagram for IR_sensor:
Inheritance graph
[legend]
Collaboration diagram for IR_sensor:
Collaboration graph
[legend]

Public Member Functions

void init ()
 
void deinit ()
 
bool update ()
 
bool getFilamentPresent () const
 
void settings_init ()
 
- Public Member Functions inherited from Filament_sensor
void setAutoLoadEnabled (bool state, bool updateEEPROM=false)
 
bool getAutoLoadEnabled () const
 
void setRunoutEnabled (bool state, bool updateEEPROM=false)
 
bool getRunoutEnabled () const
 
void setActionOnError (SensorActionOnError state, bool updateEEPROM=false)
 
SensorActionOnError getActionOnError () const
 
bool getFilamentLoadEvent () const
 
bool isError () const
 
bool isReady () const
 
bool isEnabled () const
 

Static Public Member Functions

static bool probeOtherType ()
 
- Static Public Member Functions inherited from Filament_sensor
static void setEnabled (bool enabled)
 

Additional Inherited Members

- Public Types inherited from Filament_sensor
enum class  State : uint8_t { disabled = 0 , initializing , ready , error }
 
enum class  SensorActionOnError : uint8_t { _Continue = 0 , _Pause = 1 , _Undef = EEPROM_EMPTY_VALUE }
 
- Protected Member Functions inherited from Filament_sensor
void settings_init_common ()
 
bool checkFilamentEvents ()
 
void triggerFilamentInserted ()
 
void triggerFilamentRemoved ()
 
void filRunout ()
 
void triggerError ()
 
- Protected Attributes inherited from Filament_sensor
State state
 
bool autoLoadEnabled
 
bool runoutEnabled
 
bool oldFilamentPresent
 
bool postponedLoadEvent
 
ShortTimer eventBlankingTimer
 
SensorActionOnError sensorActionOnError
 

The documentation for this class was generated from the following files: