set the callback for ptt events
|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 ptt events, to be called when in transceive mode.
- 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:
Definition at line 467 of file event.c.
References callbacks, rig_callbacks::ptt_arg, rig_callbacks::ptt_event, RIG_EINVAL, and RIG_OK.