* \brief Convert enum RIG_MTYPE_... to alpha string * \param mtype RIG_MTYPE_... * \return alpha string * * \sa chan_type_t() */
| 1781 | * \sa chan_type_t() |
| 1782 | */ |
| 1783 | const 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 | |
| 1805 | static const struct |
| 1806 | { |
no test coverage detected