Prusa3d Marlin fork
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Filament_sensor Class Reference

#include <Filament_sensor.h>

Inheritance diagram for Filament_sensor:
Inheritance graph
[legend]
Collaboration diagram for Filament_sensor:
Collaboration graph
[legend]

Public Types

enum class  State : uint8_t { disabled = 0 , initializing , ready , error }
 
enum class  SensorActionOnError : uint8_t { _Continue = 0 , _Pause = 1 , _Undef = EEPROM_EMPTY_VALUE }
 

Public Member Functions

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 void setEnabled (bool enabled)
 

Protected Member Functions

void settings_init_common ()
 
bool checkFilamentEvents ()
 
void triggerFilamentInserted ()
 
void triggerFilamentRemoved ()
 
void filRunout ()
 
void triggerError ()
 

Protected Attributes

State state
 
bool autoLoadEnabled
 
bool runoutEnabled
 
bool oldFilamentPresent
 
bool postponedLoadEvent
 
ShortTimer eventBlankingTimer
 
SensorActionOnError sensorActionOnError
 

Detailed Description

Base class Filament sensor

Ideally, there could have been a nice class hierarchy of filament sensor types with common functionality extracted into this base class. But:

Member Function Documentation

◆ triggerError()

void Filament_sensor::triggerError ( )
protected

some message, idk


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