⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manual_dscud_function_reference.html

📁 Diamond公司Dscud通用驱动使用说明手册
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"        "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>DSCUD Function Reference - 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'>DSCUD Function Reference</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><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="#Error_Functions">1  Error Functions </A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Initialization_Functions">2 Initialization Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Miscellaneous_Functions">3 Miscellaneous Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#A/D_Functions">4 A/D Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#D/A_Functions">5 D/A Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Optoinput_Functions">6 Optoinput Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#DIO_Functions">7 DIO Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Relay_Functions">8 Relay Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#IR104_Functions">9 IR104 Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Counter_Functions">10 Counter Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#EMMDIO_Functions">11 EMMDIO Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Calibration_Functions">12 Calibration Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#User_Interrupt_Functions">13 User Interrupt Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Watchdog_Timer_Functions">14 Watchdog Timer Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Pulse_Width_Modulation_Functions">15 Pulse Width Modulation Functions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#D/A_Wave_Form_Generator_Functions">16 D/A Wave Form Generator Functions</A><BR></div></td></tr></table><P><h2><a name="Error_Functions"> Error Functions </a></h2>
<p>
<tt>BYTE <a href="manual_DscGetLastError.html" class='printable' title ="DscGetLastError">dscGetLastError</a>(<a href="manual_ERRPARAMS.html" class='printable' title ="ERRPARAMS">ERRPARAMS</a> errparams)<br></tt>
Returns the most recent error that occurred during a Universal Driver function call.
<p>
<tt>char* <a href="manual_DscGetErrorString.html" class='printable' title ="DscGetErrorString">dscGetErrorString</a>(BYTE error_code)<br></tt>
Returns the corresponding error string for the given error code.
<p>
<h2><a name="Initialization_Functions">Initialization Functions</a></h2>
<p>
<tt>BYTE <a href="manual_DscInit.html" class='printable' title ="DscInit">dscInit</a>(WORD version)<br></tt>
Initializes the Universal Driver. Must be called once at the beginning of each program.
<p>
<tt>BYTE <a href="manual_DscFree.html" class='printable' title ="DscFree">dscFree</a>(void)<br></tt>
Frees the system resources used by the universal driver. Must be called once at the end of each program. This function will automatically call <a href="manual_DscFreeBoard.html" class='printable' title ="DscFreeBoard">dscFreeBoard</a> for all initialized boards.
<p>
<tt>BYTE <a href="manual_DscInitBoard.html" class='printable' title ="DscInitBoard">dscInitBoard</a>(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)<br></tt>
Initializes and sets the hardware settings of the given board. Must be called once for each board before using that board.
<p>
<tt>BYTE <a href="manual_DscFreeBoard.html" class='printable' title ="DscFreeBoard">dscFreeBoard</a>(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board)<br></tt>
Frees the system resources used by the given board and disables any of the board's currently running interrupt operations. Must be called once for each board after finishing using that board. To free up all initialized boards call <a href="manual_DscFree.html" class='printable' title ="DscFree">dscFree</a> instead of this function.<p><h2><a name="Miscellaneous_Functions">Miscellaneous Functions</a></h2>
<p>
<tt>BYTE <a href="manual_DscGetTime.html" class='printable' title ="DscGetTime">dscGetTime</a>(DWORD *ms)<br></tt>
Get a millisecond precision clock time
<p>
<tt>BYTE <a href="manual_DscSleep.html" class='printable' title ="DscSleep">dscSleep</a>(DWORD ms)<br></tt>
Waits for a specified number of milliseconds.
<p>
<tt>BYTE <a href="manual_DscGetEEPROM.html" class='printable' title ="DscGetEEPROM">dscGetEEPROM</a>(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board, DWORD address, BYTE* data)<br></tt>
Reads data from the EEPROM at the specified address.
<p>
<tt>BYTE <a href="manual_DscSetEEPROM.html" class='printable' title ="DscSetEEPROM">dscSetEEPROM</a>(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board, DWORD address, BYTE data)<br></tt>
Writes data to the EEPROM at the specified address.
<p>
<tt>BYTE <a href="manual_DscGetStatus.html" class='printable' title ="DscGetStatus">dscGetStatus</a>(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board, <a href="manual_DSCS.html" class='printable' title ="DSCS">DSCS</a>* status)<br></tt>
Returns the current status of any interrupt operations.
<p>
<tt>BYTE <a href="manual_DscCancelOp.html" class='printable' title ="DscCancelOp">dscCancelOp</a>(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board)<br></tt>
Terminates any currently running interrupt operation.
<p>
<tt>BYTE <a href="manual_DscCancelOpType.html" class='printable' title ="DscCancelOpType">dscCancelOpType</a>(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board, DWORD int_type)<br></tt>
Terminates any currently running interrupt operation.
<p>
<tt>BYTE <a href="manual_DscInp.html" class='printable' title ="DscInp">dscInp</a>(WORD address, BYTE *value)<br></tt>
Direct I/O read a byte from the address
<p>
<tt>BYTE <a href="manual_DscInpw.html" class='printable' title ="DscInpw">dscInpw</a>(WORD address, WORD *value)<br></tt>
Direct I/O read a word from the address
<p>
<tt>BYTE <a href="manual_DscInpl.html" class='printable' title ="DscInpl">dscInpl</a>(WORD address, DWORD *value)<br></tt>
Direct I/O read a double word from the address
<p>
<tt>BYTE <a href="manual_DscInpws.html" class='printable' title ="DscInpws">dscInpws</a>(WORD address, WORD *value, WORD n)<br></tt>
Direct I/O read n words from the address
<p>
<tt>BYTE <a href="manual_DscOutp.html" class='printable' title ="DscOutp">dscOutp</a>(WORD address, BYTE value)<br></tt>
Direct I/O write a byte to the address
<p>
<tt>BYTE <a href="manual_DscOutp.html" class='printable' title ="DscOutp">dscOutp</a>(WORD address, WORD value)<br></tt>
Direct I/O write a word to the address
<p>
<tt>BYTE <a href="manual_DscOutpw.html" class='printable' title ="DscOutpw">dscOutpw</a>(WORD address, WORD value)<br></tt>
Direct I/O write a word to the address
<p>
<tt>BYTE <a href="manual_DscOutpl.html" class='printable' title ="DscOutpl">dscOutpl</a>(WORD address, DWORD value)<br></tt>
Direct I/O write a double word to the address
<p>
<tt>BYTE <a href="manual_DscOutpws.html" class='printable' title ="DscOutpws">dscOutpws</a>(WORD address, WORD *buffer, WORD n)<br></tt>
Direct I/O write n words to the address
<p>
<tt>BYTE <a href="manual_DscGetBoardMacro.html" class='printable' title ="DscGetBoardMacro">dscGetBoardMacro</a>(char* boardtype, BYTE* macro)<br></tt>
Returns the corresponding board macro for the given board type string.
<p>
<tt>BYTE <a href="manual_DscRegisterRead.html" class='printable' title ="DscRegisterRead">dscRegisterRead</a>(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board, WORD address, BYTE* data)<br></tt>
Reads a BYTE from an I/O port address.
<p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -