|
| EngduinoProtocolClass () |
| Constructor. More...
|
|
| ~EngduinoProtocolClass () |
| Destructor. More...
|
|
void | begin (EngduinoLEDsClass *eledsc, EngduinoAccelerometerClass *eaccc, EngduinoThermistorClass *etc, EngduinoMagnetometerClass *emc, EngduinoLightClass *elc, EngduinoButtonClass *ebc, EngduinoIRClass *eirc) |
| begin function - must be called before using other functions More...
|
|
void | end () |
| end function - turn off the LEDs and stop Protocol OS. More...
|
|
void | mainLoop () |
| The main loop of Engduino protocol operating system. More...
|
|
void | loadDefaults () |
| Initialize protocol variables and settings. More...
|
|
int | parsePackage (String str, byte *outNrVals, long *outVals) |
| Splits string into array of values. More...
|
|
int | parsePackageHeader (byte communicationChannel, byte inNrVals, long *inVals, struct EngduinoPackage *outPackage, byte *outHeaderSize) |
| Parse package header. More...
|
|
int | sendPackage (byte inNrVals, byte inCommandID, long *inVals) |
| Send package over the active communication channel. More...
|
|
int | sendPackage (struct EngduinoPackage *engPackage, byte inNrVals, byte inCommandID, long *inVals) |
| Send package over the active communication channel. More...
|
|
int | setLED (struct EngduinoPackage *engPackage, byte nrVals, long *inVals) |
| Turn on or off small green LED. More...
|
|
int | setLEDs (struct EngduinoPackage *engPackage, byte nrVals, long *inVals) |
| Set colours and brightness of RGB LEDs. More...
|
|
int | setGetStatus (struct EngduinoPackage *engPackage, byte nrVals, long *inVals, uint8_t setGet) |
| Set or Get status of the Engduino board. More...
|
|
int | setGetIR (struct EngduinoPackage *engPackage, byte nrVals, long *inVals, uint8_t setGet) |
| Set or Get data from IR communication. More...
|
|
int | setPinsType (struct EngduinoPackage *engPackage, byte inNrVals, long *inVals, uint8_t digAnalog) |
| Set digital or analog pin type. More...
|
|
int | setPinsValue (struct EngduinoPackage *engPackage, byte inNrVals, long *inVals, uint8_t digAnalog) |
| Set digital or analog pin value. More...
|
|
int | getVersion (struct EngduinoPackage *engPackage) |
| Get Engduino board version and running sketch on it. More...
|
|
int | getSensor (struct EngduinoPackage *engPackage, int sensorType, byte nrVals, long *inVals) |
| Get Engduino's sensor measurements. More...
|
|
int | getButton (struct EngduinoPackage *engPackage, byte nrVals, long *inVals) |
| Get Engduino's button state. More...
|
|
int | getPinsValue (struct EngduinoPackage *engPackage, byte inNrVals, long *inVals, uint8_t digAnalog) |
| Get digital or analog pin value. More...
|
|