wideband/firmware/fault.h

18 lines
277 B
C
Raw Normal View History

2020-12-10 18:32:41 -08:00
#pragma once
2021-11-03 23:02:11 -07:00
#include <cstdint>
enum class Fault : uint8_t
2020-12-10 18:32:41 -08:00
{
2020-12-10 21:46:41 -08:00
None = 0,
// First fault code at 3 so it's easier to see
SensorDidntHeat = 3,
2020-12-10 22:08:00 -08:00
SensorOverheat = 4,
2020-12-11 15:46:03 -08:00
SensorUnderheat = 5,
2020-12-10 18:32:41 -08:00
};
2021-11-03 23:02:11 -07:00
void SetFault(Fault fault);
bool HasFault();
Fault GetCurrentFault();