Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

static char which_receiver ( const RIG rig,
vfo_t  vfo 
) [static]

vfo must be RIG_VFO_MAIN or RIG_VFO_SUB

Parameters:
rig 
vfo RIG_VFO_MAIN or RIG_VFO_SUB
Returns:
'M' or 'S' for main or subreceiver or <0 error Note that Orion's "VFO"s are supposed to be logically independent of the main/sub receiver selection. (In reality, they are not quite independent.)

Definition at line 265 of file orion.c.

References rig_state::priv, rig_debug(), RIG_DEBUG_ERR, RIG_EINVAL, rig_strvfo(), RIG_VFO_A, RIG_VFO_B, RIG_VFO_CURR, RIG_VFO_MAIN, RIG_VFO_SUB, rig::state, and tt565_priv_data::vfo_curr.

Referenced by tt565_get_ant(), tt565_get_func(), tt565_get_level(), tt565_get_mode(), tt565_get_rit(), tt565_get_ts(), tt565_set_ant(), tt565_set_func(), tt565_set_level(), tt565_set_mode(), tt565_set_rit(), and tt565_set_ts().

{
      struct tt565_priv_data *priv = (struct tt565_priv_data *)rig->state.priv;

      if (vfo == RIG_VFO_CURR)
            vfo = priv->vfo_curr;

      switch (vfo) {
      case RIG_VFO_A:
      case RIG_VFO_B:
      case RIG_VFO_MAIN: return 'M';
      case RIG_VFO_SUB: return 'S';
      default:
            rig_debug(RIG_DEBUG_ERR,"%s: unsupported Receiver %s\n",
                        __FUNCTION__, rig_strvfo(vfo));
            return -RIG_EINVAL;
      }
}


Generated by  Doxygen 1.6.0   Back to index