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

📄 manual_struct_dscuserint.html

📁 Diamond公司Dscud通用驱动使用说明手册
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"        "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>Struct DSCUSERINT - 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'>Struct DSCUSERINT</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'>Structure containing configuration data for user interrupt operation.
<p>
<h2><a name="Structure_Definition">Structure Definition</a></h2>
<p>
typedef struct {
<pre>    BYTE intsource;
    FLOAT rate;
    BYTE clksource;
    BYTE counter;
    DWORD int_type;
    DSCUserInterruptFunction func;
</pre><p>
} DSCUSERINT;
<p>
<h2><a name="Structure_Members">Structure Members</a></h2>
<p>
<table border=1><tr ><TH>Name</TH><TH>Description</TH></tr><tr ><TD>intsource</TD><TD>This field indicates the source of the interrupts. You may select USER_INT_SOURCE_INTERNAL to use an on-board counter/timer, or USER_INT_SOURCE_EXTERNAL to use an external clock. Refer to each board's user manual for details on the options for counter/timer and external clock.</TD></tr><tr ><TD>rate</TD><TD>Required only when intsource = USER_INT_SOURCE_INTERNAL. If you select a non-zero value, the on-board counter/timer will be programmed to generate interrupts at this rate. If this value is set to 0 then the dscUserInt function will not program the board's counter/timer with a new value, and will assume that the counter has been preprogrammed. This is useful if you want to control the counter/timer rate yourself.</TD></tr><tr ><TD>counter</TD><TD>If you choose intsource = USER_INT_SOURCE_INTERNAL, you must specify which on-board counter you will be using to generate the interrupts. Each board has different valid options for clksource.</TD></tr><tr ><TD>clksource</TD><TD>Selects the source of the clock that drives the on-boardcounter-timer when intsource = USER_INT_SOURCE_INTERNAL.		On Diamond-MM-32: 0 = internal 10MHz, 1 = internal 10kHz,   2 = external.
		On all other boards: 0 = internal, 1 = external.
</TD></tr><tr ><TD>int_type</TD><TD>Returns the interrupt type that the driver attached the interrupt handler to.  This depends on which board you are using, but will generally be INT_TYPE_DIO or INT_TYPE_COUNTER.</TD></tr><tr ><TD>func</TD><TD>This is a reference pointer to the user interrupt function that was attached to the interrupt.  This is usually passed in as a parameter to the <a href="manual_DscUserInt.html" class='printable' title ="DscUserInt">dscUserInt</a>() function.</TD></tr></table><p></div><p><em> <br> This page was last modified 16:18, 12 Feb 2004.<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 + -