--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<title>ECRobot C++ API for LEGO MINDSTORMS NXT: device/AccelSensor.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body>
+<!-- Generated by Doxygen 1.6.1 -->
+<div class="navigation" id="top">
+ <div class="tabs">
+ <ul>
+ <li><a href="main.html"><span>Main Page</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ </ul>
+ </div>
+ <div class="tabs">
+ <ul>
+ <li><a href="files.html"><span>File List</span></a></li>
+ <li><a href="globals.html"><span>File Members</span></a></li>
+ </ul>
+ </div>
+<h1>device/AccelSensor.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
+<a name="l00002"></a>00002 <span class="comment">// AccelSensor.h</span>
+<a name="l00003"></a>00003 <span class="comment">//</span>
+<a name="l00004"></a>00004 <span class="comment">// Copyright 2009 by Takashi Chikamasa, Jon C. Martin and Robert W. Kramer</span>
+<a name="l00005"></a>00005 <span class="comment">//</span>
+<a name="l00006"></a>00006
+<a name="l00007"></a>00007 <span class="preprocessor">#ifndef ACCELSENSOR_H_</span>
+<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define ACCELSENSOR_H_</span>
+<a name="l00009"></a>00009 <span class="preprocessor"></span>
+<a name="l00010"></a>00010 <span class="preprocessor">#include "I2c.h"</span>
+<a name="l00011"></a>00011
+<a name="l00012"></a>00012
+<a name="l00013"></a>00013 <span class="keyword">namespace </span>ecrobot
+<a name="l00014"></a>00014 {
+<a name="l00053"></a><a class="code" href="classecrobot_1_1_accel_sensor.html">00053</a> <span class="keyword">class </span><a class="code" href="classecrobot_1_1_accel_sensor.html" title="HiTechnic Acceleration sensor (http://www.hitechnic.com/) class.">AccelSensor</a>
+<a name="l00054"></a>00054 {
+<a name="l00055"></a>00055 <span class="keyword">public</span>:
+<a name="l00065"></a>00065 <span class="keyword">explicit</span> <a class="code" href="classecrobot_1_1_accel_sensor.html#a716760ef1c3b6cc359b8632ece3aa647" title="Constructor (activate I2C).">AccelSensor</a>(<a class="code" href="_port_8h.html#a8d17f8fabb486d5815d626610983e82d" title="Enum for NXT sensor ports.">ePortS</a> port);
+<a name="l00066"></a>00066
+<a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="classecrobot_1_1_accel_sensor.html#a95f6870eb142de5bfcfc32da0ceeb1fb" title="Get acceleration in 3 axes(X/Y/Z).">getAccel</a>(S16 axes[3]) <span class="keyword">const</span>;
+<a name="l00075"></a>00075
+<a name="l00088"></a><a class="code" href="classecrobot_1_1_accel_sensor.html#ac365f55261cb672b11f27a3056339e63">00088</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <span class="keyword">get</span>(U8 data[6]) <span class="keyword">const</span> { mI2c.<a class="code" href="classecrobot_1_1_i2c.html#a56d816987079414475cb2103468cda4e" title="Receive data.">receive</a>(0x42, data, 6); }
+<a name="l00089"></a>00089
+<a name="l00090"></a>00090 <span class="keyword">private</span>:
+<a name="l00091"></a>00091 <a class="code" href="classecrobot_1_1_i2c.html" title="I2C device class.">I2c</a> mI2c; <span class="comment">// composite</span>
+<a name="l00092"></a>00092 };
+<a name="l00093"></a>00093 }
+<a name="l00094"></a>00094 <span class="preprocessor">#endif</span>
+</pre></div></div>
+<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Dec 29 11:38:01 2009 for ECRobot C++ API for LEGO MINDSTORMS NXT by
+<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
+</body>
+</html>