14#ifndef __ECU_HEARTBEAT_H__
15#define __ECU_HEARTBEAT_H__
A module used to both ensure a connection to both ECUs using CAN and to periodically run callbacks.
void addCallback(beatFunc func)
Add a callback to be run at each haertbeat.
void beginReceiving()
Set callback to receive beats over CAN.
int checkBeat()
Poll if a beat has been received.
void(* beatFunc)(void)
Function called each time the heart beats.
void beginBeating()
begin sending a beat signal at a set interval