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

Function rig_strmtype

src/misc.c:1783–1803  ·  view source on GitHub ↗

* \brief Convert enum RIG_MTYPE_... to alpha string * \param mtype RIG_MTYPE_... * \return alpha string * * \sa chan_type_t() */

Source from the content-addressed store, hash-verified

1781 * \sa chan_type_t()
1782 */
1783const char *HAMLIB_API rig_strmtype(chan_type_t mtype)
1784{
1785 int i;
1786
1787 rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
1788
1789 if (mtype == RIG_MTYPE_NONE)
1790 {
1791 return "";
1792 }
1793
1794 for (i = 0; mtype_str[i].str[0] != '\0'; i++)
1795 {
1796 if (mtype == mtype_str[i].mtype)
1797 {
1798 return mtype_str[i].str;
1799 }
1800 }
1801
1802 return "";
1803}
1804
1805static const struct
1806{

Callers 3

dumpcapsFunction · 0.85
dump_xml_chanFunction · 0.85
dumpstateFunction · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected