DscInitBoard

Universal Driver Documentation
Initializes and sets the hardware configuration for the given board. This function must be called once for each board before any other function call to that board.

Table of contents

Function Definition

BYTE dscInitBoard(BYTE boardtype, DSCCB* dsccb, DSCB* board);

Function Parameters

NameDescription
boardtypeThe type of board to initialize; should be one of the valid board types listed in the Board Macros table.
dsccbThe hardware settings used to configure the given board

Return Value

The handle of the initialized board to be used in subsequent Universal Driver function calls

Usage Example

    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.