Logo Search packages:      
Sourcecode: hamlib version File versions

int HAMLIB_API rig_set_powerstat ( RIG rig,
powerstat_t  status 
)

turn on/off the radio

Parameters:
rig The rig handle
status The status to set to
turns on/off the radio. See RIG_POWER_ON, RIG_POWER_OFF and RIG_POWER_STANDBY defines for the status.

Returns:
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:
rig_get_powerstat()

Definition at line 2435 of file rig.c.

References caps, RIG_EINVAL, RIG_ENAVAIL, and rig_caps::set_powerstat.

{
      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