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

Function rig_stragclevel

src/misc.c:1441–1459  ·  view source on GitHub ↗

* \brief Convert enum RIG_AGC_... to alpha string * \param level RIG_AGC_... * \return alpha string */

Source from the content-addressed store, hash-verified

1439 * \return alpha string
1440 */
1441const char *HAMLIB_API rig_stragclevel(enum agc_level_e level)
1442{
1443 int i;
1444
1445 if (level < 0)
1446 {
1447 return "";
1448 }
1449
1450 for (i = 0; rig_agc_level_str[i].str[0] != '\0'; i++)
1451 {
1452 if (level == rig_agc_level_str[i].level)
1453 {
1454 return rig_agc_level_str[i].str;
1455 }
1456 }
1457
1458 return "";
1459}
1460
1461/**
1462 * \brief Convert a enum agc_level_e to value

Callers 3

rig_sprintf_agc_levelsFunction · 0.85
dumpcapsFunction · 0.85
dumpstateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected