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

Function rot_strlevel

src/misc.c:1221–1241  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1219 * \sa rot_level_e()
1220 */
1221const char *HAMLIB_API rot_strlevel(setting_t level)
1222{
1223 int i;
1224
1225 rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
1226
1227 if (level == ROT_LEVEL_NONE)
1228 {
1229 return "";
1230 }
1231
1232 for (i = 0; rot_level_str[i].str[0] != '\0'; i++)
1233 {
1234 if (level == rot_level_str[i].level)
1235 {
1236 return rot_level_str[i].str;
1237 }
1238 }
1239
1240 return "";
1241}
1242
1243
1244/**

Callers 12

dummy_set_levelFunction · 0.85
dummy_get_levelFunction · 0.85
rot_sprintf_levelFunction · 0.85
rot_sprintf_level_granFunction · 0.85
ether_rot_get_levelFunction · 0.85
ether_rot_set_levelFunction · 0.85
gs232b_rot_get_levelFunction · 0.85
gs232b_rot_set_levelFunction · 0.85
gs232a_rot_get_levelFunction · 0.85
gs232a_rot_set_levelFunction · 0.85
easycomm_rot_get_levelFunction · 0.85
easycomm_rot_set_levelFunction · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected