📄 manual_struct_dscuserintfunction.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 DSCUSERINTFUNCTION - 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 DSCUSERINTFUNCTION</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 information about the user interrupt function and execution time.
<p>
<h2><a name="Structure_Definition">Structure Definition</a></h2>
<p>
<pre> typedef struct {
</pre><p>
<pre> DSCUserInterruptFunction func;
BYTE int_mode;
DWORD int_type;
</pre><p>
<pre> } DSCUSERINTFUNCTION;
</pre><p>
<pre> typedef void (*DSCUserInterruptFunction) (void* parameter);
</pre><p>
<pre> // int_mode: user interrupt execution time choices
#define USER_INT_CANCEL 0
#define USER_INT_AFTER 1
#define USER_INT_INSTEAD 2
</pre><p>
<pre> // int_type: which interrupt type to attach to
#define INT_TYPE_AD 0x01
#define INT_TYPE_DA 0x02
#define INT_TYPE_DIOIN 0x04
#define INT_TYPE_USER 0x08
#define INT_TYPE_COUNTER 0x10
#define INT_TYPE_DIOOUT 0x20
#define INT_TYPE_OPTO 0x40
</pre><p>
<h2><a name="Structure_Members">Structure Members</a></h2>
<p>
<table border=1><tr ><TH>Name</TH><TH>Description</TH></tr><tr ><TD>func</TD><TD>Pointer to user interrupt function of type DSCUserInterruptFunction</TD></tr><tr ><TD>int_mode</TD><TD>Selects the execution time for the user interrupt function. Select from the choices in the list above. There is no "before" option.</TD></tr><tr ><TD>int_type</TD><TD>Selects the interrupt type to attach this function to (e.g. A/D interrupts, D/A interrupts, DIO interrupts, etc.)</TD></tr></table><p></div><p><em> <br> This page was last modified 15:43, 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 + -