SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::DoubleCommand< Targ, numargs > Struct Template Reference

#include <Command.hxx>

Inheritance diagram for SoDa::DoubleCommand< Targ, numargs >:
SoDa::Command

Public Member Functions

template<typename... Args>
 DoubleCommand (CmdType sgr, Args... dvs)
Public Member Functions inherited from SoDa::Command
 Command (CmdType _ct, CmdTarget _tgt)
 Constructor for commands with no parameters.
 Command (CmdType _ct, CmdTarget _tgt, int p0, int p1=0, int p2=0, int p3=0)
 Constructor for commands with integer parameters.
 Command (CmdType _ct, CmdTarget _tgt, double p0, double p1=0.0, double p2=0.0, double p3=0.0)
 Constructor for commands with double float parameters.
 Command (CmdType _ct, CmdTarget _tgt, const std::string &_str_arg, unsigned int _tag=0)
 Constructor for commands with a string parameter.
 Command (CmdType _ct, CmdTarget _tgt, const char *cp, unsigned int _tag=0)
 Constructor for commands with a string parameter.
 Command (const Command &cc)
 Copy Constructor.
 Command ()
 Constructor – create an empty command.
 ~Command ()
 Destructor.
std::string toString () const
 return a string that displays the command

Static Public Member Functions

template<typename... Args>
static CommandPtr make (CmdType sgr, Args... dvs)
Static Public Member Functions inherited from SoDa::Command
static CommandPtr make (CmdType _ct, CmdTarget _tgt)
static CommandPtr make (CmdType _ct, CmdTarget _tgt, int p0, int p1=0, int p2=0, int p3=0)
static CommandPtr make (CmdType _ct, CmdTarget _tgt, double p0, double p1=0.0, double p2=0.0, double p3=0.0)
static CommandPtr make (CmdType _ct, CmdTarget _tgt, const std::string &_str_arg, unsigned int _tag=0)
static CommandPtr make (CmdType _ct, CmdTarget _tgt, const char *cp, unsigned int _tag=0)
static CommandPtr make ()
static CommandparseCommandString (std::string str)
 convert a string to a command
static int getMaxStringLen ()
 how long can a string parameter to a command be?
static void initTables ()
 setup maps to support parseCommandString and toString

Additional Inherited Members

Public Types inherited from SoDa::Command
enum  CmdType { SET , GET , REP , NONE }
 Commands are of the form, SET, GET, or REPort some parameter. More...
enum  ClockSource { EXTERNAL , INTERNAL }
 some radios support two sources for the master oscillator reference. More...
enum  RxTxState {
  TX_OFF_0 , TX_OFF_1 , TX_OFF_2 , TX_ON_0 ,
  TX_ON_1 , TX_ON_2
}
 Transmit/Receive state changes go through stages. More...
enum  CmdTarget {
  RX_TUNE_FREQ , RX_LO_FREQ , RX_IF_FREQ , RX_CENTER_FREQ ,
  TX_TUNE_FREQ , TX_LO_FREQ , TX_IF_FREQ , RX_SAMP_RATE ,
  TX_SAMP_RATE , RX_ANT , TX_ANT , RX_RF_GAIN ,
  TX_RF_GAIN , RX_AF_GAIN , RX_AF_SIDETONE_GAIN , TX_AF_GAIN ,
  TX_STATE , RX_STATE , TX_BEACON , TX_CW_TEXT ,
  TX_CW_SPEED , TX_CW_FLUSHTEXT , TX_CW_MARKER , TX_CW_EMPTY ,
  RX_MODE , TX_MODE , RX_BW , RBW ,
  SPEC_CENTER_FREQ , SPEC_RANGE_LOW , SPEC_RANGE_HI , SPEC_STEP ,
  SPEC_BUF_LEN , SPEC_DIMS , SPEC_AVG_WINDOW , SPEC_UPDATE_RATE ,
  CLOCK_SOURCE , LO_CHECK , LO_OFFSET , RX_AF_FILTER ,
  RX_AF_FILTER_SHAPE , GPS_LATLON , GPS_UTC , GPS_LOCK ,
  SDR_VERSION , DBG_REP , HWMB_REP , STOP ,
  TVRT_LO_ENABLE , TVRT_LO_DISABLE , TVRT_LO_CONFIG , STATUS_MESSAGE ,
  TX_AUDIO_IN , TX_AUDIO_FILT_ENA , RX_GAIN_RANGE , TX_GAIN_RANGE ,
  RX_ANT_NAME , TX_ANT_NAME , MOD_SEL_ENTRY , AF_FILT_ENTRY ,
  INIT_SETUP_COMPLETE , CW_CHAR_SENT , RF_RECORD_START , RF_RECORD_STOP ,
  NBFM_SQUELCH , LIST_MODES , LIST_AF_FILTERS , NULL_CMD
}
 Each command has a "target" state that it is meant to modify, query, or report. More...
enum  ModulationType {
  LSB , USB , CW_U , CW_L ,
  AM , WBFM , NBFM
}
 modulation selector targets take one of these values More...
enum  AudioFilterBW {
  BW_100 , BW_500 , BW_2000 , BW_6000 ,
  BW_PASS , BW_WSPR , BW_NULL
}
 these are the possible audio filter bandwidths More...
enum  UnitSelector {
  BaseBandRX , BaseBandTX , RFRX , RFTX ,
  CWTX , CTRL
}
 a selector to identify a particular unit for debug reports More...
enum  TXAudioSelector { MIC , NOISE }
 a selector to identify the Audio TX input (MIC, NOISE...) More...
Public Attributes inherited from SoDa::Command
unsigned int tag
 used to pair an int with a string or other param.
union { 
   int   iparms [4] 
 integer parameters More...
   double   dparms [4] 
 double float parameters More...
   char   sparm [64] 
 a buffer holding the string More...
}; 
CmdType cmd
 the command type (SET, GET, REP)
CmdTarget target
 the thing we're touching
int id
 a sequential ID for each command – used in debugging and sequencing
char parm_type
 is this a double, int, string?
Static Public Attributes inherited from SoDa::Command
static int command_sequence_number
 sequential ID applied to each command
static bool table_needs_init
 if true, we need to call initTables()
static std::map< std::string, CmdTargettarget_map_s2v
 mapping for parseCommandString
static std::map< CmdTarget, std::string > target_map_v2s
 mapping for toString

Detailed Description

template<Command::CmdTarget Targ, int numargs>
struct SoDa::DoubleCommand< Targ, numargs >

Definition at line 820 of file Command.hxx.

Constructor & Destructor Documentation

◆ DoubleCommand()

template<Command::CmdTarget Targ, int numargs>
template<typename... Args>
SoDa::DoubleCommand< Targ, numargs >::DoubleCommand ( CmdType sgr,
Args... dvs )
inline

Definition at line 822 of file Command.hxx.

Member Function Documentation

◆ make()

template<Command::CmdTarget Targ, int numargs>
template<typename... Args>
CommandPtr SoDa::DoubleCommand< Targ, numargs >::make ( CmdType sgr,
Args... dvs )
inlinestatic

Definition at line 833 of file Command.hxx.


The documentation for this struct was generated from the following file: