20#ifndef __ECU_SERIALCOMMAND_H__
21#define __ECU_SERIALCOMMAND_H__l
25#include "usb_serial.h"
void(* CommandCallback)(void)
A function that will be called whenever its corresponding command byte is received.
A simple way to run commands over serial.
int receiveCommand(void)
receive any command from serial by matching incoming bytes to a callback
void setCommand(uint8_t command, CommandCallback callback)
attach a single callback to a byte value that will be received over serial