📄 manual_dscinitboard.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>DscInitBoard - Universal Driver Documentation</title><meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"><meta name="robots" content="index,follow"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="/dscud/style/wikiprintable.css"><script type="text/javascript" src="/dscud/style/wikibits.js"></script><style type='text/css'><!--a.new, #quickbar a.new { color: #CC2200; }#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }#article { margin-left: 152px; margin-right: 4px; }//--></style></head><body bgcolor='#FFFFFF'><div class='titlebox'><h1 class='pagetitle'>DscInitBoard</h1><span class='subtitle'>Universal Driver Documentation</span></div><div class='navbox'><a href="manual_Main_Page.html" class='printable' title ="Main Page">Main Page</a> || <a href="manual_Table_of_Contents.html" class='printable' title ="Table of Contents">Table_of_Contents</a> || <a href="http://www.diamondsystems.com/">Diamond Systems Website</a></div></div><div class='bodytext'><a name="top"></a>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.
<p>
<em>NOTE: The Athena data acquisition circuit is identical to the data acquisition implementation in the Prometheus CPU board. Version 5.8 of the Universal Driver supports the Athena via its support for the Prometheus DAQ. Athena customers should initialize the Universal Driver for the board using the board constant DSC_PROM. DSCUD 5.9 will include direct support for the Athena, so customers using 5.9 or later can initialize the board using the DSC_ATHENA constant instead.</em><p><p><table border="0" id="toc"><tr><td align="center"><b>Table of contents</b> <script type='text/javascript'>showTocToggle("show","hide")</script></td></tr><tr id='tocinside'><td align="left"><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Function_Definition">1 Function Definition</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Function_Parameters">2 Function Parameters</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Return_Value">3 Return Value</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Usage_Example">4 Usage Example</A><BR></div></td></tr></table><P><h2><a name="Function_Definition">Function Definition</a></h2>
<p>
BYTE dscInitBoard(BYTE boardtype, <a href="manual_DSCCB.html" class='printable' title ="DSCCB">DSCCB</a>* dsccb, <a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a>* board);
<p>
<h2><a name="Function_Parameters">Function Parameters</a></h2>
<p>
<table border=1><tr ><TH>Name</TH><TH>Description</TH></tr><tr ><TD>boardtype</TD><TD>The type of board to initialize; should be one of the valid board types listed in the <a href="manual_Board_Macros.html" class='printable' title ="Board Macros">Board Macros</a> table.</TD></tr><tr ><TD>dsccb</TD><TD>The hardware settings used to configure the given board</TD></tr></table><p>
<h2><a name="Return_Value">Return Value</a></h2>
<p>
The handle of the initialized board to be used in subsequent Universal Driver function calls
<p>
<h2><a name="Usage_Example">Usage Example</a></h2>
<p>
<pre>
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;
}
</pre>
<p></div><p><em> <br> This page was last modified 22:08, 2 Feb 2005.<br>Copyright (c) 2004 Diamond Systems. All Rights Reserved.</em><!-- Time since request: 0.15 secs. --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -