Elmo Terminal provides functionality to test Lora radio and access SX1272 chip registers delivered with Elmo board. This firmware allows the user to control the LoRa radio parameters (eg. frequency, bandwidth, spreading factor etc.) by entering console commands via serial terminal. Application also contains "Ping-Pong" and data transmission functionalities.
Fork of Elmo-Terminal by
Commands/HelpCmd.h@2:8d8295a51f68, 2015-10-01 (annotated)
- Committer:
- WGorniak
- Date:
- Thu Oct 01 09:40:30 2015 +0200
- Revision:
- 2:8d8295a51f68
added terminal app
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WGorniak | 2:8d8295a51f68 | 1 | #ifndef _HELPCMD_H_ |
WGorniak | 2:8d8295a51f68 | 2 | #define _HELPCMD_H_ |
WGorniak | 2:8d8295a51f68 | 3 | |
WGorniak | 2:8d8295a51f68 | 4 | #include "Cmd.h" |
WGorniak | 2:8d8295a51f68 | 5 | |
WGorniak | 2:8d8295a51f68 | 6 | class Settings; |
WGorniak | 2:8d8295a51f68 | 7 | |
WGorniak | 2:8d8295a51f68 | 8 | /** Help Command |
WGorniak | 2:8d8295a51f68 | 9 | */ |
WGorniak | 2:8d8295a51f68 | 10 | class HelpCmd : public Cmd |
WGorniak | 2:8d8295a51f68 | 11 | { |
WGorniak | 2:8d8295a51f68 | 12 | public: |
WGorniak | 2:8d8295a51f68 | 13 | HelpCmd(Settings* settings); |
WGorniak | 2:8d8295a51f68 | 14 | virtual ~HelpCmd(); |
WGorniak | 2:8d8295a51f68 | 15 | |
WGorniak | 2:8d8295a51f68 | 16 | static string cmd(); |
WGorniak | 2:8d8295a51f68 | 17 | static string desc(); |
WGorniak | 2:8d8295a51f68 | 18 | |
WGorniak | 2:8d8295a51f68 | 19 | virtual bool execute(list<string> args); |
WGorniak | 2:8d8295a51f68 | 20 | virtual string getResponse(void); |
WGorniak | 2:8d8295a51f68 | 21 | |
WGorniak | 2:8d8295a51f68 | 22 | private: |
WGorniak | 2:8d8295a51f68 | 23 | /** Help printer |
WGorniak | 2:8d8295a51f68 | 24 | * |
WGorniak | 2:8d8295a51f68 | 25 | * @param cmds list of commands for which help will be shown. |
WGorniak | 2:8d8295a51f68 | 26 | * |
WGorniak | 2:8d8295a51f68 | 27 | * @see CmdList |
WGorniak | 2:8d8295a51f68 | 28 | */ |
WGorniak | 2:8d8295a51f68 | 29 | template <typename cmds> |
WGorniak | 2:8d8295a51f68 | 30 | static void help(); |
WGorniak | 2:8d8295a51f68 | 31 | |
WGorniak | 2:8d8295a51f68 | 32 | Settings* settings_; |
WGorniak | 2:8d8295a51f68 | 33 | }; |
WGorniak | 2:8d8295a51f68 | 34 | |
WGorniak | 2:8d8295a51f68 | 35 | #endif // _GETVARIABLECMD_H_ |