Configures the speed of one or more streams of the H.100 bus.
DWORD swiConfigStreamSpeed ( SWIHD swihd, DWORD speed, DWORD streams[], unsigned count)
Argument |
Description |
swihd |
|
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 value |
Description |
SUCCESS |
|
CTAERR_DRIVER_ERROR |
Underlying driver retrieved an unrecognized error. Call swiGetLastError to retrieve the MVIP device error code. |
CTAERR_FUNCTION_NOT_AVAIL |
Underlying driver does not support the configuration of stream-specific characteristics of a local device. This is usually the case if the driver is MVIP-90. |
CTAERR_INVALID_HANDLE |
swihd is not a valid switch handle. |
CTAERR_SVR_COMM |
Communication error in the server environment. |
SWIERR_INVALID_SPEED |
Specified stream speed is not supported. |
SWIERR_INVALID_STREAM |
Stream speed configuration is not supported on one or more of the specified streams. |
swiConfigStreamSpeed 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 returns CTAERR_FUNCTION_NOT_AVAIL.
Acceptable values for speed are:
MVIP95_2MBPS_STREAM_SPEED
MVIP95_4MBPS_STREAM_SPEED
MVIP95_8MBPS_STREAM_SPEED
Refer to Configuring stream speed for more information.
If CTAERR_DRIVER_ERROR is returned, call swiGetLastError to retrieve the MVIP device error code.
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);
}