Prusa MINI Firmware overview
TempInfo Struct Reference

#include <temperature.h>

Inheritance diagram for TempInfo:
Collaboration diagram for TempInfo:

Public Member Functions

void reset ()
 
void sample (const uint16_t s)
 
void update ()
 

Public Attributes

uint16_t acc
 
int16_t raw
 
float celsius
 

Member Function Documentation

◆ reset()

void TempInfo::reset ( )
162 { acc = 0; }

◆ sample()

void TempInfo::sample ( const uint16_t  s)
163 { acc += s; }

◆ update()

void TempInfo::update ( )
164 { raw = acc; }

Member Data Documentation

◆ acc

uint16_t TempInfo::acc

◆ raw

int16_t TempInfo::raw

◆ celsius

float TempInfo::celsius
TempInfo::raw
int16_t raw
Definition: temperature.h:160
TempInfo::acc
uint16_t acc
Definition: temperature.h:159