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

const char* HAMLIB_API rig_strvfo ( vfo_t  vfo  ) 

Convert enum RIG_VFO_... to alpha string.

Parameters:
vfo RIG_VFO_...
Returns:
alpha string
See also:
RIG_VFO_A RIG_VFO_B RIG_VFO_C RIG_VFO_MAIN RIG_VFO_SUB RIG_VFO_VFO RIG_VFO_CURR RIG_VFO_MEM RIG_VFO_TX RIG_VFO_RX RIG_VFO_NONE

Definition at line 362 of file misc.c.

References RIG_VFO_NONE.

Referenced by which_receiver(), and which_vfo().

{
      int i;

      if (vfo == RIG_VFO_NONE)
            return "";

      for (i=0 ; vfo_str[i].str[0] != '\0'; i++)
            if (vfo == vfo_str[i].vfo)
                  return vfo_str[i].str;

      return "";
}


Generated by  Doxygen 1.6.0   Back to index