User guide
August 2001 205
Connecting Boards in an H.100 bus
Example 13. MVIP95_CMD_CONFIG_STREAM_SPEED
Sample Code
#include “brktddm.h”
int main(int argc, char **argv)
{
BRKT_HANDLE BoardHandle;
BOOLEAN IoctlResult;
BRKT_SIZE_T BytesReturned;
struct MVIP95_CONFIG_STREAM_SPEED_PARMS Speed;
BoardHandle = BrktOpenDevice(BRKT_DEVICE_RDSP_BOARD, 0);
if (BoardHandle == BRKT_INVALID_HANDLE_VALUE)
return;
memset(&Speed, 0, sizeof(Speed));
Speed.size = sizeof(Speed);
Speed.speed = MVIP95_8MBPS_STREAM_SPEED;
Speed.stream[ 0 ] = 0;
/* Configure the speed of a group of streams on the CT bus */
IoctlResult = BrktDeviceIoControl(
BoardHandle,
MVIP95_CMD_CONFIG_STREAM_SPEED,
&Speed, /* Buffer to driver */
sizeof(Speed), /* Length of buffer */
NULL,
0,
&BytesReturned,
NULL); /* Wait until I/O complete */
if (!IoctlResult)
printf("MVIP95_CMD_CONFIG_STREAM_SPEED failed:"
"BrktGetLastError = %d\n",
BrktGetLastError (BoardHandle));
BrktCloseDevice (BoardHandle);
} /* main */