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

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?

UserRevisionLine numberNew contents of line
WGorniak 2:8d8295a51f68 1 #ifndef _CMDFACTORY_H_
WGorniak 2:8d8295a51f68 2 #define _CMDFACTORY_H_
WGorniak 2:8d8295a51f68 3
WGorniak 2:8d8295a51f68 4 #include <string>
WGorniak 2:8d8295a51f68 5 #include "mbed.h"
WGorniak 2:8d8295a51f68 6 #include "Serial.h"
WGorniak 2:8d8295a51f68 7
WGorniak 2:8d8295a51f68 8 class Cmd;
WGorniak 2:8d8295a51f68 9 class Settings;
WGorniak 2:8d8295a51f68 10
WGorniak 2:8d8295a51f68 11 class CmdFactory
WGorniak 2:8d8295a51f68 12 {
WGorniak 2:8d8295a51f68 13 public:
WGorniak 2:8d8295a51f68 14 CmdFactory(Settings* settings, Serial* serial);
WGorniak 2:8d8295a51f68 15 ~CmdFactory();
WGorniak 2:8d8295a51f68 16 Cmd* createCmd(std::string cmd) const;
WGorniak 2:8d8295a51f68 17
WGorniak 2:8d8295a51f68 18 private:
WGorniak 2:8d8295a51f68 19
WGorniak 2:8d8295a51f68 20 /** Command builder
WGorniak 2:8d8295a51f68 21 *
WGorniak 2:8d8295a51f68 22 * @param cmds list of commands for which help will be shown.
WGorniak 2:8d8295a51f68 23 * @param cmd command mnemonic
WGorniak 2:8d8295a51f68 24 *
WGorniak 2:8d8295a51f68 25 * @see CmdList
WGorniak 2:8d8295a51f68 26 */
WGorniak 2:8d8295a51f68 27 template <typename cmds>
WGorniak 2:8d8295a51f68 28 Cmd* create(const std::string& cmd) const;
WGorniak 2:8d8295a51f68 29
WGorniak 2:8d8295a51f68 30 Settings* settings_;
WGorniak 2:8d8295a51f68 31 Serial* serial_;
WGorniak 2:8d8295a51f68 32 };
WGorniak 2:8d8295a51f68 33
WGorniak 2:8d8295a51f68 34 #endif