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_heater.h

25 lines
548 B

1 year ago
/**
* Heater PWM control & regulation + temp sensing loop
1 year ago
*/
#ifndef BLUEPILLTROUBA_APP_HEATER_H
#define BLUEPILLTROUBA_APP_HEATER_H
#include <stdbool.h>
void app_task_heater(void *argument);
1 year ago
/// Set heater regulator tuning.
/// Mutex is locked internally.
void app_heater_set_tuning(float p, float i, float d);
/// Set heater on/off.
/// Mutex is locked internally.
void app_heater_enable(bool enable);
/// Set heater setpoint
/// Mutex is locked internally.
void app_heater_set_target(float target);
1 year ago
#endif //BLUEPILLTROUBA_APP_HEATER_H