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

Function rig_strfunc

src/misc.c:896–917  ·  view source on GitHub ↗

* \brief Convert enum RIG_FUNC_... to alpha string * \param func RIG_FUNC_... * \return alpha string * * \sa rig_func_e() */

Source from the content-addressed store, hash-verified

894 * \sa rig_func_e()
895 */
896const char *HAMLIB_API rig_strfunc(setting_t func)
897{
898 int i;
899
900 // too verbose to keep on unless debugging this in particular
901 //rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
902
903 if (func == RIG_FUNC_NONE)
904 {
905 return "";
906 }
907
908 for (i = 0; rig_func_str[i].str[0] != '\0'; i++)
909 {
910 if (func == rig_func_str[i].func)
911 {
912 return rig_func_str[i].str;
913 }
914 }
915
916 return "";
917}
918
919
920/**

Callers 15

dummy_set_funcFunction · 0.85
dummy_get_funcFunction · 0.85
quisk_set_funcFunction · 0.85
quisk_get_funcFunction · 0.85
netrigctl_set_funcFunction · 0.85
netrigctl_get_funcFunction · 0.85
flrig_set_funcFunction · 0.85
dttsp_set_funcFunction · 0.85
ra37xx_set_funcFunction · 0.85
ra37xx_get_funcFunction · 0.85
pcr_set_funcFunction · 0.85
icom_set_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected