2020-09-19 16:50:55 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
void InitCan();
|
|
|
|
void SendCanData(float lambda, uint16_t measuredResistance);
|
2023-02-02 16:38:16 -08:00
|
|
|
void SendRusefiFormat(uint8_t ch);
|
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();
|
2023-03-28 00:01:21 -07:00
|
|
|
|
|
|
|
// implement this for your board if you want some non-standard behavior
|
|
|
|
// default implementation simply calls SendRusefiFormat
|
|
|
|
void SendCanForChannel(uint8_t ch);
|