1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<title>MIDevice</title>
8<link rel="stylesheet" href="../../css/nitro.css" type="text/css" />
9</head>
10<body>
11<h1>MIDevice <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></h1>
12<h2>Definition</h2>
13
14<dl>
15  <dd>
16  <pre><code>#include &lt;nitro/mi.h&gt;<br />
17typedef struct MIDevice
18{
19<span style="color:#008000">/* private: */</span>
20    void                   *userdata;
21    MIDeviceReadFunction    Read;
22    MIDeviceWriteFunction   Write;
23}
24MIDevice;</code></pre>
25  </dd>
26</dl>
27
28<h2>Description</h2>
29<p>
30This is an interface structure for wrapping device control.<br />You can use this structure when you want to write transparent control code for any device that has a linear address space.
31</p>
32<p>
33This is a utility feature designed to separate the device control component from the module design.
34</p>
35
36<h2>See Also</h2>
37<p><code><a href="MI_InitDevice.html">MI_InitDevice</a>, <a href="MI_ReadDevice.html">MI_ReadDevice</a> <a href="MI_WriteDevice.html">MI_WriteDevice</a><br /> <a href="MIDevice.html">MIDevice</a>, <a href="MIDeviceReadFunction.html">MIDeviceReadFunction</a>, <a href="MIDeviceWriteFunction.html">MIDeviceWriteFunction</a><br /></code></p>
38<h2>Revision History</h2>
39<p>
402007/05/09 Initial version.
41</p>
42<hr><p>CONFIDENTIAL</p></body>
43</html>
44