1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_09) on Tue Jan 08 20:46:01 GMT 2008 -->
7 RCXMotorMultiplexer (leJOS NXT API documentation)
10 <META NAME="keywords" CONTENT="lejos.nxt.RCXMotorMultiplexer class">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 parent.document.title="RCXMotorMultiplexer (leJOS NXT API documentation)";
25 <BODY BGCOLOR="white" onload="windowTitle();">
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36 <TR ALIGN="center" VALIGN="top">
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt"><B>PREV CLASS</B></A>
55 <A HREF="../../lejos/nxt/RCXPlexedMotorPort.html" title="class in lejos.nxt"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../index.html?lejos/nxt/RCXMotorMultiplexer.html" target="_top"><B>FRAMES</B></A>
58 <A HREF="RCXMotorMultiplexer.html" target="_top"><B>NO FRAMES</B></A>
59 <SCRIPT type="text/javascript">
62 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
89 Class RCXMotorMultiplexer</H2>
91 <A HREF="../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
92 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../lejos/nxt/I2CSensor.html" title="class in lejos.nxt">lejos.nxt.I2CSensor</A>
93 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>lejos.nxt.RCXMotorMultiplexer</B>
96 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../lejos/nxt/SensorConstants.html" title="interface in lejos.nxt">SensorConstants</A></DD>
100 <DT><PRE>public class <B>RCXMotorMultiplexer</B><DT>extends <A HREF="../../lejos/nxt/I2CSensor.html" title="class in lejos.nxt">I2CSensor</A></DL>
104 Supports the mindsensors RCX Motor Multiplexer
109 <DT><B>Author:</B></DT>
110 <DD>Lawrie Griffiths</DD>
115 <!-- =========== FIELD SUMMARY =========== -->
117 <A NAME="field_summary"><!-- --></A>
118 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121 <B>Field Summary</B></FONT></TH>
123 <TR BGCOLOR="white" CLASS="TableRowColor">
124 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125 <CODE> <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A></CODE></FONT></TD>
126 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#A">A</A></B></CODE>
129 </TD>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133 <CODE> <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A></CODE></FONT></TD>
134 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#B">B</A></B></CODE>
137 </TD>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141 <CODE> <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A></CODE></FONT></TD>
142 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#C">C</A></B></CODE>
145 </TD>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE> <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A></CODE></FONT></TD>
150 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#D">D</A></B></CODE>
153 </TD>
156 <A NAME="fields_inherited_from_class_lejos.nxt.SensorConstants"><!-- --></A>
157 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
158 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
159 <TH ALIGN="left"><B>Fields inherited from interface lejos.nxt.<A HREF="../../lejos/nxt/SensorConstants.html" title="interface in lejos.nxt">SensorConstants</A></B></TH>
161 <TR BGCOLOR="white" CLASS="TableRowColor">
162 <TD><CODE><A HREF="../../lejos/nxt/SensorConstants.html#MODE_ANGLESTEP">MODE_ANGLESTEP</A>, <A HREF="../../lejos/nxt/SensorConstants.html#MODE_BOOLEAN">MODE_BOOLEAN</A>, <A HREF="../../lejos/nxt/SensorConstants.html#MODE_CELSIUS">MODE_CELSIUS</A>, <A HREF="../../lejos/nxt/SensorConstants.html#MODE_FARENHEIT">MODE_FARENHEIT</A>, <A HREF="../../lejos/nxt/SensorConstants.html#MODE_PCTFULLSCALE">MODE_PCTFULLSCALE</A>, <A HREF="../../lejos/nxt/SensorConstants.html#MODE_PERIODCOUNTER">MODE_PERIODCOUNTER</A>, <A HREF="../../lejos/nxt/SensorConstants.html#MODE_RAW">MODE_RAW</A>, <A HREF="../../lejos/nxt/SensorConstants.html#MODE_TRANSITIONCNT">MODE_TRANSITIONCNT</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_ANGLE">TYPE_ANGLE</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_CUSTOM">TYPE_CUSTOM</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_LIGHT_ACTIVE">TYPE_LIGHT_ACTIVE</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_LIGHT_INACTIVE">TYPE_LIGHT_INACTIVE</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_LOWSPEED">TYPE_LOWSPEED</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_LOWSPEED_9V">TYPE_LOWSPEED_9V</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_NO_SENSOR">TYPE_NO_SENSOR</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_REFLECTION">TYPE_REFLECTION</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_SOUND_DB">TYPE_SOUND_DB</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_SOUND_DBA">TYPE_SOUND_DBA</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_SWITCH">TYPE_SWITCH</A>, <A HREF="../../lejos/nxt/SensorConstants.html#TYPE_TEMPERATURE">TYPE_TEMPERATURE</A></CODE></TD>
166 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
168 <A NAME="constructor_summary"><!-- --></A>
169 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
170 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
171 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
172 <B>Constructor Summary</B></FONT></TH>
174 <TR BGCOLOR="white" CLASS="TableRowColor">
175 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#RCXMotorMultiplexer(lejos.nxt.I2CPort)">RCXMotorMultiplexer</A></B>(<A HREF="../../lejos/nxt/I2CPort.html" title="interface in lejos.nxt">I2CPort</A> port)</CODE>
178 </TD>
182 <!-- ========== METHOD SUMMARY =========== -->
184 <A NAME="method_summary"><!-- --></A>
185 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
186 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
187 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
188 <B>Method Summary</B></FONT></TH>
190 <TR BGCOLOR="white" CLASS="TableRowColor">
191 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192 <CODE> int</CODE></FONT></TD>
193 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#getDirection(int)">getDirection</A></B>(int id)</CODE>
196 </TD>
198 <TR BGCOLOR="white" CLASS="TableRowColor">
199 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200 <CODE> int</CODE></FONT></TD>
201 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#getSpeed(int)">getSpeed</A></B>(int id)</CODE>
204 </TD>
206 <TR BGCOLOR="white" CLASS="TableRowColor">
207 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208 <CODE> void</CODE></FONT></TD>
209 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#setDirection(int, int)">setDirection</A></B>(int direction,
213 </TD>
215 <TR BGCOLOR="white" CLASS="TableRowColor">
216 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217 <CODE> void</CODE></FONT></TD>
218 <TD><CODE><B><A HREF="../../lejos/nxt/RCXMotorMultiplexer.html#setSpeed(int, int)">setSpeed</A></B>(int speed,
222 </TD>
225 <A NAME="methods_inherited_from_class_lejos.nxt.I2CSensor"><!-- --></A>
226 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
227 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
228 <TH ALIGN="left"><B>Methods inherited from class lejos.nxt.<A HREF="../../lejos/nxt/I2CSensor.html" title="class in lejos.nxt">I2CSensor</A></B></TH>
230 <TR BGCOLOR="white" CLASS="TableRowColor">
231 <TD><CODE><A HREF="../../lejos/nxt/I2CSensor.html#getData(int, byte[], int)">getData</A>, <A HREF="../../lejos/nxt/I2CSensor.html#getProductID()">getProductID</A>, <A HREF="../../lejos/nxt/I2CSensor.html#getSensorType()">getSensorType</A>, <A HREF="../../lejos/nxt/I2CSensor.html#getVersion()">getVersion</A>, <A HREF="../../lejos/nxt/I2CSensor.html#sendData(int, byte)">sendData</A>, <A HREF="../../lejos/nxt/I2CSensor.html#sendData(int, byte[], int)">sendData</A>, <A HREF="../../lejos/nxt/I2CSensor.html#setAddress(int)">setAddress</A></CODE></TD>
234 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
235 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
236 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
237 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH>
239 <TR BGCOLOR="white" CLASS="TableRowColor">
240 <TD><CODE><A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A></CODE></TD>
246 <!-- ============ FIELD DETAIL =========== -->
248 <A NAME="field_detail"><!-- --></A>
249 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
250 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
251 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
252 <B>Field Detail</B></FONT></TH>
256 <A NAME="A"><!-- --></A><H3>
259 public <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A> <B>A</B></PRE>
266 <A NAME="B"><!-- --></A><H3>
269 public <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A> <B>B</B></PRE>
276 <A NAME="C"><!-- --></A><H3>
279 public <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A> <B>C</B></PRE>
286 <A NAME="D"><!-- --></A><H3>
289 public <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt">RCXMotor</A> <B>D</B></PRE>
295 <!-- ========= CONSTRUCTOR DETAIL ======== -->
297 <A NAME="constructor_detail"><!-- --></A>
298 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
299 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
300 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
301 <B>Constructor Detail</B></FONT></TH>
305 <A NAME="RCXMotorMultiplexer(lejos.nxt.I2CPort)"><!-- --></A><H3>
306 RCXMotorMultiplexer</H3>
308 public <B>RCXMotorMultiplexer</B>(<A HREF="../../lejos/nxt/I2CPort.html" title="interface in lejos.nxt">I2CPort</A> port)</PRE>
312 <!-- ============ METHOD DETAIL ========== -->
314 <A NAME="method_detail"><!-- --></A>
315 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
316 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
317 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
318 <B>Method Detail</B></FONT></TH>
322 <A NAME="setSpeed(int, int)"><!-- --></A><H3>
325 public void <B>setSpeed</B>(int speed,
334 <A NAME="getSpeed(int)"><!-- --></A><H3>
337 public int <B>getSpeed</B>(int id)</PRE>
345 <A NAME="setDirection(int, int)"><!-- --></A><H3>
348 public void <B>setDirection</B>(int direction,
357 <A NAME="getDirection(int)"><!-- --></A><H3>
360 public int <B>getDirection</B>(int id)</PRE>
366 <!-- ========= END OF CLASS DATA ========= -->
370 <!-- ======= START OF BOTTOM NAVBAR ====== -->
371 <A NAME="navbar_bottom"><!-- --></A>
372 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
373 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
375 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
376 <A NAME="navbar_bottom_firstrow"><!-- --></A>
377 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
378 <TR ALIGN="center" VALIGN="top">
379 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
380 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
381 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
382 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
383 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
384 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
385 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
389 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
395 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
396 <A HREF="../../lejos/nxt/RCXMotor.html" title="class in lejos.nxt"><B>PREV CLASS</B></A>
397 <A HREF="../../lejos/nxt/RCXPlexedMotorPort.html" title="class in lejos.nxt"><B>NEXT CLASS</B></A></FONT></TD>
398 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
399 <A HREF="../../index.html?lejos/nxt/RCXMotorMultiplexer.html" target="_top"><B>FRAMES</B></A>
400 <A HREF="RCXMotorMultiplexer.html" target="_top"><B>NO FRAMES</B></A>
401 <SCRIPT type="text/javascript">
404 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
409 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
416 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
417 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
418 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
419 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
422 <A NAME="skip-navbar_bottom"></A>
423 <!-- ======== END OF BOTTOM NAVBAR ======= -->