2020-10-30 01:53:54 -07:00
|
|
|
#pragma once
|
|
|
|
|
2020-12-15 15:00:11 -08:00
|
|
|
#include <cstdint>
|
|
|
|
|
2022-05-11 01:41:07 -07:00
|
|
|
enum class HeaterState
|
|
|
|
{
|
|
|
|
Preheat,
|
|
|
|
WarmupRamp,
|
|
|
|
ClosedLoop,
|
|
|
|
Stopped,
|
2022-12-01 13:20:54 -08:00
|
|
|
NoHeaterSupply,
|
2022-05-11 01:41:07 -07:00
|
|
|
};
|
|
|
|
|
2020-10-30 01:53:54 -07:00
|
|
|
void StartHeaterControl();
|
2022-08-29 17:19:30 -07:00
|
|
|
bool IsRunningClosedLoop(int ch);
|
|
|
|
float GetHeaterDuty(int ch);
|
2023-04-17 14:10:38 -07:00
|
|
|
float GetHeaterEffVoltage(int ch);
|
2022-08-29 17:19:30 -07:00
|
|
|
HeaterState GetHeaterState(int ch);
|
2022-05-11 01:41:07 -07:00
|
|
|
const char* describeHeaterState(HeaterState state);
|