Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

int HAMLIB_API rig_set_vfo_callback ( RIG rig,
vfo_cb_t  cb,
rig_ptr_t  arg 
)

set the callback for vfo events

Parameters:
rigThe rig handle
cbThe callback to install
argA Pointer to some private data to pass later on to the callback

Install a callback for vfo events, to be called when in transceive mode.

Returns:
RIG_OK if the operation has been sucessful, otherwise a negative value if an error occured (in which case, cause is set appropriately).
See also:
rig_set_trn()

Definition at line 486 of file event.c.

References callbacks, RIG_EINVAL, RIG_OK, rig_callbacks::vfo_arg, and rig_callbacks::vfo_event.

{
      if (CHECK_RIG_ARG(rig))
            return -RIG_EINVAL;

      rig->callbacks.vfo_event = cb;
      rig->callbacks.vfo_arg = arg;

      return RIG_OK;
}

Generated by  Doxygen 1.6.0   Back to index