SAE Teensy ECU
IIT SAE Microcontroller programming
|
Template of a Serial Variable. More...
#include <SerialVar.h>
Public Member Functions | |
SerialVar (int ID) | |
Construct a new Serial Var given the predefined ID defined in SerialVars.def. | |
operator T () const | |
Cast to the given primitive data type of this variable. | |
SerialVar & | operator= (T val) |
Set this variable's buffer given the primitive data type T. | |
Template of a Serial Variable.
T | The primitive data type of this variable |
ID | The unique ID of this variable, used to update it in the background |
Definition at line 48 of file SerialVar.h.
|
inline |
Construct a new Serial Var given the predefined ID defined in SerialVars.def.
ID | the predefined ID |
Definition at line 58 of file SerialVar.h.
|
inline |
Cast to the given primitive data type of this variable.
Definition at line 67 of file SerialVar.h.
|
inline |
Set this variable's buffer given the primitive data type T.
val | Value to interpret |
Definition at line 75 of file SerialVar.h.