TxSetOutputFdx

Makes and clears full duplex connections or continuously transmits a pattern on a switch output.

Prototype

S16 TxSetOutputFdx ( 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 trunks 1 - 4

84 - 87 for T1/E1 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 interfaces

0 through 31 for E1 interfaces

mode

Mode of operation. Refer to Details for valid values.

iStream

Input stream number. Must be:

0 through 31 for H.100/H.110

80 - 83 for T1/E1 trunks 1 - 4

84 - 87 for T1/E1 trunks 5 - 8 (CompactPCI TX only)

iTimeslot

Input timeslot number. Must be:

0 through 127 for H.100/H.110

0 through 23 for T1 or J1 interfaces

0 through 31 for E1 interfaces

message

Value transmitted on the stream and timeslot when the mode is PATTERN_MODE (not used for other modes).


Return values

Return value

Description

SUCCESS

 

MVIP_INVALID_HANDLE

Invalid handle.

MVIP_INVALID_MODE

Invalid mode. Refer to Details for valid values.

MVIP_INVALID_STREAM

Output or input stream number is out of range.

MVIP_INVALID_TIMESLOT

Output or input timeslot number is out of range.

MVIP_NO_RESOURCES

MVIP adapter is not present on the communications processor.


Details

The result of TxSetOutputFdx is determined by the mode parameter. The following table lists acceptable values for the mode parameter and the resulting actions:

Connection mode

Description

CONNECT_MODE

Establishes a connection between the specified source stream and timeslot and destination stream and timeslot. TxSetOutput sets up a half duplex connection in which data sampled from the specified source stream and timeslot is transmitted on the specified destination stream timeslot only. TxSetOutputFdx sets up a full duplex connection in which data sampled from the specified source stream and timeslot is transmitted on the specified destination stream timeslot. Data sampled for the destination stream and timeslot's corresponding input is transmitted on the specified source stream and timeslot's corresponding output.

DISABLE_MODE

Clears a connection by disabling (tri-stating) the output specified by the destination stream and timeslot. TxSetOutputFdx also disables the output side corresponding to the source stream and timeslot, effectively clearing both directions of a full duplex connection.

PATTERN_MODE

Forces a specified one-byte pattern to be repeatedly transmitted on the destination stream and timeslot (source stream and timeslot is ignored).


Refer to Making and breaking connections for more information.