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

const char* HAMLIB_API rig_strrmode ( rmode_t  mode  ) 

Convert enum RIG_MODE to alpha string.

Parameters:
mode RIG_MODE_...
Returns:
alpha string
See also:
rmode_t

Definition at line 307 of file misc.c.

References RIG_MODE_NONE.

{
      int i;

      if (mode == RIG_MODE_NONE)
            return "";

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

      return "";
}


Generated by  Doxygen 1.6.0   Back to index