Project

General

Profile

Statistics
| Revision:

root / trunk / docs / libwireless / sensor__matrix_8h-source.html @ 242

History | View | Annotate | Download (5.96 KB)

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>libwireless: sensor_matrix.h Source File</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
</head><body>
7
<!-- Generated by Doxygen 1.5.3 -->
8
<div class="tabs">
9
  <ul>
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11
    <li><a href="modules.html"><span>Modules</span></a></li>
12
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
13
    <li class="current"><a href="files.html"><span>Files</span></a></li>
14
  </ul>
15
</div>
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 
17
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef SENSOR_MATRIX_H</span>
18
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define SENSOR_MATRIX_H</span>
19
<a name="l00037"></a>00037 <span class="preprocessor"></span>
20
<a name="l00038"></a>00038 
21
<a name="l00054"></a><a class="code" href="structSensorMatrix.html">00054</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
22
<a name="l00055"></a>00055 {
23
<a name="l00059"></a><a class="code" href="structSensorMatrix.html#0e5b475c074fee8b4a88f05357b310bb">00059</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size;
24
<a name="l00064"></a><a class="code" href="structSensorMatrix.html#447a6b27943ac53530de1eb44db3b5e6">00064</a>         <span class="keywordtype">int</span>** matrix;
25
<a name="l00069"></a><a class="code" href="structSensorMatrix.html#9596130da4ab9251db7c0df33b8053d2">00069</a>         <span class="keywordtype">int</span>* joined;
26
<a name="l00073"></a><a class="code" href="structSensorMatrix.html#888d68ace5ba04bfc741241718bc297c">00073</a>         <span class="keywordtype">int</span> numJoined;
27
<a name="l00074"></a>00074 } <a class="code" href="structSensorMatrix.html">SensorMatrix</a>;
28
<a name="l00075"></a>00075 
29
<a name="l00077"></a>00077 <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="l00079"></a>00079 <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="l00081"></a>00081 <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="l00083"></a>00083 <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="l00085"></a>00085 <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="l00087"></a>00087 <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="l00089"></a>00089 <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="l00091"></a>00091 <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="l00093"></a>00093 <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="l00095"></a>00095 <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);
39
<a name="l00096"></a>00096  <span class="comment">//end defgroup</span>
40
<a name="l00098"></a>00098 
41
<a name="l00099"></a>00099 
42
<a name="l00100"></a>00100 <span class="preprocessor">#endif</span>
43
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Nov 8 23:27:22 2007 for libwireless by&nbsp;
44
<a href="http://www.doxygen.org/index.html">
45
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
46
</body>
47
</html>