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

int HAMLIB_API rig_get_trn ( RIG rig,
int *  trn 

get the current transceive mode

rigThe rig handle
trnThe location where to store the current transceive mode

Retrieves the current status of the transceive mode, i.e. if radio sends new status automatically when some changes happened on the radio.

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 641 of file event.c.

References caps, RIG_EINVAL, RIG_OK, state, and rig_state::transceive.

Referenced by rig_open().

      if (CHECK_RIG_ARG(rig) || !trn)
            return -RIG_EINVAL;

      if (rig->caps->get_trn != NULL)
            return rig->caps->get_trn(rig, trn);

      *trn = rig->state.transceive;
      return RIG_OK;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index