Elmo Terminal provides functionality to test Lora radio and access SX1272 chip registers delivered with Elmo board. Also contains example ping-pong application.
Dependencies: SX1272lib mbed-src
Commands/PingPongCmd.h@6:453b018a9ba0, 2015-10-01 (annotated)
- Committer:
- WGorniak
- Date:
- Thu Oct 01 13:13:08 2015 +0000
- Revision:
- 6:453b018a9ba0
- Parent:
- 2:8d8295a51f68
removed sstream from radiocontext
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WGorniak | 2:8d8295a51f68 | 1 | #ifndef _PINGPONGCMD_H_ |
WGorniak | 2:8d8295a51f68 | 2 | #define _PINGPONGCMD_H_ |
WGorniak | 2:8d8295a51f68 | 3 | |
WGorniak | 2:8d8295a51f68 | 4 | #include "RadioCmd.h" |
WGorniak | 2:8d8295a51f68 | 5 | |
WGorniak | 2:8d8295a51f68 | 6 | class PingPongCmd : public RadioCmd |
WGorniak | 2:8d8295a51f68 | 7 | { |
WGorniak | 2:8d8295a51f68 | 8 | public: |
WGorniak | 2:8d8295a51f68 | 9 | PingPongCmd(Settings* radioSettings); |
WGorniak | 2:8d8295a51f68 | 10 | virtual ~PingPongCmd(); |
WGorniak | 2:8d8295a51f68 | 11 | |
WGorniak | 2:8d8295a51f68 | 12 | static string cmd(); |
WGorniak | 2:8d8295a51f68 | 13 | static string desc(); |
WGorniak | 2:8d8295a51f68 | 14 | |
WGorniak | 2:8d8295a51f68 | 15 | virtual bool execute(list<string> args); |
WGorniak | 2:8d8295a51f68 | 16 | virtual Status process(); |
WGorniak | 2:8d8295a51f68 | 17 | virtual string getResponse(void); |
WGorniak | 2:8d8295a51f68 | 18 | |
WGorniak | 2:8d8295a51f68 | 19 | protected: |
WGorniak | 2:8d8295a51f68 | 20 | static const string PingMsg; |
WGorniak | 2:8d8295a51f68 | 21 | static const string PongMsg; |
WGorniak | 2:8d8295a51f68 | 22 | |
WGorniak | 2:8d8295a51f68 | 23 | DigitalOut led; |
WGorniak | 2:8d8295a51f68 | 24 | |
WGorniak | 2:8d8295a51f68 | 25 | bool isMaster; |
WGorniak | 2:8d8295a51f68 | 26 | }; |
WGorniak | 2:8d8295a51f68 | 27 | |
WGorniak | 2:8d8295a51f68 | 28 | #endif // PINGPONGCMD_H_ |