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

int HAMLIB_API rig_set_powerstat ( RIG rig,
powerstat_t  status 

turn on/off the radio

rigThe rig handle
statusThe status to set to

turns on/off the radio. See RIG_POWER_ON, RIG_POWER_OFF and RIG_POWER_STANDBY defines for the status.

RIG_OK if the operation has been sucessful, ortherwise a negative value if an error occured (in which case, cause is set appropriately).
See also:

Definition at line 2408 of file rig.c.

References caps, RIG_EINVAL, and RIG_ENAVAIL.

      if (CHECK_RIG_ARG(rig))
            return -RIG_EINVAL;

      if (rig->caps->set_powerstat == NULL)
            return -RIG_ENAVAIL;

      return rig->caps->set_powerstat(rig, status);

Generated by  Doxygen 1.6.0   Back to index