📄 manual_the_user_interrupt_function_interface.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>The User Interrupt Function Interface - 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'>The User Interrupt Function Interface</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'>These are the lines from DSCUD.H that provide the interface to user interrupt functions. For complete details see the function descriptions and the datatype descriptions.
<p>
<pre>// User Interrupt Modes
#define USER_INT_CANCEL 0
#define USER_INT_AFTER 1
#define USER_INT_INSTEAD 2
// User Interrupt Sources
#define USER_INT_SOURCE_INTERNAL 0
#define USER_INT_SOURCE_EXTERNAL 1
// Type Definitions
typedef void (*DSCUserInterruptFunction) (void* parameter);
// Structures
// The following structure is used by all type of user interrupts
typedef struct
{
DSCUserInterruptFunction func;
BYTE int_mode;
} DSCUSERINTFUNCTION;
// The following structure is used only by the solo type user interrupts
typedef struct
{
BYTE intsource;
FLOAT rate;
BYTE clksource;
BYTE counter;
DWORD int_type;
DSCUserInterruptFunction func;
} DSCUSERINT;
// Function Prototypes
BYTE DSCUDAPICALL dscSetUserInterruptFunction(DSCB board, DSCUSERINTFUNCTION * dscuserintfunction);
BYTE DSCUDAPICALL dscClearUserInterruptFunction(DSCB board);
BYTE DSCUDAPICALL dscUserInt(DSCB board, DSCUSERINT* dscuserint,
DSCUserInterruptFunction func);
</pre>
<p></div><p><em> <br> This page was last modified 19:06, 3 Feb 2004.<br>Copyright (c) 2004 Diamond Systems. All Rights Reserved.</em><!-- Time since request: 0.14 secs. --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -