Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

setting_t HAMLIB_API rig_has_get_level ( RIG rig,
setting_t  level 

check retrieval ability of level settings

rig The rig handle
level The level settings
Checks if a rig is capable of *getting* a level setting. Since the 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();

a bit map of supported level settings that can be retrieved, otherwise 0 if none supported.
See also:
rig_has_set_level(), rig_get_level()

Definition at line 247 of file settings.c.

References caps, rig_state::has_get_level, and state.

Referenced by rig_get_level().

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

      return (rig->state.has_get_level & level);

Generated by  Doxygen 1.6.0   Back to index