txswiConfigLocalTimeslot

Builds a swiConfigLocalTimeslot message to configure local stream and timeslot-specific attributes.

Prototype

U32 txswiConfigLocalTimeslot ( CPIPKT *pkt, SWI_LOCALTIMESLOT_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 timeslot-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 commands:

deviceid
(MVIP95_…)

Parameterid (TX_X_…)

Buffer

Description

X_COMMPROC_DEVICE

CONFIG_PORT

SWIX_LOCAL_TIMESLOT_CONFIG

Define a port.

X_COMMPROC_DEVICE

CONFIG_SPEED

SWIX_LOCAL_TIMESLOT_CONFIG

Set 56 Kb and 48 Kb.


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