Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of frdm_echo by
shell.h@15:a32db434af65, 2014-04-25 (annotated)
- Committer:
- silverpanda
- Date:
- Fri Apr 25 16:22:54 2014 +0000
- Revision:
- 15:a32db434af65
- Parent:
- 14:73ef945b8def
debugged
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
silverpanda | 5:03b7c237c4c4 | 1 | #ifndef shell__h__ |
silverpanda | 5:03b7c237c4c4 | 2 | #define shell__h__ |
silverpanda | 5:03b7c237c4c4 | 3 | |
silverpanda | 13:019e24491f32 | 4 | #include "PushButtons.h" |
silverpanda | 9:f9efd3a69c2d | 5 | #define ItsInputBufferSize_ 24 |
silverpanda | 8:b715912d684b | 6 | |
silverpanda | 5:03b7c237c4c4 | 7 | class Shell { |
silverpanda | 5:03b7c237c4c4 | 8 | public: |
silverpanda | 5:03b7c237c4c4 | 9 | Shell(uint32_t); |
silverpanda | 12:b846b64e3980 | 10 | void sendStartMessage(); |
silverpanda | 5:03b7c237c4c4 | 11 | void scanUSBSerialRx(); |
silverpanda | 13:019e24491f32 | 12 | void reportPushButtonPress(ePushButton); |
silverpanda | 5:03b7c237c4c4 | 13 | private: |
silverpanda | 9:f9efd3a69c2d | 14 | bool addCharacterToBuffer(char); |
silverpanda | 8:b715912d684b | 15 | void finishCharacterBuffer(); |
silverpanda | 11:4c6c6d6c0ebe | 16 | void sendExample(); |
silverpanda | 11:4c6c6d6c0ebe | 17 | char lowercase(char); |
silverpanda | 13:019e24491f32 | 18 | void sendText(char *); |
silverpanda | 14:73ef945b8def | 19 | void parseGenerate(); |
silverpanda | 15:a32db434af65 | 20 | void parseGet(); |
silverpanda | 14:73ef945b8def | 21 | void generatePi(); |
silverpanda | 15:a32db434af65 | 22 | void sendDecimal(uint8_t); |
silverpanda | 5:03b7c237c4c4 | 23 | |
silverpanda | 5:03b7c237c4c4 | 24 | Serial *usbSerial; |
silverpanda | 8:b715912d684b | 25 | char inputBuffer[ItsInputBufferSize_]; |
silverpanda | 15:a32db434af65 | 26 | uint16_t characterCount, characterPointer, decimalCounter; |
silverpanda | 11:4c6c6d6c0ebe | 27 | bool findString(char *); |
silverpanda | 9:f9efd3a69c2d | 28 | void parseCommands(); |
silverpanda | 12:b846b64e3980 | 29 | void parseLEDState(); |
silverpanda | 5:03b7c237c4c4 | 30 | }; |
silverpanda | 5:03b7c237c4c4 | 31 | |
silverpanda | 5:03b7c237c4c4 | 32 | #endif |