Logo Search packages:      
Sourcecode: hamlib version File versions

int HAMLIB_API rot_reset ( ROT rot,
rot_reset_t  reset 

reset the rotator

rot The rot handle
reset The reset operation to perform
Resets the rotator.

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 626 of file rotator.c.

References rot::caps, and rot_caps::reset.

      const struct rot_caps *caps;

      if (CHECK_ROT_ARG(rot))
            return -RIG_EINVAL;

      caps = rot->caps;

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

      return caps->reset(rot, reset);

Generated by  Doxygen 1.6.0   Back to index