Prusa MINI Firmware overview
heater_idle_t Struct Reference

#include <temperature.h>

Collaboration diagram for heater_idle_t:

Public Member Functions

void update (const millis_t &ms)
 
void start (const millis_t &ms)
 
void reset ()
 
void expire ()
 

Public Attributes

millis_t timeout_ms
 
bool timed_out
 

Member Function Documentation

◆ update()

void heater_idle_t::update ( const millis_t ms)
201 { if (!timed_out && timeout_ms && ELAPSED(ms, timeout_ms)) timed_out = true; }
Here is the caller graph for this function:

◆ start()

void heater_idle_t::start ( const millis_t ms)
202 { timeout_ms = millis() + ms; timed_out = false; }
Here is the call graph for this function:

◆ reset()

void heater_idle_t::reset ( )
203 { timeout_ms = 0; timed_out = false; }
Here is the caller graph for this function:

◆ expire()

void heater_idle_t::expire ( )
204 { start(0); }

Member Data Documentation

◆ timeout_ms

millis_t heater_idle_t::timeout_ms

◆ timed_out

bool heater_idle_t::timed_out
heater_idle_t::start
void start(const millis_t &ms)
Definition: temperature.h:202
millis
uint32_t millis(void)
Definition: wiring_time.c:29
heater_idle_t::timeout_ms
millis_t timeout_ms
Definition: temperature.h:199
heater_idle_t::timed_out
bool timed_out
Definition: temperature.h:200
ELAPSED
#define ELAPSED(NOW, SOON)
Definition: millis_t.h:29