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

Function rig_strlevel

src/misc.c:1191–1211  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1189 * \sa rig_level_e()
1190 */
1191const char *HAMLIB_API rig_strlevel(setting_t level)
1192{
1193 int i;
1194
1195 rig_debug(RIG_DEBUG_CACHE, "%s called\n", __func__);
1196
1197 if (level == RIG_LEVEL_NONE)
1198 {
1199 return "";
1200 }
1201
1202 for (i = 0; rig_level_str[i].str[0] != '\0'; i++)
1203 {
1204 if (level == rig_level_str[i].level)
1205 {
1206 return rig_level_str[i].str;
1207 }
1208 }
1209
1210 return "";
1211}
1212
1213
1214/**

Callers 15

barrett_get_levelFunction · 0.85
wj_set_levelFunction · 0.85
wj_get_levelFunction · 0.85
dummy_set_levelFunction · 0.85
dummy_get_levelFunction · 0.85
quisk_set_levelFunction · 0.85
quisk_get_levelFunction · 0.85
netrigctl_set_levelFunction · 0.85
netrigctl_get_levelFunction · 0.85
dummy_amp_get_levelFunction · 0.85
sdr1k_set_levelFunction · 0.85
dttsp_set_levelFunction · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected