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

Function rig_reset

src/rig.c:7013–7032  ·  view source on GitHub ↗

* \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). * */

Source from the content-addressed store, hash-verified

7011 *
7012 */
7013int 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

Callers 2

resetMethod · 0.85
rigctl_parse.cFile · 0.85

Calls 2

rig_debugFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected