* \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,
| 905 | * \sa amp_get_powerstat() |
| 906 | */ |
| 907 | int 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 | /** |
no outgoing calls
no test coverage detected