You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
toaster-oven-bluepill/Core/Src/app_temp.h

31 lines
729 B

/**
* TODO file description
*/
#ifndef BLUEPILLTROUBA_APP_TEMP_H
#define BLUEPILLTROUBA_APP_TEMP_H
void app_analog_init();
/**
* Update temperature measurement.
*
* A slow float calculation is done here - call only when needed, at a roughly constant rate (e.g. 1s) to make smoothing work properly.
*
* The oven temp is further averaged internally.
*/
void app_temp_sample();
/// Read current oven temperature (celsius)
/// The value is valid after calling app_temp_sample()
float app_temp_read_oven();
/// Read current SOC temperature (celsius)
/// The value is valid after calling app_temp_sample()
float app_temp_read_soc();
void app_temp_adc_eos();
void app_temp_show_buf();
#endif //BLUEPILLTROUBA_APP_TEMP_H