📄 manual_dscemmdio.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>DSCEMMDIO - 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'>DSCEMMDIO</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 to define the current configuration of an Emerald-MM-DIO board. This structure is used both as an input, to define the board's state, and as an output, to inquire about the board's state.
<p>
<h2><a name="Structure_Definition">Structure Definition</a></h2>
<p>
typedef struct {
<p>
<pre> BYTE DIOpins[6];
BOOL lock_port[6];
BYTE edge_polarity[3];
BYTE edge_detect[3];
BYTE edge_detect_clear[3];
BYTE edge_detect_int[3];
BOOL use_DIOpins;
BOOL use_lock_port;
BOOL use_edge_polarity;
BOOL use_edge_detect;
BYTE interrupt_status;
</pre><p>
} DSCEMMDIO;
<p>
<h2><a name="Structure_Members">Structure Members</a></h2>
<p>
<table border=1><tr ><TH>Name</TH><TH>Description</TH></tr><tr ><TD>DIOpins[6]</TD><TD>The values to write to the DIO pins, or values read from DIO pins.</TD></tr><tr ><TD>lock_port[6]</TD><TD>Values for the port lock control bits. A1 for any port prevents that port's output registers from being changed, while a 0 pemits them to be changed. See the Emerald-MM-DIO user manual for more details.</TD></tr><tr ><TD>edge_polarity[3]</TD><TD>Three 8-bit values to determine the polarity of each pin on ports 0 through 2. Each BYTE represents one port with 8 pins: 0 = negative edge and 1 = positive edge for each bit in that port. Each bit of these three bytes determines the polarity of the corresponding I/O bit.</TD></tr><tr ><TD>edge_detect[3]</TD><TD>3 byte values of either 0 or 1, corresponding to ports 0 - 2. A 1 for any port will enable edge detection for the entire port; a 0 will disable edge detection for the entire port.</TD></tr><tr ><TD>edge_detect_clear[3]</TD><TD>3 byte values of either 0 or 1, corresponding to ports 0 - 2. A 1 for any port will clear that port's 8 edge detect registers; a 0 will leave the 8 edge detect registers unchanged.</TD></tr><tr ><TD>edge_detect_int[3]</TD><TD>Read-only values specifying if an edge was detected on the pin since its port was last cleared. Each bit of each element corresponds to a digital input line on ports 0-2.</TD></tr><tr ><TD>use_DIOpins</TD><TD>0 = ignore DIOpins[ ] array, 1 = use DIOpins[ ] array</TD></tr><tr ><TD>use_lock_port</TD><TD>0 = ignore lock_port[ ] array, 1 = use lock_port[ ] array</TD></tr><tr ><TD>use_edge_polarity</TD><TD>0 = ignore edge_polarity[ ] array, 1 = use edge_polarity[ ] array</TD></tr><tr ><TD>use_edge_detect</TD><TD>0 = ignore edge_detect[ ] array, 1= use edge_detect[ ] array</TD></tr><tr ><TD>interrupt_status</TD><TD>Read-only value indicating the interrupt request status of ports 0-2; bits 2-0 are the status for interrupt requests 2-0, respectively; 1 = interrupt pending / edge detected; 0 = no interrupt pending / no edge detected</TD></tr></table><p></div><p><em> <br> This page was last modified 00:51, 30 Jan 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 + -