* \brief check availability of scanning functions * \param rig The rig handle * \param scan The scan op * * Checks if a rig is capable of performing a scan operation. * Since the \a scan parameter is an OR'ed bitmap argument, more than * one op can be checked at the same time. * * EXAMPLE: if (rig_has_scan(my_rig, RIG_SCAN_PRIO)) disp_SCANprio_btn(); * * \return a bit map of suppo
| 7225 | * \sa rig_scan() |
| 7226 | */ |
| 7227 | scan_t HAMLIB_API rig_has_scan(RIG *rig, scan_t scan) |
| 7228 | { |
| 7229 | int retcode; |
| 7230 | |
| 7231 | if (!rig || !rig->caps) |
| 7232 | { |
| 7233 | rig_debug(RIG_DEBUG_ERR, "%s: rig or rig->caps is NULL\n", __func__); |
| 7234 | return (0); |
| 7235 | } |
| 7236 | |
| 7237 | ENTERFUNC; |
| 7238 | |
| 7239 | retcode = rig->caps->scan_ops & scan; |
| 7240 | RETURNFUNC(retcode); |
| 7241 | } |
| 7242 | |
| 7243 | |
| 7244 | /** |