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

Function amp_set_powerstat

src/amplifier.c:907–922  ·  view source on GitHub ↗

* \brief Turn the amplifier On or Off or toggle the Standby or Operate * status. * * \param amp The #AMP handle * \param status The #powerstat_t setting. * * Turns the amplifier On or Off or toggles the Standby or Operate status. * See #RIG_POWER_ON, #RIG_POWER_OFF and #RIG_POWER_OPERATE, * #RIG_POWER_STANDBY for the value of \a status. * * \return RIG_OK if the operation was successful,

Source from the content-addressed store, hash-verified

905 * \sa amp_get_powerstat()
906 */
907int HAMLIB_API amp_set_powerstat(AMP *amp, powerstat_t status)
908{
909 amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
910
911 if (CHECK_AMP_ARG(amp))
912 {
913 return -RIG_EINVAL;
914 }
915
916 if (amp->caps->set_powerstat == NULL)
917 {
918 return -RIG_ENAVAIL;
919 }
920
921 return amp->caps->set_powerstat(amp, status);
922}
923
924
925/**

Callers 2

never_usedFunction · 0.85
ampctl_parse.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected