wideband/firmware/can.h

23 lines
423 B
C
Raw Normal View History

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