SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
SerialVar Namespace Reference

SerialVar is used for variables that can be modified over usb serial while still being used during runtime like a normal variable. More...

Classes

class  SerialVar
 Template of a Serial Variable. More...
 

Typedefs

typedef SerialVar< float > SerialFloat
 Convienece type for SerialVar floats.
 
typedef SerialVar< int > SerialInt
 Convienece type for SerialVar ints.
 
typedef SerialVar< unsigned int > SerialUInt
 Convienece type for SerialVar uints.
 

Functions

uint8_t * getVariable (size_t ID)
 Get the Serial Variable for a given ID.
 
void receiveSerialVar ()
 Receive a variable over serial.
 

Detailed Description

SerialVar is used for variables that can be modified over usb serial while still being used during runtime like a normal variable.

Typedef Documentation

◆ SerialFloat

Convienece type for SerialVar floats.

Definition at line 84 of file SerialVar.h.

◆ SerialInt

Convienece type for SerialVar ints.

Definition at line 88 of file SerialVar.h.

◆ SerialUInt

typedef SerialVar<unsigned int> SerialVar::SerialUInt

Convienece type for SerialVar uints.

Definition at line 92 of file SerialVar.h.

Function Documentation

◆ getVariable()

uint8_t * SerialVar::getVariable ( size_t  ID)

Get the Serial Variable for a given ID.

Parameters
IDthe ID of the variable
Returns
SerialVarObj_t