Logo Search packages:      
Sourcecode: hamlib version File versions

rmode_t HAMLIB_API rig_parse_mode ( const char *  s  ) 

Convert alpha string to enum RIG_MODE.

Parameters:
s input alpha string
Returns:
enum RIG_MODE_??
See also:
rmode_t

Definition at line 290 of file misc.c.

References RIG_MODE_NONE.

{
      int i;

      for (i=0 ; mode_str[i].str[0] != '\0'; i++)
                  if (!strcmp(s, mode_str[i].str))
                              return mode_str[i].mode;
      return RIG_MODE_NONE;
}


Generated by  Doxygen 1.6.0   Back to index