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

int HAMLIB_API rig_reset ( RIG rig,
reset_t  reset 

reset the radio

rigThe rig handle
resetThe reset operation to perform

Resets the radio. See RIG_RESET_NONE, RIG_RESET_SOFT and RIG_RESET_MCALL defines for the reset.

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

Definition at line 2460 of file rig.c.

References caps, RIG_EINVAL, and RIG_ENAVAIL.

      if (CHECK_RIG_ARG(rig))
            return -RIG_EINVAL;

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

      return rig->caps->reset(rig, reset);

Generated by  Doxygen 1.6.0   Back to index