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

Function rig_set_vfo_opt

src/rig.c:7911–7937  ·  view source on GitHub ↗

* \brief set the vfo option for rigctld * \param status 1=On, 0=Off * * Returns RIG_OK or -RIG_EPROTO; * */

Source from the content-addressed store, hash-verified

7909 *
7910 */
7911int HAMLIB_API rig_set_vfo_opt(RIG *rig, int status)
7912{
7913 int retcode;
7914
7915 if CHECK_RIG_ARG(rig)
7916 {
7917 rig_debug(RIG_DEBUG_ERR, "%s: rig or rig->caps is null\n", __func__);
7918 return -RIG_EINVAL;
7919 }
7920
7921 ENTERFUNC;
7922 ELAPSED1;
7923
7924 // Only netrigctl has this function
7925 // We allow the status to be set for rigctl use
7926 if (rig->caps->set_vfo_opt == NULL)
7927 {
7928 ELAPSED2;
7929 STATE(rig)->vfo_opt = status;
7930 //RETURNFUNC(-RIG_ENAVAIL);
7931 RETURNFUNC(RIG_OK);
7932 }
7933
7934 retcode = rig->caps->set_vfo_opt(rig, status);
7935 ELAPSED2;
7936 RETURNFUNC(retcode);
7937}
7938
7939/**
7940 * \brief get general information from the radio

Callers 2

rigctl_parse.cFile · 0.85
mainFunction · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected