User guide
August 2001 109
Configuring the E1 Environment
Example 6. CONFIG_CARRIER Sample Code (Continued)
IoctlResult = BrktDeviceIoControl (
BoardHandle,
CONFIG_CARRIER,
&Carrier, /* Buffer to driver */
sizeof(Carrier),
NULL,
0,
&BytesReturned,
NULL); /* Wait until I/O is complete */
if (!IoctlResult)
printf ("CONFIG_CARRIER failed: BrktGetLastError = %d\n",
BrktGetLastError (BoardHandle));
BrktCloseDevice(BoardHandle);
return(0);
}