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.
Dependencies: mbed SerialInputReactionHandler AMPulseTrain SwArr16MOSFET StrCommandHandler KajiLabES
SerialCom/CommandHandler.h@1:b97639dad576, 2019-10-23 (annotated)
- Committer:
- aktk
- Date:
- Wed Oct 23 20:08:31 2019 +0000
- Revision:
- 1:b97639dad576
used at VRSJ24 DEMO
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| aktk | 1:b97639dad576 | 1 | #ifndef COMMAND_HANDLER_H |
| aktk | 1:b97639dad576 | 2 | #define COMMAND_HANDLER_H |
| aktk | 1:b97639dad576 | 3 | #include "mbed.h" |
| aktk | 1:b97639dad576 | 4 | #include <string> |
| aktk | 1:b97639dad576 | 5 | #include <unsorted_map> |
| aktk | 1:b97639dad576 | 6 | |
| aktk | 1:b97639dad576 | 7 | class CommandAnalyzer |
| aktk | 1:b97639dad576 | 8 | { |
| aktk | 1:b97639dad576 | 9 | public: |
| aktk | 1:b97639dad576 | 10 | CommandAnalyzer( |
| aktk | 1:b97639dad576 | 11 | int num_of_command = 10, |
| aktk | 1:b97639dad576 | 12 | char response_mode = 0 |
| aktk | 1:b97639dad576 | 13 | ); |
| aktk | 1:b97639dad576 | 14 | int analyzeCommand( |
| aktk | 1:b97639dad576 | 15 | const char* const command |
| aktk | 1:b97639dad576 | 16 | ); |
| aktk | 1:b97639dad576 | 17 | int mapCommand( |
| aktk | 1:b97639dad576 | 18 | const char* const command |
| aktk | 1:b97639dad576 | 19 | int (*fanction)(void) |
| aktk | 1:b97639dad576 | 20 | ); |
| aktk | 1:b97639dad576 | 21 | private: |
| aktk | 1:b97639dad576 | 22 | char (*m_command_name)[20]; |
| aktk | 1:b97639dad576 | 23 | int (**m_function)(void); |
| aktk | 1:b97639dad576 | 24 | } |
| aktk | 1:b97639dad576 | 25 | #endif |