First import
[xorg_rtime.git] / xorg-server-1.4 / hw / dmx / doc / html / usb-mouse_8c.html
blobea3767d1961d2a28ded5912f6217d2bda9e41448
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
5 <title>File Index</title>
6 <link href="doxygen.css" rel="stylesheet" type="text/css">
7 </head>
8 <body>
9 <!-- Generated by Doxygen 1.3.4 -->
10 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
11 <h1>usb-mouse.c File Reference</h1><code>#include "<a class="el" href="usb-private_8h-source.html">usb-private.h</a>"</code><br>
12 <code>#include "<a class="el" href="usb-mouse_8h-source.html">usb-mouse.h</a>"</code><br>
13 <table border=0 cellpadding=0 cellspacing=0>
14 <tr><td></td></tr>
15 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
16 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="usb-mouse_8c.html#a12">mouUSBRead</a> (DevicePtr pDev, MOTIONPROC motion, ENQUEUEPROC enqueue, CHECKPROC checkspecial, BLOCK block)</td></tr>
18 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="usb-mouse_8c.html#a13">mouUSBInit</a> (DevicePtr pDev)</td></tr>
20 <tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="usb-mouse_8c.html#a14">mouUSBOn</a> (DevicePtr pDev)</td></tr>
22 <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="usb-mouse_8c.html#a16">mouUSBGetInfo</a> (DevicePtr pDev, <a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info)</td></tr>
24 </table>
25 <hr><a name="_details"></a><h2>Detailed Description</h2>
26 This code implements a low-level device driver for a USB mouse.<hr><h2>Function Documentation</h2>
27 <a class="anchor" name="a16" doxytag="usb-mouse.c::mouUSBGetInfo" ></a><p>
28 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
29 <tr>
30 <td class="mdRow">
31 <table cellpadding="0" cellspacing="0" border="0">
32 <tr>
33 <td class="md" nowrap valign="top"> void mouUSBGetInfo </td>
34 <td class="md" valign="top">(&nbsp;</td>
35 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
36 <td class="mdname" nowrap> <em>pDev</em>, </td>
37 </tr>
38 <tr>
39 <td></td>
40 <td></td>
41 <td class="md" nowrap><a class="el" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a>&nbsp;</td>
42 <td class="mdname" nowrap> <em>info</em></td>
43 </tr>
44 <tr>
45 <td></td>
46 <td class="md">)&nbsp;</td>
47 <td class="md" colspan="2"></td>
48 </tr>
50 </table>
51 </td>
52 </tr>
53 </table>
54 <table cellspacing=5 cellpadding=0 border=0>
55 <tr>
56 <td>
57 &nbsp;
58 </td>
59 <td>
61 <p>
62 Fill the <em>info</em> structure with information needed to initialize <em>pDev</em>. </td>
63 </tr>
64 </table>
65 <a class="anchor" name="a13" doxytag="usb-mouse.c::mouUSBInit" ></a><p>
66 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
67 <tr>
68 <td class="mdRow">
69 <table cellpadding="0" cellspacing="0" border="0">
70 <tr>
71 <td class="md" nowrap valign="top"> void mouUSBInit </td>
72 <td class="md" valign="top">(&nbsp;</td>
73 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
74 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
75 <td class="md" valign="top">&nbsp;)&nbsp;</td>
76 <td class="md" nowrap></td>
77 </tr>
79 </table>
80 </td>
81 </tr>
82 </table>
83 <table cellspacing=5 cellpadding=0 border=0>
84 <tr>
85 <td>
86 &nbsp;
87 </td>
88 <td>
90 <p>
91 Initialize <em>pDev</em> using <a class="el" href="usb-common_8h.html#a6">usbInit</a>. </td>
92 </tr>
93 </table>
94 <a class="anchor" name="a14" doxytag="usb-mouse.c::mouUSBOn" ></a><p>
95 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
96 <tr>
97 <td class="mdRow">
98 <table cellpadding="0" cellspacing="0" border="0">
99 <tr>
100 <td class="md" nowrap valign="top"> int mouUSBOn </td>
101 <td class="md" valign="top">(&nbsp;</td>
102 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
103 <td class="mdname1" valign="top" nowrap> <em>pDev</em> </td>
104 <td class="md" valign="top">&nbsp;)&nbsp;</td>
105 <td class="md" nowrap></td>
106 </tr>
108 </table>
109 </td>
110 </tr>
111 </table>
112 <table cellspacing=5 cellpadding=0 border=0>
113 <tr>
114 <td>
115 &nbsp;
116 </td>
117 <td>
120 Turn <em>pDev</em> on (i.e., take input from <em>pDev</em>). </td>
121 </tr>
122 </table>
123 <a class="anchor" name="a12" doxytag="usb-mouse.c::mouUSBRead" ></a><p>
124 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
125 <tr>
126 <td class="mdRow">
127 <table cellpadding="0" cellspacing="0" border="0">
128 <tr>
129 <td class="md" nowrap valign="top"> void mouUSBRead </td>
130 <td class="md" valign="top">(&nbsp;</td>
131 <td class="md" nowrap valign="top">DevicePtr&nbsp;</td>
132 <td class="mdname" nowrap> <em>pDev</em>, </td>
133 </tr>
134 <tr>
135 <td></td>
136 <td></td>
137 <td class="md" nowrap>MOTIONPROC&nbsp;</td>
138 <td class="mdname" nowrap> <em>motion</em>, </td>
139 </tr>
140 <tr>
141 <td></td>
142 <td></td>
143 <td class="md" nowrap>ENQUEUEPROC&nbsp;</td>
144 <td class="mdname" nowrap> <em>enqueue</em>, </td>
145 </tr>
146 <tr>
147 <td></td>
148 <td></td>
149 <td class="md" nowrap>CHECKPROC&nbsp;</td>
150 <td class="mdname" nowrap> <em>checkspecial</em>, </td>
151 </tr>
152 <tr>
153 <td></td>
154 <td></td>
155 <td class="md" nowrap>BLOCK&nbsp;</td>
156 <td class="mdname" nowrap> <em>block</em></td>
157 </tr>
158 <tr>
159 <td></td>
160 <td class="md">)&nbsp;</td>
161 <td class="md" colspan="2"></td>
162 </tr>
164 </table>
165 </td>
166 </tr>
167 </table>
168 <table cellspacing=5 cellpadding=0 border=0>
169 <tr>
170 <td>
171 &nbsp;
172 </td>
173 <td>
176 Read the USB device using <a class="el" href="usb-common_8c.html#a21">usbRead</a>. </td>
177 </tr>
178 </table>
179 <hr>
180 <address>
181 <small>
182 Generated June 29, 2004 for <a
183 href="http://dmx.sourceforge.net">Distributed Multihead X</a> by
184 <a href="http://www.doxygen.org/index.html">doxygen</a>
185 1.3.4.
186 </small>
187 </addres>
188 </hr>
189 </body>
190 </html>