* \brief check ability of radio functions * \param rig The rig handle * \param func The functions * * Checks if a rig supports a set of functions. * Since the \a func is an OR'ed bitwise argument, more than * one function can be checked at the same time. * * EXAMPLE: if (rig_has_set_func(my_rig,RIG_FUNC_FAGC)) disp_fagc_button(); * * \return a bit map of supported functions, * ot
| 466 | * \sa rig_set_func(), rig_has_get_func() |
| 467 | */ |
| 468 | setting_t HAMLIB_API rig_has_set_func(RIG *rig, setting_t func) |
| 469 | { |
| 470 | rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); |
| 471 | |
| 472 | if (!rig || !rig->caps) |
| 473 | { |
| 474 | return 0; |
| 475 | } |
| 476 | |
| 477 | return (STATE(rig)->has_set_func & func); |
| 478 | } |
| 479 | |
| 480 | |
| 481 | /** |