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.

Dependencies:   SX1272lib mbed

Fork of Elmo-Terminal by Michal Leksinski

Committer:
WGorniak
Date:
Thu Oct 22 08:03:32 2015 +0000
Revision:
12:26045241f50f
Parent:
2:8d8295a51f68
updated sx lib

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WGorniak 2:8d8295a51f68 1 #ifndef LIBRARIES_TESTS_RADIO_SETTINGS_SETTINGS_H_
WGorniak 2:8d8295a51f68 2 #define LIBRARIES_TESTS_RADIO_SETTINGS_SETTINGS_H_
WGorniak 2:8d8295a51f68 3
WGorniak 2:8d8295a51f68 4 #include "Variable.h"
WGorniak 2:8d8295a51f68 5
WGorniak 2:8d8295a51f68 6 class Settings
WGorniak 2:8d8295a51f68 7 {
WGorniak 2:8d8295a51f68 8 public:
WGorniak 2:8d8295a51f68 9 Settings(Variable* variables);
WGorniak 2:8d8295a51f68 10
WGorniak 2:8d8295a51f68 11 std::string describe(std::string variable) const;
WGorniak 2:8d8295a51f68 12
WGorniak 2:8d8295a51f68 13 int32_t get(std::string variable) const;
WGorniak 2:8d8295a51f68 14
WGorniak 2:8d8295a51f68 15 int32_t aget(std::string variable) const;
WGorniak 2:8d8295a51f68 16
WGorniak 2:8d8295a51f68 17 bool set(std::string variable, int32_t value);
WGorniak 2:8d8295a51f68 18
WGorniak 2:8d8295a51f68 19 std::string help(std::string variable) const;
WGorniak 2:8d8295a51f68 20
WGorniak 2:8d8295a51f68 21 std::string help() const;
WGorniak 2:8d8295a51f68 22
WGorniak 2:8d8295a51f68 23 std::string values() const;
WGorniak 2:8d8295a51f68 24
WGorniak 2:8d8295a51f68 25 private:
WGorniak 2:8d8295a51f68 26 /** reference to variable
WGorniak 2:8d8295a51f68 27 *
WGorniak 2:8d8295a51f68 28 * @param variableName variable name
WGorniak 2:8d8295a51f68 29 *
WGorniak 2:8d8295a51f68 30 * @returns Variable (end guard if not found)
WGorniak 2:8d8295a51f68 31 */
WGorniak 2:8d8295a51f68 32 Variable& find(const std::string& variableName) const;
WGorniak 2:8d8295a51f68 33
WGorniak 2:8d8295a51f68 34 Variable* variables_;
WGorniak 2:8d8295a51f68 35 };
WGorniak 2:8d8295a51f68 36 #endif /* LIBRARIES_TESTS_RADIO_SETTINGS_SETTINGS_H_ */