wideband/firmware/heater_control.h

20 lines
354 B
C
Raw Normal View History

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