Prusa3d Marlin fork
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SpoolJoin::SpoolJoin Class Reference

Public Types

enum class  EEPROM : uint8_t { Unknown , Enabled , Disabled , Empty = 0xFF }
 

Public Member Functions

void initSpoolJoinStatus ()
 Called when EEPROM is ready to be read.
 
bool isSpoolJoinEnabled ()
 Check if SpoolJoin is enabled. More...
 
void setSlot (uint8_t slot)
 Update the saved MMU slot number so SpoolJoin can determine the next slot to use. More...
 
uint8_t nextSlot ()
 Fetch the next slot number should count from 0 to 4. When filament slot 4 is depleted, the next slot should be 0. More...
 

Static Public Member Functions

static void toggleSpoolJoin ()
 Toggle SpoolJoin.
 

Member Enumeration Documentation

◆ EEPROM

enum SpoolJoin::SpoolJoin::EEPROM : uint8_t
strong
Enumerator
Unknown 

SpoolJoin is unknown while printer is booting up.

Enabled 

SpoolJoin is enabled in EEPROM.

Disabled 

SpoolJoin is disabled in EEPROM.

Empty 

EEPROM has not been set before and all bits are 1 (0xFF) - either a new printer or user erased the memory.

Member Function Documentation

◆ isSpoolJoinEnabled()

bool SpoolJoin::SpoolJoin::isSpoolJoinEnabled ( )
Returns
true if enabled, false if disabled

◆ nextSlot()

uint8_t SpoolJoin::SpoolJoin::nextSlot ( )
Returns
the next slot, ranges from 0 to 4

◆ setSlot()

void SpoolJoin::SpoolJoin::setSlot ( uint8_t  slot)
Parameters
slotnumber of the slot to set

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