libcyberradio  22.01.24
RadioHandler.h
1 /***************************************************************************
2  * \file RadioHandler.h
3  * \brief Defines the radio handler interface for the NDR551.
4  * \author DA
5  * \author NH
6  * \author MN
7  * \copyright (c) 2017 CyberRadio Solutions, Inc. All rights reserved.
8  *
9  ***************************************************************************/
10 
11 #ifndef INCLUDED_LIBCYBERRADIO_DRIVER_NDR551_RADIOHANDLER_H
12 #define INCLUDED_LIBCYBERRADIO_DRIVER_NDR551_RADIOHANDLER_H
13 
14 #include "LibCyberRadio/Driver/RadioHandler.h"
15 #include <chrono>
16 
20 namespace LibCyberRadio
21 {
25  namespace Driver
26  {
27 
31  namespace NDR551
32  {
33 
179  {
180  public:
181  RadioHandler(bool debug = false);
182  virtual ~RadioHandler();
183  RadioHandler(const RadioHandler& other);
184  virtual RadioHandler& operator=(const RadioHandler& other);
185  // OVERRIDE
186  virtual void queryConfiguration();
190  uint32_t getMessageId( void );
191 
192  protected:
193  // OVERRIDE
194  virtual bool queryVersionInfo();
195  // OVERRIDE
196  virtual bool executeQueryIDN(std::string& model,
197  std::string& serialNumber);
198  // OVERRIDE
199  virtual bool executeQueryVER(std::string& softwareVersion,
200  std::string& firmwareVersion,
201  std::string& referenceVersion,
202  std::string& firmwareDate);
203  // OVERRIDE
204  virtual bool executeQueryHREV(std::string& hardwareInfo);
215  virtual void initConfigurationDict();
216  virtual bool executeReferenceModeQuery(int& refMode);
217  virtual bool executeReferenceModeCommand(int& refMode);
218 
219 
220  }; /* class RadioHandler */
221 
222  } /* namespace NDR551 */
223 
224  } /* namespace Driver */
225 
226 } /* namespace LibCyberRadio */
227 
228 #endif /* INCLUDED_LIBCYBERRADIO_DRIVER_NDR551_RADIOHANDLER_H */
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
virtual ~RadioHandler()
Destroys a RadioHandler object.
virtual void queryConfiguration()
Tells the radio to query its hardware configuration in order to create its configuration dictionary (...
uint32_t getMessageId(void)
Returns a Time for the msg parameter.
Generic radio handler class.
Definition: RadioHandler.h:54
virtual int debug(const char *format,...)
Outputs debug information.
Definition: Debuggable.cpp:95
Defines functionality for LibCyberRadio applications.
Definition: App.h:23
Radio handler class for the NDR551.
Definition: RadioHandler.h:178