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

Parameters:
rig The rig handle
trn The 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.

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

References caps, rig_caps::get_trn, 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;
}


Generated by  Doxygen 1.6.0   Back to index