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

Function rig_has_get_level

src/settings.c:320–331  ·  view source on GitHub ↗

* \brief check retrieval ability of level settings * \param rig The rig handle * \param level The level settings * * Checks if a rig is capable of *getting* a level setting. * Since the \a level is an OR'ed bitwise argument, more than * one level can be checked at the same time. * * EXAMPLE: if (rig_has_get_level(my_rig, RIG_LVL_STRENGTH)) disp_Smeter(); * * \return a bit map of su

Source from the content-addressed store, hash-verified

318 * \sa rig_has_set_level(), rig_get_level()
319 */
320setting_t HAMLIB_API rig_has_get_level(RIG *rig, setting_t level)
321{
322 // too verbose
323 //rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
324
325 if (!rig || !rig->caps)
326 {
327 return 0;
328 }
329
330 return (STATE(rig)->has_get_level & level);
331}
332
333
334/**

Callers 6

hasGetLevelMethod · 0.85
rig_get_levelFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
rigctl_parse.cFile · 0.85
dump_chanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected