12#ifndef __ECU_SERIALVAR_H__
13#define __ECU_SERIALVAR_H__
67 operator T()
const {
return *((T *)(buffer)); }
76 *((T *)(buffer)) = val;
Special logging functionality.
Serial Variable definitions.
Template of a Serial Variable.
SerialVar & operator=(T val)
Set this variable's buffer given the primitive data type T.
SerialVar(int ID)
Construct a new Serial Var given the predefined ID defined in SerialVars.def.
SerialVar is used for variables that can be modified over usb serial while still being used during ru...
SerialVar< float > SerialFloat
Convienece type for SerialVar floats.
void receiveSerialVar()
Receive a variable over serial.
SerialVar< unsigned int > SerialUInt
Convienece type for SerialVar uints.
uint8_t * getVariable(size_t ID)
Get the Serial Variable for a given ID.
SerialVar< int > SerialInt
Convienece type for SerialVar ints.