Queries the current output status of a specified timeslot on a specified stream.
S16 TxQueryOutput ( S16 handle, STREAM_T oStream, TIMESLOT_T oTimeslot, MODE_T *mode, STREAM_T *iStream, TIMESLOT_T *iTimeslot, DATA_T *message)
Argument |
Description |
handle |
Handle returned from a previous call to TxMvipOpen for the desired board. |
oStream |
Output stream number. Must be: 0 through 31 for H.100/H.110 80 - 83 for T1/E1/J1 trunks 1 - 4 84 - 87 for T1/E1/J1 trunks 5 - 8 (CompactPCI TX only) |
oTimeslot |
Output timeslot number. Must be: 0 through 127 for H.100/H.110 0 through 23 for T1 (or J1) 0 through 31 for E1 |
mode |
Pointer to where the current mode of the specified output stream and timeslot is returned to the caller. |
iStream |
Pointer to where the input stream is returned to the caller when the mode is CONNECT_MODE (not used for other modes). |
iTimeslot |
Pointer to where the input timeslot is returned to the caller when the mode is CONNECT_MODE (not used for other modes). |
message |
Pointer to where the current value transmitted on the stream and timeslot is returned to the caller when the mode is PATTERN_MODE (not used for other modes). |
Return value |
Description |
SUCCESS |
|
MVIP_INVALID_HANDLE |
Invalid handle. |
MVIP_INVALID_STREAM |
Output or source stream number is out of range. |
MVIP_INVALID_TIMESLOT |
Output or source timeslot number is out of range. |
MVIP_NO_RESOURCES |
MVIP adapter is not present on the communications processor. |
The following table lists the valid values for the mode parameter:
Mode |
Description |
DISABLE_MODE |
Output is disabled (not connected). |
PATTERN_MODE |
A fixed pattern is continuously transmitted on this channel. |
CONNECT_MODE |
Output is connected to the source channel specified in the iStream and iTimeslot parameters. |