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

int HAMLIB_API rig_get_powerstat ( RIG rig,
powerstat_t status 

get the on/off status of the radio

rig The rig handle
status The locatation where to store the current status
Retrieve the status of 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, otherwise a negative value if an error occured (in which case, cause is set appropriately).
See also:

Definition at line 2461 of file rig.c.

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

      if (CHECK_RIG_ARG(rig) || !status)
            return -RIG_EINVAL;

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

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

Generated by  Doxygen 1.6.0   Back to index