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

Function rig_has_set_level

src/settings.c:350–361  ·  view source on GitHub ↗

* \brief check settable ability of level settings * \param rig The rig handle * \param level The level settings * * Checks if a rig can *set* a level setting. * Since the \a level is an OR'ed bitwise argument, more than * one level can be check at the same time. * * EXAMPLE: if (rig_has_set_level(my_rig, RIG_LVL_RFPOWER)) crank_tx(); * * \return a bit map of supported level setting

Source from the content-addressed store, hash-verified

348 * \sa rig_has_get_level(), rig_set_level()
349 */
350setting_t HAMLIB_API rig_has_set_level(RIG *rig, setting_t level)
351{
352 // too verbose
353 //rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
354
355 if (!rig || !rig->caps)
356 {
357 return 0;
358 }
359
360 return (STATE(rig)->has_set_level & level);
361}
362
363
364/**

Callers 5

hasSetLevelMethod · 0.85
rig_set_levelFunction · 0.85
dump_chanFunction · 0.85
rigctl_parse.cFile · 0.85
dump_chanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected