![]() |
SAE Teensy ECU
IIT SAE Microcontroller programming
|
A simple way to run commands over serial. More...
Functions | |
| void | setCommand (uint8_t command, CommandCallback callback) |
| attach a single callback to a byte value that will be received over serial | |
| int | receiveCommand (void) |
| receive any command from serial by matching incoming bytes to a callback | |
A simple way to run commands over serial.
| int Cmd::receiveCommand | ( | void | ) |
receive any command from serial by matching incoming bytes to a callback
| void Cmd::setCommand | ( | uint8_t | command, |
| CommandCallback | callback | ||
| ) |
attach a single callback to a byte value that will be received over serial
| command | The byte integer |
| callback | The callback |