2020-09-19 16:50:55 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
void InitCan();
|
|
|
|
void SendCanData(float lambda, uint16_t measuredResistance);
|
2021-11-03 22:40:43 -07:00
|
|
|
void SendRusefiFormat(uint8_t idx);
|
2022-04-06 01:22:09 -07:00
|
|
|
|
|
|
|
enum class HeaterAllow {
|
2022-04-06 01:31:35 -07:00
|
|
|
// no CAN message telling us what to do has been rx'd
|
2022-04-06 01:22:09 -07:00
|
|
|
Unknown,
|
2022-04-06 01:31:35 -07:00
|
|
|
|
|
|
|
// We got a message, it said HEAT
|
2022-04-06 01:22:09 -07:00
|
|
|
Allowed,
|
2022-04-06 01:31:35 -07:00
|
|
|
|
|
|
|
// We got a message, it said NO HEAT
|
2022-04-06 01:22:09 -07:00
|
|
|
NotAllowed,
|
|
|
|
};
|
|
|
|
|
|
|
|
HeaterAllow GetHeaterAllowed();
|
|
|
|
|
|
|
|
float GetRemoteBatteryVoltage();
|