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

int HAMLIB_API rig_reset ( RIG rig,
reset_t  reset 
)

reset the radio

Parameters:
rig The rig handle
reset The reset operation to perform
Resets the radio. See RIG_RESET_NONE, RIG_RESET_SOFT and RIG_RESET_MCALL defines for the reset.

Returns:
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 2375 of file rig.c.

References rig::caps, and rig_caps::reset.

{
      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