wideband/firmware/can.h

27 lines
588 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();
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);