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

Function amp_has_set_level

src/amp_settings.c:70–80  ·  view source on GitHub ↗

* \brief Check which level settings can be set. * * \param amp The #AMP handle. * \param level The level settings bitmap. * * Checks if an amplifier is capable of *setting* 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: * \code * if (amp_has_set_level(my_amp, AMP_LVL_PWR)) * my_disp_PWR();

Source from the content-addressed store, hash-verified

68 * \sa amp_has_set_level(), amp_set_level()
69 */
70setting_t HAMLIB_API amp_has_set_level(AMP *amp, setting_t level)
71{
72 rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
73
74 if (!amp || !amp->caps)
75 {
76 return 0;
77 }
78
79 return (AMPSTATE(amp)->has_set_level & level);
80}
81
82/**
83 * \brief Check which level settings can be queried.

Callers 1

ampctl_parse.cFile · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected