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

Settings/Settings.h

Committer:
WGorniak
Date:
2015-10-01
Revision:
6:453b018a9ba0
Parent:
2:8d8295a51f68

File content as of revision 6:453b018a9ba0:

#ifndef LIBRARIES_TESTS_RADIO_SETTINGS_SETTINGS_H_
#define LIBRARIES_TESTS_RADIO_SETTINGS_SETTINGS_H_

#include "Variable.h"

class Settings
{
public:
    Settings(Variable* variables);

    std::string describe(std::string variable) const;

    int32_t get(std::string variable) const;

    int32_t aget(std::string variable) const;

    bool set(std::string variable, int32_t value);

    std::string help(std::string variable) const;

    std::string help() const;

    std::string values() const;

private:
    /** reference to variable
     *
     * @param variableName variable name
     *
     * @returns Variable (end guard if not found)
     */
    Variable& find(const std::string& variableName) const;

    Variable* variables_;
};
#endif /* LIBRARIES_TESTS_RADIO_SETTINGS_SETTINGS_H_ */