<!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="http://docs.diamondsystems.com/favicon.ico">
<link rel="stylesheet" href="style/wikiprintable.css">
<script type="text/javascript" src="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="manual_DSCUD_Function_Reference.html#Error_Functions">1 Error Functions </A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Initialization_Functions">2 Initialization Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Miscellaneous_Functions">3 Miscellaneous Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#A/D_Functions">4 A/D Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#D/A_Functions">5 D/A Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Optoinput_Functions">6 Optoinput Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#DIO_Functions">7 DIO Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Relay_Functions">8 Relay Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#IR104_Functions">9 IR104 Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Counter_Functions">10 Counter Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#EMMDIO_Functions">11 EMMDIO Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Calibration_Functions">12 Calibration Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#User_Interrupt_Functions">13 User Interrupt Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Watchdog_Timer_Functions">14 Watchdog Timer Functions</A><BR>
</div>
<div style="margin-bottom:0px;">
<A CLASS="internal" HREF="manual_DSCUD_Function_Reference.html#Pulse_Width_Modulation_Functions">15 Pulse Width Modulation 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 addre
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Diamond板卡驱动程序开发手册 (226个子文件)
wikiprintable.css 638B
manual_DSCUD_Function_Reference.html 36KB
manual_AD_Interrupt_Mode_Reference.html 20KB
manual_Instructions_for_Linux.html 13KB
manual_Board-Specific_Information_for_Solo_Type_User_Interrupts.html 12KB
manual_Diamond-MM-32-AT.html 10KB
manual_Diamond-MM-16-AT.html 10KB
manual_Hercules-EBX.html 10KB
manual_Diamond-MM-AT.html 10KB
manual_Prometheus.html 9KB
manual_Table_of_Contents.html 9KB
manual_AD_Interrupt_Operations.html 8KB
manual_Diamond-MM-48-AT.html 8KB
manual_Diamond-MM.html 7KB
manual_Data_Type_Reference.html 7KB
manual_DscQMMMeasureFrequency.html 6KB
manual_Instructions_for_Solo_Type_User_Interrupts.html 6KB
manual_Zircon-MM.html 6KB
manual_Watchdog_Timer.html 6KB
manual_Checking_Interrupt_Operation_Status.html 6KB
manual_Main_Page.html 6KB
manual_Error_Codes.html 6KB
manual_DscQMMMeasurePeriod.html 6KB
manual_Example_Programs.html 6KB
manual_DSCQMMCMR.html 6KB
manual_Main+Page.html 5KB
manual_Instructions_for_After_and_Instead_Type_User_Interrupts.html 5KB
manual_DSCAIOINT.html 5KB
manual_User_Interrupt_Types.html 5KB
manual_Interrupt-Based_Operations.html 5KB
manual_Interrupt-Based_AD_Sample_or_Scan.html 5KB
manual_DscQMMCounterControl.html 5KB
manual_Onyx-MM.html 5KB
manual_Emerald-MM-DIO.html 5KB
manual_Performing_Digital_IO_Operations.html 5KB
manual_DscWatchdogEnable.html 5KB
manual_Board_Macros.html 5KB
manual_Ruby-MM.html 4KB
manual_Ruby-MM-1612.html 4KB
manual_Ruby-MM-416.html 4KB
manual_Instructions_for_QNX_6.html 4KB
manual_Calling_Universal_Driver_API_Functions.html 4KB
manual_Virtual_Test_Board.html 4KB
manual_DSCEMMDIO.html 4KB
manual_Application_Instructions.html 4KB
manual_Performing_an_AD_Scan.html 4KB
manual_Watchdog_Timer_Functions.html 4KB
manual_Interrupt-Based_DA_Conversion_Scan.html 4KB
manual_Performing_an_AD_Conversion.html 4KB
manual_DscDACodeToVoltage.html 4KB
manual_DscADCodeToVoltage.html 4KB
manual_DSCQMMMCC.html 4KB
manual_DSCQMMMMR.html 4KB
manual_Emerald-MM-8.html 4KB
manual_Quartz-MM.html 4KB
manual_DscInitBoard.html 4KB
manual_DscDIOSetConfig.html 4KB
manual_DscVoltageToADCode.html 4KB
manual_Analog_IO_Ranges.html 4KB
manual_DscVoltageToDACode.html 4KB
manual_Struct_DSCUSERINT.html 4KB
manual_Garnet-MM.html 4KB
manual_DSCADSETTINGS.html 4KB
manual_Detailed_Board_Information.html 4KB
manual_QMM_Macros.html 4KB
manual_Definitions_of_Constants.html 3KB
manual_DSCS.html 3KB
manual_DscSetSystemPriority.html 3KB
manual_Performing_a_DA_Autocalibration.html 3KB
manual_DscDIOSetBit.html 3KB
manual_DSCCB.html 3KB
manual_Common_Task_Reference.html 3KB
manual_DscDIOOutputBit.html 3KB
manual_DscWatchdogTrigger.html 3KB
manual_DscInit.html 3KB
manual_DscDIOClearBit.html 3KB
manual_Performing_an_AD_Autocalibration.html 3KB
manual_DscGetBoardMacro.html 3KB
manual_Compiling_with_Universal_Driver.html 3KB
manual_Error_Trapping.html 3KB
manual_Instructions_for_Windows_NT,_2000,_XP.html 3KB
manual_Instructions_for_Windows_95_and_98.html 3KB
manual_DSCQMMPWM.html 3KB
manual_DscGetTime.html 3KB
manual_Performing_a_DA_Conversion.html 3KB
manual_Performing_a_DA_Conversion_Scan.html 3KB
manual_DscGetErrorString.html 3KB
manual_DscADScanAvg.html 3KB
manual_DscCounterSetRate.html 3KB
manual_DscSetRelayMulti.html 3KB
manual_DscGetRelayMulti.html 3KB
manual_DscQMMPulseWidthModulation.html 3KB
manual_DA_Calibration_Verification.html 3KB
manual_DSCOPTOSTATE.html 3KB
manual_Board_Function_Lists.html 3KB
manual_AD_Calibration_Verification.html 3KB
manual_Source_Code_Availability.html 3KB
manual_DSCDACALPARAMS.html 3KB
manual_DscADSetSettings.html 3KB
manual_DscADScan.html 3KB
共 226 条
- 1
- 2
- 3
资源评论
astrid_wang
- 粉丝: 5
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功