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/TxCmd.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 _TXCMD_H_ |
WGorniak | 2:8d8295a51f68 | 2 | #define _TXCMD_H_ |
WGorniak | 2:8d8295a51f68 | 3 | |
WGorniak | 2:8d8295a51f68 | 4 | #include "RadioCmd.h" |
WGorniak | 2:8d8295a51f68 | 5 | #include "Settings.h" |
WGorniak | 2:8d8295a51f68 | 6 | #include "dbg.h" |
WGorniak | 2:8d8295a51f68 | 7 | |
WGorniak | 2:8d8295a51f68 | 8 | #include <string> |
WGorniak | 2:8d8295a51f68 | 9 | |
WGorniak | 2:8d8295a51f68 | 10 | class TxCmd : public RadioCmd |
WGorniak | 2:8d8295a51f68 | 11 | { |
WGorniak | 2:8d8295a51f68 | 12 | public: |
WGorniak | 2:8d8295a51f68 | 13 | TxCmd(Settings* radioSettings); |
WGorniak | 2:8d8295a51f68 | 14 | virtual ~TxCmd(); |
WGorniak | 2:8d8295a51f68 | 15 | |
WGorniak | 2:8d8295a51f68 | 16 | virtual bool execute(std::list<std::string> args); |
WGorniak | 2:8d8295a51f68 | 17 | virtual Cmd::Status process(); |
WGorniak | 2:8d8295a51f68 | 18 | virtual std::string getResponse(void); |
WGorniak | 2:8d8295a51f68 | 19 | |
WGorniak | 2:8d8295a51f68 | 20 | static string cmd(); |
WGorniak | 2:8d8295a51f68 | 21 | static string desc(); |
WGorniak | 2:8d8295a51f68 | 22 | |
WGorniak | 2:8d8295a51f68 | 23 | private: |
WGorniak | 2:8d8295a51f68 | 24 | std::string txBuffer; |
WGorniak | 2:8d8295a51f68 | 25 | uint16_t msgSize; |
WGorniak | 2:8d8295a51f68 | 26 | uint16_t delay; |
WGorniak | 2:8d8295a51f68 | 27 | Settings* settings_; |
WGorniak | 2:8d8295a51f68 | 28 | }; |
WGorniak | 2:8d8295a51f68 | 29 | #endif |