wideband/firmware/can.h

27 lines
588 B
C++

#pragma once
#include <cstdint>
void InitCan();
void SendCanData(float lambda, uint16_t measuredResistance);
void SendRusefiFormat(uint8_t ch);
enum class HeaterAllow {
// no CAN message telling us what to do has been rx'd
Unknown,
// We got a message, it said HEAT
Allowed,
// We got a message, it said NO HEAT
NotAllowed,
};
HeaterAllow GetHeaterAllowed();
float GetRemoteBatteryVoltage();
// implement this for your board if you want some non-standard behavior
// default implementation simply calls SendRusefiFormat
void SendCanForChannel(uint8_t ch);