Logo Search packages:      
Sourcecode: hamlib version File versions

setting_t HAMLIB_API rig_has_set_level ( RIG rig,
setting_t  level 
)

check settable ability of level settings

Parameters:
rig The rig handle
level The level settings
Checks if a rig can *set* a level setting. Since the 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();

Returns:
a bit map of supported level settings that can be set, otherwise 0 if none supported.
See also:
rig_has_get_level(), rig_set_level()

Definition at line 274 of file settings.c.

References caps, rig_state::has_set_level, and state.

Referenced by rig_set_level().

{
      if (!rig || !rig->caps)
            return 0;

      return (rig->state.has_set_level & level);
}


Generated by  Doxygen 1.6.0   Back to index