MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / rot_reset

Function rot_reset

src/rotator.c:958–977  ·  view source on GitHub ↗

* \brief Reset the rotator. * * \param rot The #ROT handle. * \param reset The reset operation to perform * * Resets the rotator to a state determined by \a reset. * * \return RIG_OK if the operation has been successful, otherwise a **negative * value** if an error occurred (in which case, cause is set appropriately). * * \retval RIG_OK The rotator was reset successfully. * \retval -RIG

Source from the content-addressed store, hash-verified

956 * \retval -RIG_ENAVAIL rot_caps#reset() capability is not available.
957 */
958int HAMLIB_API rot_reset(ROT *rot, rot_reset_t reset)
959{
960 const struct rot_caps *caps;
961
962 rot_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
963
964 if (CHECK_ROT_ARG(rot))
965 {
966 return -RIG_EINVAL;
967 }
968
969 caps = rot->caps;
970
971 if (caps->reset == NULL)
972 {
973 return -RIG_ENAVAIL;
974 }
975
976 return caps->reset(rot, reset);
977}
978
979
980/**

Callers 2

resetMethod · 0.85
rotctl_parse.cFile · 0.85

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected