txswiConfigLocalStream

Builds a swiConfigLocalStream message to control the board's T1/E1 trunks.

Prototype

U32 txswiConfigLocalStream ( CPIPKT *pkt, SWI_LOCALSTREAM_ARGS *args, void *buffer, unsigned size)

Argument

Description

pkt

Pointer to the CPI packet to be formatted into a TX SWI request message.

NULL = Return the byte length of the CPI packet required to send the request.

args

Pointer to local stream arguments. Refer to Details for more information.

buffer

Pointer to stream-specific information.

size

Size of buffer (in bytes).


Return values

Return value

Description

SUCCESS

If pkt is NULL, the size of the required CPI packet is returned.

If pkt is not NULL, 0 is returned to indicate a successful request, or an error code is returned if the request failed.

MVIP95_ERR_INVALID_PARAMETER

Invalid count.


Details

The following table lists the settings for the args parameter used to trigger the T1/E1 trunk commands:

deviceid (MVIP95_…)

Parameterid (TX_X_…)

Buffer

Description

E1_TRUNK_DEVICE

T1_TRUNK_DEVICE

X_J1_TRUNK_DEVICE

CONFIG_CARRIER

TxT1E1ConfigEx

Configure and enable a trunk line (as type indicated by deviceid).

X_FRAMER_DEVICE

CMD_CARRIER

TxT1E1Cmd

Perform a command on the T1/E1 carrier. Refer to the following command table.


The following table lists the CMD_CARRIER commands:

Command

Use this command to...

T1E1_X_CMD_ENABLE

Enable the framer.

T1E1_X_CMD_DISABLE

Disable the framer.

T1E1_X_CMD_RESYNC

Force framer resynchronization.

T1E1_X_CMD_AIS

Transmit or stop transmitting an alarm indication signal. Flags are:

T1E1_X_AIS_LINE

T1E1_X_AIS_SYS

T1E1_X_CMD_RA

Transmit or stop transmitting remote alarms. Flags are:

T1E1_X_RA_SEND

T1E1_X_CMD_LLBDOWN

Transmit or stop transmitting a line loopback deactivate code. Flags are:

T1E1_X_LLB_SEND

T1E1_X_LLB_FIXED

T1E1_X_LLB_UNFRAMED

llb_code

llb_bits

T1E1_X_CMD_LLBUP

Transmit or stop transmitting a line loopback activate code. Flags are:

T1E1_X_LLB_SEND

T1E1_X_LLB_FIXED

T1E1_X_LLB_UNFRAMED

llb_code

llb_bits

T1E1_X_CMD_LOOP

Place the entire framer in loop mode or exit loop mode. Flags are:

T1E1_X_LOOP_JITTER

T1E1_X_LOOP_AIS

T1E1_X_LOOP_TRANS

loop_mode

T1E1_X_CMD_CHANLOOP

Place a single framer channel in loop mode or disable channel loop mode. Flags are:

T1E1_X_CHANLOOP_OFF

chanloop_channel

T1E1_X_CMD_PRBS

Transmit a pseudo random bit sequence. Flags are:

T1E1_X_PRBS_SEND

T1E1_X_PRBS_INVERT

T1E1_X_PRBS_GEN20

T1E1_X_PRBS_FRAMED

T1E1_X_PRBS_MONITOR

T1E1_X_CMD_DEFECT

Insert single bit defects. Flags are:

T1E1_X_DEFECT_FAS

T1E1_X_DEFECT_MULTI

T1E1_X_DEFECT_CRC

T1E1_X_DEFECT_CAS

T1E1_X_DEFECT_PRBS

T1E1_X_DEFECT_BIPOLAR

T1E1_X_CMD_SIM

Initiate or stop alarm simulation, or advance to the next test. Flag is:

T1E1_X_STOP_SIM


For more information, refer to swiConfigLocalStream in the Switching Service Developer's Reference Manual.