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

Function rot_stop

src/rotator.c:921–940  ·  view source on GitHub ↗

* \brief Stop the rotator. * * \param rot The #ROT handle. * * Stop the rotator. Command should be immediate. * * \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 stopped successfully. * \retval -RIG_EINVAL \a rot is NULL or inconsistent. * \retval -

Source from the content-addressed store, hash-verified

919 * \sa rot_move()
920 */
921int HAMLIB_API rot_stop(ROT *rot)
922{
923 const struct rot_caps *caps;
924
925 rot_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
926
927 if (CHECK_ROT_ARG(rot))
928 {
929 return -RIG_EINVAL;
930 }
931
932 caps = rot->caps;
933
934 if (caps->stop == NULL)
935 {
936 return -RIG_ENAVAIL;
937 }
938
939 return caps->stop(rot);
940}
941
942
943/**

Callers 2

stopMethod · 0.85
rotctl_parse.cFile · 0.85

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected