MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / rig_parse_level

Function rig_parse_level

src/misc.c:1110–1125  ·  view source on GitHub ↗

* \brief Convert alpha string to enum RIG_LEVEL_... * \param s input alpha string * \return RIG_LEVEL_... * * \sa rig_level_e() */

Source from the content-addressed store, hash-verified

1108 * \sa rig_level_e()
1109 */
1110setting_t HAMLIB_API rig_parse_level(const char *s)
1111{
1112 int i;
1113
1114 rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
1115
1116 for (i = 0 ; rig_level_str[i].str[0] != '\0'; i++)
1117 {
1118 if (!strcmp(s, rig_level_str[i].str))
1119 {
1120 return rig_level_str[i].level;
1121 }
1122 }
1123
1124 return RIG_LEVEL_NONE;
1125}
1126
1127
1128/**

Callers 2

ampctl_parse.cFile · 0.85
rigctl_parse.cFile · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected