* \brief reset the radio * \param rig The rig handle * \param reset The reset operation to perform * * Resets the radio. * See #RIG_RESET_NONE, #RIG_RESET_SOFT and #RIG_RESET_MCALL defines * for the \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). * */
| 7011 | * |
| 7012 | */ |
| 7013 | int HAMLIB_API rig_reset(RIG *rig, reset_t reset) |
| 7014 | { |
| 7015 | int retcode; |
| 7016 | |
| 7017 | if (CHECK_RIG_ARG(rig)) |
| 7018 | { |
| 7019 | rig_debug(RIG_DEBUG_ERR, "%s: rig or rig->caps is null\n", __func__); |
| 7020 | return -RIG_EINVAL; |
| 7021 | } |
| 7022 | |
| 7023 | ENTERFUNC; |
| 7024 | |
| 7025 | if (rig->caps->reset == NULL) |
| 7026 | { |
| 7027 | RETURNFUNC(-RIG_ENAVAIL); |
| 7028 | } |
| 7029 | |
| 7030 | retcode = rig->caps->reset(rig, reset); |
| 7031 | RETURNFUNC(retcode); |
| 7032 | } |
| 7033 | |
| 7034 | |
| 7035 | //! @cond Doxygen_Suppress |
no test coverage detected