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

Function rig_has_set_func

src/settings.c:468–478  ·  view source on GitHub ↗

* \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

Source from the content-addressed store, hash-verified

466 * \sa rig_set_func(), rig_has_get_func()
467 */
468setting_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/**

Callers 4

hasSetFuncMethod · 0.85
rig_set_funcFunction · 0.85
mainFunction · 0.85
rigctl_parse.cFile · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by 1

mainFunction · 0.68