Table of Contents Index NMS Glossary Previous Page Next Page (Page 9 of 29 in this chapter) Version


swiConfigStreamSpeed

Description

Configures the speed of one or more streams of the H.100 bus.

Prototype

DWORD swiConfigStreamSpeed ( SWIHD swihd,
DWORD
speed,
DWORD
streams[],
unsigned
count)

swihd Handle returned by swiOpenSwitch.

speed Specifies in millions of bits per second the capacity of one or more streams. Refer to the Details section for acceptable values.

streams Array of one or more streams that specify the H.100 streams to be configured to the specified speed.

count Number of streams to be configured.

Return Values

Events

Details

This function configures the speed of one or more streams of the H.100 bus. This command is specific to MVIP-95. Calling this function on an MVIP-90 driver will return CTAERR_FUNCTION_NOT_AVAIL.

Acceptable values for speed are:

MVIP95_2MBPS_STREAM_SPEED
MVIP95_4MBPS_STREAM_SPEED
MVIP95_8MBPS_STREAM_SPEED

For an AG Quad T board, the streams work in groups, each group having four streams. These streams should be in the form of n, n+1, n+2, n+3 while n is greater than or equal to 0. Therefore, count should be a multiple of four.

Refer to Section 6.2, Stream Speed Configuration for more information.

If CTAERR_DRIVER_ERROR is returned, call swiGetLastError to retrieve the MVIP device error code.

See Also

swiGetLastError, swiGetStreamsBySpeed

Example


void myConfigHMVIPtoMVIP90(SWIHD hd, DWORD streams[], unsigned count)
{
/* Configure H.100 streams to be compatible with MVIP-90 streams */
swiConfigStreamSpeed(hd, MVIP95_2MBPS_STREAM_SPEED, streams, count);
}


Table of Contents Index NMS Glossary Previous Page Next Page (Page 9 of 29 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.