Logo Search packages:      
Sourcecode: hamlib version File versions

int HAMLIB_API rig_set_dcd_callback ( RIG rig,
dcd_cb_t  cb,
rig_ptr_t  arg 
)

set the callback for dcd events

Parameters:
rig The rig handle
cb The callback to install
arg A Pointer to some private data to pass later on to the callback
Install a callback for dcd 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 493 of file event.c.

References callbacks, rig_callbacks::dcd_arg, rig_callbacks::dcd_event, RIG_EINVAL, and RIG_OK.

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

      rig->callbacks.dcd_event = cb;
      rig->callbacks.dcd_arg = arg;

      return RIG_OK;
}


Generated by  Doxygen 1.6.0   Back to index