Revision 241
Updated libdragonfly documentation.
sensor__matrix_8h-source.html | ||
---|---|---|
1 | 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
3 | 3 |
<title>libwireless: sensor_matrix.h Source File</title> |
4 | 4 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 | 5 |
<link href="tabs.css" rel="stylesheet" type="text/css"> |
6 | 6 |
</head><body> |
7 |
<!-- Generated by Doxygen 1.4.6 -->
|
|
7 |
<!-- Generated by Doxygen 1.5.3 -->
|
|
8 | 8 |
<div class="tabs"> |
9 | 9 |
<ul> |
10 | 10 |
<li><a href="index.html"><span>Main Page</span></a></li> |
11 | 11 |
<li><a href="modules.html"><span>Modules</span></a></li> |
12 | 12 |
<li><a href="annotated.html"><span>Data Structures</span></a></li> |
13 |
<li id="current"><a href="files.html"><span>Files</span></a></li> |
|
14 |
</ul></div> |
|
15 |
<div class="tabs"> |
|
16 |
<ul> |
|
17 |
<li><a href="files.html"><span>File List</span></a></li> |
|
18 |
<li><a href="globals.html"><span>Globals</span></a></li> |
|
19 |
</ul></div> |
|
13 |
<li class="current"><a href="files.html"><span>Files</span></a></li> |
|
14 |
</ul> |
|
15 |
</div> |
|
20 | 16 |
<h1>sensor_matrix.h</h1><a href="sensor__matrix_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
21 | 17 |
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef SENSOR_MATRIX_H</span> |
22 | 18 |
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define SENSOR_MATRIX_H</span> |
23 | 19 |
<a name="l00012"></a>00012 <span class="preprocessor"></span> |
24 | 20 |
<a name="l00013"></a>00013 |
25 | 21 |
<a name="l00029"></a><a class="code" href="structSensorMatrix.html">00029</a> <span class="keyword">typedef</span> <span class="keyword">struct</span> |
26 |
<a name="l00030"></a>00030 <span class="keyword"></span>{
|
|
22 |
<a name="l00030"></a>00030 { |
|
27 | 23 |
<a name="l00034"></a><a class="code" href="structSensorMatrix.html#0e5b475c074fee8b4a88f05357b310bb">00034</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size; |
28 | 24 |
<a name="l00039"></a><a class="code" href="structSensorMatrix.html#447a6b27943ac53530de1eb44db3b5e6">00039</a> <span class="keywordtype">int</span>** matrix; |
29 | 25 |
<a name="l00044"></a><a class="code" href="structSensorMatrix.html#9596130da4ab9251db7c0df33b8053d2">00044</a> <span class="keywordtype">int</span>* joined; |
30 | 26 |
<a name="l00048"></a><a class="code" href="structSensorMatrix.html#888d68ace5ba04bfc741241718bc297c">00048</a> <span class="keywordtype">int</span> numJoined; |
31 | 27 |
<a name="l00049"></a>00049 } <a class="code" href="structSensorMatrix.html">SensorMatrix</a>; |
32 | 28 |
<a name="l00050"></a>00050 |
33 |
<a name="l00052"></a>00052 <a class="code" href="structSensorMatrix.html">SensorMatrix</a>* <a class="code" href="group__sensormatrix.html#gdac971de8e0df3ed469c1e00b5d68ec3">sensor_matrix_create</a>(<span class="keywordtype">void</span>); |
|
34 |
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g6125c1926243c789c9a22c7b7ca915f7">sensor_matrix_destroy</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m); |
|
35 |
<a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g4a8cea8d7401802b8ef4f24768671cdb">sensor_matrix_add_robot</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span>); |
|
36 |
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g616455f4c0801504984cc7f7cf49d980">sensor_matrix_remove_robot</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span>); |
|
37 |
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g06977570b0c7b9628caeb5de012bbf22">sensor_matrix_set_reading</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> observer, <span class="keywordtype">int</span> robot, <span class="keywordtype">int</span> reading); |
|
38 |
<a name="l00062"></a>00062 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#gf8f7401b00608998b4cca34e3e5690b6">sensor_matrix_get_reading</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> observer, <span class="keywordtype">int</span> robot); |
|
39 |
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#ga2039902278b82d75157f5ce30ba24a3">sensor_matrix_set_in_ring</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> robot, <span class="keywordtype">int</span> in); |
|
40 |
<a name="l00066"></a>00066 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#g44d31428ed9c7a0c98e2ecfc74a55469">sensor_matrix_get_in_ring</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> robot); |
|
41 |
<a name="l00068"></a>00068 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#g1d799b72ee6274e5064e12e8dd17d493">sensor_matrix_get_size</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m); |
|
42 |
<a name="l00070"></a>00070 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#g48353450a17126cffa44bd894f087621">sensor_matrix_get_joined</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m); |
|
29 |
<a name="l00052"></a>00052 <a class="code" href="structSensorMatrix.html">SensorMatrix</a>* <a class="code" href="group__sensormatrix.html#gdac971de8e0df3ed469c1e00b5d68ec3" title="Create a sensor matrix.">sensor_matrix_create</a>(<span class="keywordtype">void</span>);
|
|
30 |
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g6125c1926243c789c9a22c7b7ca915f7" title="Destroy a sensor matrix.">sensor_matrix_destroy</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m);
|
|
31 |
<a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g4a8cea8d7401802b8ef4f24768671cdb" title="Add a robot to a sensor matrix.">sensor_matrix_add_robot</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span>);
|
|
32 |
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g616455f4c0801504984cc7f7cf49d980" title="Remove a robot from a sensor matrix.">sensor_matrix_remove_robot</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">id</span>);
|
|
33 |
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#g06977570b0c7b9628caeb5de012bbf22" title="Set a reading in a sensor matrix.">sensor_matrix_set_reading</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> observer, <span class="keywordtype">int</span> robot, <span class="keywordtype">int</span> reading);
|
|
34 |
<a name="l00062"></a>00062 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#gf8f7401b00608998b4cca34e3e5690b6" title="Get a reading in a sensor matrix.">sensor_matrix_get_reading</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> observer, <span class="keywordtype">int</span> robot);
|
|
35 |
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="group__sensormatrix.html#ga2039902278b82d75157f5ce30ba24a3" title="Set whether the robot is in the token ring.">sensor_matrix_set_in_ring</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> robot, <span class="keywordtype">int</span> in);
|
|
36 |
<a name="l00066"></a>00066 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#g44d31428ed9c7a0c98e2ecfc74a55469" title="Get whether the robot is in the sensor ring.">sensor_matrix_get_in_ring</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m, <span class="keywordtype">int</span> robot);
|
|
37 |
<a name="l00068"></a>00068 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#g1d799b72ee6274e5064e12e8dd17d493" title="Get the size of the sensor matrix.">sensor_matrix_get_size</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m);
|
|
38 |
<a name="l00070"></a>00070 <span class="keywordtype">int</span> <a class="code" href="group__sensormatrix.html#g48353450a17126cffa44bd894f087621" title="Get the number of robots which have joined the token ring.">sensor_matrix_get_joined</a>(<a class="code" href="structSensorMatrix.html">SensorMatrix</a>* m);
|
|
43 | 39 |
<a name="l00071"></a>00071 <span class="comment">//end defgroup</span> |
44 | 40 |
<a name="l00073"></a>00073 |
45 | 41 |
<a name="l00074"></a>00074 |
46 | 42 |
<a name="l00075"></a>00075 <span class="preprocessor">#endif</span> |
47 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Oct 31 17:54:43 2007 for libwireless by
|
|
43 |
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Nov 8 22:16:24 2007 for libwireless by
|
|
48 | 44 |
<a href="http://www.doxygen.org/index.html"> |
49 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
|
|
45 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
|
|
50 | 46 |
</body> |
51 | 47 |
</html> |
Also available in: Unified diff