* \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
| 956 | * \retval -RIG_ENAVAIL rot_caps#reset() capability is not available. |
| 957 | */ |
| 958 | int 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 | /** |
no test coverage detected