| Table of contents |
BYTE dscInitBoard(BYTE boardtype, DSCCB* dsccb, DSCB* board);
| Name | Description |
|---|---|
| boardtype | The type of board to initialize; should be one of the valid board types listed in the Board Macros table. |
| dsccb | The hardware settings used to configure the given board |
The handle of the initialized board to be used in subsequent Universal Driver function calls
ERRPARAMS errparams;
DSCCB dsccb;
DSCB dscb;
memset(&dsccb, 0, sizeof(DSCCB));
dsccb.base_address = 0x300;
dsccb.int_level = 7;
if ((result = dscInitBoard(DSC_DMM32, &dsccb, &dscb)) != DE_NONE)
{
dscGetLastError(&errparams);
fprintf(stderr, "dscInitBoard failed: %s (%s)\n",
dscGetErrorString(result), errparams.errstring);
return result;
}
This page was last modified 11:23, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.