Component Test's Software to work with "Universal Controller Box" - Software is an interpreter or "compiler" for programs to be done with a .txt file and read off of the SD Card
Dependencies: BridgeDriver FrontPanelButtons MCP23017 SDFileSystem TextLCD mbed
mainFunctions.hpp@9:5a0c4c6e39c7, 2014-09-24 (annotated)
- Committer:
- mehatfie
- Date:
- Wed Sep 24 22:23:00 2014 +0000
- Revision:
- 9:5a0c4c6e39c7
- System error checking and syntax checking should be completed; --- Compiled code still functions correctly; --- All error checking has not been checked that they indeed error out / not error out and function as planned
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mehatfie | 9:5a0c4c6e39c7 | 1 | //#ifndef MAINFUNCTIONS_HPP |
mehatfie | 9:5a0c4c6e39c7 | 2 | //#define MAINFUNCTIONS_HPP |
mehatfie | 9:5a0c4c6e39c7 | 3 | // |
mehatfie | 9:5a0c4c6e39c7 | 4 | //#include "Initialization.hpp" |
mehatfie | 9:5a0c4c6e39c7 | 5 | ////#include "TextFile.h" |
mehatfie | 9:5a0c4c6e39c7 | 6 | // |
mehatfie | 9:5a0c4c6e39c7 | 7 | ///******************************************************************************/ |
mehatfie | 9:5a0c4c6e39c7 | 8 | ///*** <Function Initializations> ***/ |
mehatfie | 9:5a0c4c6e39c7 | 9 | ///******************************************************************************/ |
mehatfie | 9:5a0c4c6e39c7 | 10 | // |
mehatfie | 9:5a0c4c6e39c7 | 11 | //int cyclePrograms(vector<string>, int, int, int); |
mehatfie | 9:5a0c4c6e39c7 | 12 | // |
mehatfie | 9:5a0c4c6e39c7 | 13 | //void resetLineData(LineData &); //reset and all variables of the Line Data Struct |
mehatfie | 9:5a0c4c6e39c7 | 14 | // |
mehatfie | 9:5a0c4c6e39c7 | 15 | //int interpretCommand(FILE *, LineData &); |
mehatfie | 9:5a0c4c6e39c7 | 16 | // |
mehatfie | 9:5a0c4c6e39c7 | 17 | //int loopCommand(FILE *, LineData &); |
mehatfie | 9:5a0c4c6e39c7 | 18 | // |
mehatfie | 9:5a0c4c6e39c7 | 19 | // |
mehatfie | 9:5a0c4c6e39c7 | 20 | ////Create an enum map of the positble conditions |
mehatfie | 9:5a0c4c6e39c7 | 21 | //enum ConditionType{xAND, AND, xOR, OR, NONE}; |
mehatfie | 9:5a0c4c6e39c7 | 22 | // |
mehatfie | 9:5a0c4c6e39c7 | 23 | //struct ConditionOp{ |
mehatfie | 9:5a0c4c6e39c7 | 24 | // int value; //returned value of the interpret function: 1 = meets criteria, 0 = criteria not met, -1 = failed to interpret |
mehatfie | 9:5a0c4c6e39c7 | 25 | // ConditionType op; //operator that follows the given parameter: x val 2 AND y val 3, if this ConditionOp is for x, then the value will be AND |
mehatfie | 9:5a0c4c6e39c7 | 26 | //}; |
mehatfie | 9:5a0c4c6e39c7 | 27 | // |
mehatfie | 9:5a0c4c6e39c7 | 28 | //int conditionCommand(FILE *, LineData &); |
mehatfie | 9:5a0c4c6e39c7 | 29 | // |
mehatfie | 9:5a0c4c6e39c7 | 30 | // |
mehatfie | 9:5a0c4c6e39c7 | 31 | ///******************************************************************************/ |
mehatfie | 9:5a0c4c6e39c7 | 32 | ///*** <Line Data Struct Initializations> ***/ |
mehatfie | 9:5a0c4c6e39c7 | 33 | ///******************************************************************************/ |
mehatfie | 9:5a0c4c6e39c7 | 34 | // |
mehatfie | 9:5a0c4c6e39c7 | 35 | // |
mehatfie | 9:5a0c4c6e39c7 | 36 | // |
mehatfie | 9:5a0c4c6e39c7 | 37 | //#endif |