Revision 60
Updated wireless library to add different channels.
trunk/docs/libwireless/hierarchy.html | ||
---|---|---|
24 | 24 |
<li><a class="el" href="structQueue.html">Queue</a> |
25 | 25 |
<li><a class="el" href="structSensorMatrix.html">SensorMatrix</a> |
26 | 26 |
</ul> |
27 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
27 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
28 | 28 |
<a href="http://www.doxygen.org/index.html"> |
29 | 29 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
30 | 30 |
</body> |
trunk/docs/libwireless/wl__defs_8h-source.html | ||
---|---|---|
82 | 82 |
<a name="l00063"></a>00063 <span class="preprocessor"></span> |
83 | 83 |
<a name="l00064"></a>00064 <span class="preprocessor">#endif</span> |
84 | 84 |
<a name="l00065"></a>00065 <span class="preprocessor"></span> |
85 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
85 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
86 | 86 |
<a href="http://www.doxygen.org/index.html"> |
87 | 87 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
88 | 88 |
</body> |
trunk/docs/libwireless/queue_8h.html | ||
---|---|---|
54 | 54 |
<p> |
55 | 55 |
Implements a queue, a first in, first out data structure.<p> |
56 | 56 |
<dl compact><dt><b>Author:</b></dt><dd>Brian Coltin, Colony Project </dd></dl> |
57 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
57 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
58 | 58 |
<a href="http://www.doxygen.org/index.html"> |
59 | 59 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
60 | 60 |
</body> |
trunk/docs/libwireless/globals_defs.html | ||
---|---|---|
27 | 27 |
|
28 | 28 |
<p> |
29 | 29 |
<ul> |
30 |
<li>WL_DEFAULT_PAN |
|
31 |
: <a class="el" href="wireless_8h.html#76900bb8726583e3b9268d8b7acb1886">wireless.h</a><li>WL_MAX_PACKET_GROUPS |
|
30 |
<li>WL_MAX_PACKET_GROUPS |
|
32 | 31 |
: <a class="el" href="wireless_8h.html#f083cc95511287866eeb4337fdc75eeb">wireless.h</a><li>XBEE_BROADCAST |
33 |
: <a class="el" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">xbee.h</a><li>XBEE_OPTIONS_BROADCAST_ALL_PANS |
|
32 |
: <a class="el" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">xbee.h</a><li>XBEE_CHANNEL_DEFAULT |
|
33 |
: <a class="el" href="group__xbee.html#g35f8b9d8e01e788f1e29928cba29f215">xbee.h</a><li>XBEE_OPTIONS_BROADCAST_ALL_PANS |
|
34 | 34 |
: <a class="el" href="group__xbee.html#g57382f888360b5b19f0de3b6f1f7c5a3">xbee.h</a><li>XBEE_OPTIONS_DISABLE_RESPONSE |
35 | 35 |
: <a class="el" href="group__xbee.html#gcf9509013302590dca5ce3db63c64609">xbee.h</a><li>XBEE_OPTIONS_NONE |
36 | 36 |
: <a class="el" href="group__xbee.html#gbca7356c2b8183fd41b5ca9a82dd962b">xbee.h</a><li>XBEE_PAN_DEFAULT |
37 | 37 |
: <a class="el" href="group__xbee.html#ge6bb9bb274d6750f954762454807a5a7">xbee.h</a><li>XBEE_RX |
38 | 38 |
: <a class="el" href="group__xbee.html#gc2b1262a3a1eb4a9f7ead366af71c32c">xbee.h</a><li>XBEE_TX_STATUS |
39 | 39 |
: <a class="el" href="group__xbee.html#g7840d8b64c8bec12d8b8d32e845a638a">xbee.h</a></ul> |
40 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
40 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
41 | 41 |
<a href="http://www.doxygen.org/index.html"> |
42 | 42 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
43 | 43 |
</body> |
trunk/docs/libwireless/structPacketGroupHandler.html | ||
---|---|---|
174 | 174 |
</table> |
175 | 175 |
<hr>The documentation for this struct was generated from the following file:<ul> |
176 | 176 |
<li><a class="el" href="wireless_8h-source.html">wireless.h</a></ul> |
177 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
177 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
178 | 178 |
<a href="http://www.doxygen.org/index.html"> |
179 | 179 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
180 | 180 |
</body> |
trunk/docs/libwireless/structQueue.html | ||
---|---|---|
108 | 108 |
</table> |
109 | 109 |
<hr>The documentation for this struct was generated from the following file:<ul> |
110 | 110 |
<li><a class="el" href="queue_8h-source.html">queue.h</a></ul> |
111 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
111 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
112 | 112 |
<a href="http://www.doxygen.org/index.html"> |
113 | 113 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
114 | 114 |
</body> |
trunk/docs/libwireless/sensor__matrix_8h-source.html | ||
---|---|---|
38 | 38 |
<a name="l00066"></a>00066 <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); |
39 | 39 |
<a name="l00067"></a>00067 <span class="comment">//end defgroup</span> |
40 | 40 |
<a name="l00069"></a>00069 |
41 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
41 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
42 | 42 |
<a href="http://www.doxygen.org/index.html"> |
43 | 43 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
44 | 44 |
</body> |
trunk/docs/libwireless/wireless_8h-source.html | ||
---|---|---|
22 | 22 |
<a name="l00011"></a>00011 <span class="comment">//something about frame numbers for TX Status packets.</span> |
23 | 23 |
<a name="l00015"></a><a class="code" href="wireless_8h.html#f083cc95511287866eeb4337fdc75eeb">00015</a> <span class="comment"></span><span class="preprocessor">#define WL_MAX_PACKET_GROUPS 16</span> |
24 | 24 |
<a name="l00016"></a>00016 <span class="preprocessor"></span> |
25 |
<a name="l00019"></a><a class="code" href="wireless_8h.html#76900bb8726583e3b9268d8b7acb1886">00019</a> <span class="preprocessor">#define WL_DEFAULT_PAN 0x3331</span> |
|
26 |
<a name="l00020"></a>00020 <span class="preprocessor"></span> |
|
27 |
<a name="l00051"></a><a class="code" href="structPacketGroupHandler.html">00051</a> <span class="keyword">typedef</span> <span class="keyword">struct</span> |
|
28 |
<a name="l00052"></a>00052 <span class="keyword"></span>{ |
|
29 |
<a name="l00058"></a><a class="code" href="structPacketGroupHandler.html#f0849c643f1b1e257ccfe96110109950">00058</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> groupCode; |
|
30 |
<a name="l00059"></a>00059 |
|
31 |
<a name="l00064"></a>00064 void (*timeout_handler) (void); |
|
32 |
<a name="l00065"></a>00065 |
|
33 |
<a name="l00075"></a>00075 void (*handle_response) (<span class="keywordtype">int</span> frame, <span class="keywordtype">int</span> received); |
|
34 |
<a name="l00076"></a>00076 |
|
35 |
<a name="l00086"></a>00086 void (*handle_receive) (<span class="keywordtype">char</span> type, <span class="keywordtype">int</span> source, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* packet, |
|
36 |
<a name="l00087"></a>00087 <span class="keywordtype">int</span> length); |
|
37 |
<a name="l00088"></a>00088 |
|
38 |
<a name="l00092"></a>00092 void (*unregister) (void); |
|
39 |
<a name="l00093"></a>00093 |
|
40 |
<a name="l00094"></a>00094 } <a class="code" href="structPacketGroupHandler.html">PacketGroupHandler</a>; |
|
41 |
<a name="l00095"></a>00095 |
|
42 |
<a name="l00097"></a>00097 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g629ceefdf83847af356d90e2df27041c">wl_init</a>(<span class="keywordtype">void</span>); |
|
43 |
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g66075ff87a1c9f2c0d7938a26c7830f2">wl_terminate</a>(<span class="keywordtype">void</span>); |
|
44 |
<a name="l00101"></a>00101 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g5c1f1a0e20fc718e59edc29246afd703">wl_do</a>(<span class="keywordtype">void</span>); |
|
45 |
<a name="l00103"></a>00103 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g183343ed0594ec1c2b79bb4085d57107">wl_register_packet_group</a>(<a class="code" href="structPacketGroupHandler.html">PacketGroupHandler</a>* h); |
|
46 |
<a name="l00105"></a>00105 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#gcdbedf6465798abc7af3bf5fea3d4dd7">wl_unregister_packet_group</a>(<a class="code" href="structPacketGroupHandler.html">PacketGroupHandler</a>* h); |
|
47 |
<a name="l00107"></a>00107 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#ga7175b13dbfc0b11b341fbe0ad7c637c">wl_send_robot_to_robot_global_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type, |
|
25 |
<a name="l00047"></a><a class="code" href="structPacketGroupHandler.html">00047</a> <span class="keyword">typedef</span> <span class="keyword">struct</span> |
|
26 |
<a name="l00048"></a>00048 <span class="keyword"></span>{ |
|
27 |
<a name="l00054"></a><a class="code" href="structPacketGroupHandler.html#f0849c643f1b1e257ccfe96110109950">00054</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> groupCode; |
|
28 |
<a name="l00055"></a>00055 |
|
29 |
<a name="l00060"></a>00060 void (*timeout_handler) (void); |
|
30 |
<a name="l00061"></a>00061 |
|
31 |
<a name="l00071"></a>00071 void (*handle_response) (<span class="keywordtype">int</span> frame, <span class="keywordtype">int</span> received); |
|
32 |
<a name="l00072"></a>00072 |
|
33 |
<a name="l00082"></a>00082 void (*handle_receive) (<span class="keywordtype">char</span> type, <span class="keywordtype">int</span> source, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* packet, |
|
34 |
<a name="l00083"></a>00083 <span class="keywordtype">int</span> length); |
|
35 |
<a name="l00084"></a>00084 |
|
36 |
<a name="l00088"></a>00088 void (*unregister) (void); |
|
37 |
<a name="l00089"></a>00089 |
|
38 |
<a name="l00090"></a>00090 } <a class="code" href="structPacketGroupHandler.html">PacketGroupHandler</a>; |
|
39 |
<a name="l00091"></a>00091 |
|
40 |
<a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g629ceefdf83847af356d90e2df27041c">wl_init</a>(<span class="keywordtype">void</span>); |
|
41 |
<a name="l00095"></a>00095 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g66075ff87a1c9f2c0d7938a26c7830f2">wl_terminate</a>(<span class="keywordtype">void</span>); |
|
42 |
<a name="l00097"></a>00097 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g5c1f1a0e20fc718e59edc29246afd703">wl_do</a>(<span class="keywordtype">void</span>); |
|
43 |
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g183343ed0594ec1c2b79bb4085d57107">wl_register_packet_group</a>(<a class="code" href="structPacketGroupHandler.html">PacketGroupHandler</a>* h); |
|
44 |
<a name="l00101"></a>00101 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#gcdbedf6465798abc7af3bf5fea3d4dd7">wl_unregister_packet_group</a>(<a class="code" href="structPacketGroupHandler.html">PacketGroupHandler</a>* h); |
|
45 |
<a name="l00102"></a>00102 |
|
46 |
<a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#ga7175b13dbfc0b11b341fbe0ad7c637c">wl_send_robot_to_robot_global_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type, |
|
47 |
<a name="l00105"></a>00105 <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> len, <span class="keywordtype">int</span> dest, <span class="keywordtype">char</span> frame); |
|
48 |
<a name="l00107"></a>00107 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#gafaca74445d215cef2b2e0ae1a1c72ba">wl_send_robot_to_robot_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type, |
|
48 | 49 |
<a name="l00108"></a>00108 <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> len, <span class="keywordtype">int</span> dest, <span class="keywordtype">char</span> frame); |
49 |
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#gafaca74445d215cef2b2e0ae1a1c72ba">wl_send_robot_to_robot_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type,
|
|
50 |
<a name="l00111"></a>00111 <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> len, <span class="keywordtype">int</span> dest, <span class="keywordtype">char</span> frame);
|
|
51 |
<a name="l00113"></a>00113 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#gdd534c99c49d5207fe09f02af304c1ad">wl_send_global_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type,
|
|
50 |
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#gdd534c99c49d5207fe09f02af304c1ad">wl_send_global_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type,
|
|
51 |
<a name="l00111"></a>00111 <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> len, <span class="keywordtype">char</span> frame); |
|
52 |
<a name="l00113"></a>00113 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g0a1a0e4d885f0e0dde87160a16daa0aa">wl_send_pan_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type,
|
|
52 | 53 |
<a name="l00114"></a>00114 <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> len, <span class="keywordtype">char</span> frame); |
53 |
<a name="l00116"></a>00116 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g0a1a0e4d885f0e0dde87160a16daa0aa">wl_send_pan_packet</a>(<span class="keywordtype">char</span> group, <span class="keywordtype">char</span> type, |
|
54 |
<a name="l00117"></a>00117 <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> len, <span class="keywordtype">char</span> frame); |
|
55 |
<a name="l00119"></a>00119 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__wireless.html#g90cb41c855ac3da028e8f1278bd49f4f">wl_get_xbee_id</a>(<span class="keywordtype">void</span>); |
|
56 |
<a name="l00120"></a>00120 <span class="comment">// end defgroup</span> |
|
57 |
<a name="l00122"></a>00122 |
|
58 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by |
|
54 |
<a name="l00115"></a>00115 |
|
55 |
<a name="l00117"></a>00117 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g211ccf907dce4493813573e20264e542">wl_set_pan</a>(<span class="keywordtype">int</span> pan); |
|
56 |
<a name="l00119"></a>00119 <span class="keywordtype">int</span> <a class="code" href="group__wireless.html#g4e6b5c97d40a8e7557a1b4b90a7d34f7">wl_get_pan</a>(<span class="keywordtype">void</span>); |
|
57 |
<a name="l00121"></a>00121 <span class="keywordtype">void</span> <a class="code" href="group__wireless.html#g9aac809e57c9eb93a2905ed544c93aba">wl_set_channel</a>(<span class="keywordtype">int</span> channel); |
|
58 |
<a name="l00123"></a>00123 <span class="keywordtype">int</span> <a class="code" href="group__wireless.html#g2d65d3e35b193da4213755c4bf61ab6b">wl_get_channel</a>(<span class="keywordtype">void</span>); |
|
59 |
<a name="l00125"></a>00125 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__wireless.html#g90cb41c855ac3da028e8f1278bd49f4f">wl_get_xbee_id</a>(<span class="keywordtype">void</span>); |
|
60 |
<a name="l00126"></a>00126 <span class="comment">// end defgroup</span> |
|
61 |
<a name="l00128"></a>00128 |
|
62 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by |
|
59 | 63 |
<a href="http://www.doxygen.org/index.html"> |
60 | 64 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
61 | 65 |
</body> |
trunk/docs/libwireless/wireless_8h.html | ||
---|---|---|
29 | 29 |
<tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
30 | 30 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="wireless_8h.html#f083cc95511287866eeb4337fdc75eeb">WL_MAX_PACKET_GROUPS</a> 16</td></tr> |
31 | 31 |
|
32 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="wireless_8h.html#76900bb8726583e3b9268d8b7acb1886">WL_DEFAULT_PAN</a> 0x3331</td></tr> |
|
33 |
|
|
34 | 32 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
35 | 33 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g629ceefdf83847af356d90e2df27041c">wl_init</a> (void)</td></tr> |
36 | 34 |
|
... | ... | |
59 | 57 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g0a1a0e4d885f0e0dde87160a16daa0aa">wl_send_pan_packet</a> (char group, char type, char *data, int len, char frame)</td></tr> |
60 | 58 |
|
61 | 59 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Send a packet to all robots in our PAN. <a href="group__wireless.html#g0a1a0e4d885f0e0dde87160a16daa0aa"></a><br></td></tr> |
60 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g211ccf907dce4493813573e20264e542">wl_set_pan</a> (int pan)</td></tr> |
|
61 |
|
|
62 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the PAN we are using. <a href="group__wireless.html#g211ccf907dce4493813573e20264e542"></a><br></td></tr> |
|
63 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g4e6b5c97d40a8e7557a1b4b90a7d34f7">wl_get_pan</a> (void)</td></tr> |
|
64 |
|
|
65 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the PAN we are using. <a href="group__wireless.html#g4e6b5c97d40a8e7557a1b4b90a7d34f7"></a><br></td></tr> |
|
66 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g9aac809e57c9eb93a2905ed544c93aba">wl_set_channel</a> (int channel)</td></tr> |
|
67 |
|
|
68 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the channel we are using. <a href="group__wireless.html#g9aac809e57c9eb93a2905ed544c93aba"></a><br></td></tr> |
|
69 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g2d65d3e35b193da4213755c4bf61ab6b">wl_get_channel</a> (void)</td></tr> |
|
70 |
|
|
71 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the channel we are using. <a href="group__wireless.html#g2d65d3e35b193da4213755c4bf61ab6b"></a><br></td></tr> |
|
62 | 72 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g90cb41c855ac3da028e8f1278bd49f4f">wl_get_xbee_id</a> (void)</td></tr> |
63 | 73 |
|
64 | 74 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the 16-bit address of the XBee module. <a href="group__wireless.html#g90cb41c855ac3da028e8f1278bd49f4f"></a><br></td></tr> |
... | ... | |
69 | 79 |
Contains functions for the wireless library.<p> |
70 | 80 |
<dl compact><dt><b>Author:</b></dt><dd>Brian Coltin, Colony Project, CMU Robotics Club </dd></dl> |
71 | 81 |
<hr><h2>Define Documentation</h2> |
72 |
<a class="anchor" name="76900bb8726583e3b9268d8b7acb1886"></a><!-- doxytag: member="wireless.h::WL_DEFAULT_PAN" ref="76900bb8726583e3b9268d8b7acb1886" args="" --><p> |
|
73 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
74 |
<tr> |
|
75 |
<td class="mdRow"> |
|
76 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
77 |
<tr> |
|
78 |
<td class="md" nowrap valign="top">#define WL_DEFAULT_PAN 0x3331 </td> |
|
79 |
</tr> |
|
80 |
</table> |
|
81 |
</td> |
|
82 |
</tr> |
|
83 |
</table> |
|
84 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
85 |
<tr> |
|
86 |
<td> |
|
87 |
|
|
88 |
</td> |
|
89 |
<td> |
|
90 |
|
|
91 |
<p> |
|
92 |
The default PAN. </td> |
|
93 |
</tr> |
|
94 |
</table> |
|
95 | 82 |
<a class="anchor" name="f083cc95511287866eeb4337fdc75eeb"></a><!-- doxytag: member="wireless.h::WL_MAX_PACKET_GROUPS" ref="f083cc95511287866eeb4337fdc75eeb" args="" --><p> |
96 | 83 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
97 | 84 |
<tr> |
... | ... | |
115 | 102 |
The maximum number of packet groups. </td> |
116 | 103 |
</tr> |
117 | 104 |
</table> |
118 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
105 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
119 | 106 |
<a href="http://www.doxygen.org/index.html"> |
120 | 107 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
121 | 108 |
</body> |
trunk/docs/libwireless/wl__token__ring_8h-source.html | ||
---|---|---|
22 | 22 |
<a name="l00024"></a>00024 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#gde3dd682b6a757bab6ce4cbc9c518f8e">wl_token_ring_unregister</a>(<span class="keywordtype">void</span>); |
23 | 23 |
<a name="l00026"></a>00026 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#g0c407d5c215a97d58c67006bcc6e53ce">wl_token_ring_set_bom_functions</a>(<span class="keywordtype">void</span> (*on_function) (<span class="keywordtype">void</span>), |
24 | 24 |
<a name="l00027"></a>00027 <span class="keywordtype">void</span> (*off_function) (<span class="keywordtype">void</span>), <span class="keywordtype">int</span> (*max_bom_function) (<span class="keywordtype">void</span>)); |
25 |
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#gbdb1e2258d1c69086692d2d31e02fb27">wl_token_ring_join</a>(<span class="keywordtype">void</span>); |
|
26 |
<a name="l00031"></a>00031 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#g6c2dd8742e100f63d4fb002707d1e85a">wl_token_ring_leave</a>(<span class="keywordtype">void</span>); |
|
27 |
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#g23b4e34098b6fc32dc55ccab7fe17b5b">wl_token_request</a>(<span class="keywordtype">int</span> robot); |
|
28 |
<a name="l00034"></a>00034 |
|
29 |
<a name="l00036"></a>00036 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#g0c61bb8892aa5513706e00cd8ce5ca8b">wl_token_get_robots_in_ring</a>(<span class="keywordtype">void</span>); |
|
30 |
<a name="l00038"></a>00038 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#g14e005f0b9582eca7e3585f247c4cd72">wl_token_is_robot_in_ring</a>(<span class="keywordtype">int</span> robot); |
|
31 |
<a name="l00039"></a>00039 |
|
32 |
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#g37ab9fb00e9eef273b4d0fcda81a2620">wl_token_iterator_begin</a>(<span class="keywordtype">void</span>); |
|
33 |
<a name="l00043"></a>00043 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#gbd7dc40ee796a67e1160b2b2b8e7d02f">wl_token_iterator_has_next</a>(<span class="keywordtype">void</span>); |
|
34 |
<a name="l00045"></a>00045 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#gd9196324178877770d8ffc91d40893c3">wl_token_iterator_next</a>(<span class="keywordtype">void</span>); |
|
35 |
<a name="l00046"></a>00046 |
|
36 |
<a name="l00048"></a>00048 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#gb4afd4b8e034d22d415f3c4a42a652fc">wl_token_get_sensor_reading</a>(<span class="keywordtype">int</span> source, <span class="keywordtype">int</span> dest); |
|
37 |
<a name="l00050"></a>00050 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_get_my_sensor_reading</a>(<span class="keywordtype">int</span> dest); |
|
38 |
<a name="l00051"></a>00051 <span class="comment">//end token ring group</span> |
|
39 |
<a name="l00053"></a>00053 |
|
40 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by |
|
25 |
<a name="l00028"></a>00028 |
|
26 |
<a name="l00030"></a>00030 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#gbdb1e2258d1c69086692d2d31e02fb27">wl_token_ring_join</a>(<span class="keywordtype">void</span>); |
|
27 |
<a name="l00032"></a>00032 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#g6c2dd8742e100f63d4fb002707d1e85a">wl_token_ring_leave</a>(<span class="keywordtype">void</span>); |
|
28 |
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#g23b4e34098b6fc32dc55ccab7fe17b5b">wl_token_request</a>(<span class="keywordtype">int</span> robot); |
|
29 |
<a name="l00035"></a>00035 |
|
30 |
<a name="l00037"></a>00037 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#g0c61bb8892aa5513706e00cd8ce5ca8b">wl_token_get_robots_in_ring</a>(<span class="keywordtype">void</span>); |
|
31 |
<a name="l00039"></a>00039 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#g14e005f0b9582eca7e3585f247c4cd72">wl_token_is_robot_in_ring</a>(<span class="keywordtype">int</span> robot); |
|
32 |
<a name="l00040"></a>00040 |
|
33 |
<a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="group__tokenring.html#g37ab9fb00e9eef273b4d0fcda81a2620">wl_token_iterator_begin</a>(<span class="keywordtype">void</span>); |
|
34 |
<a name="l00044"></a>00044 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#gbd7dc40ee796a67e1160b2b2b8e7d02f">wl_token_iterator_has_next</a>(<span class="keywordtype">void</span>); |
|
35 |
<a name="l00046"></a>00046 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#gd9196324178877770d8ffc91d40893c3">wl_token_iterator_next</a>(<span class="keywordtype">void</span>); |
|
36 |
<a name="l00047"></a>00047 |
|
37 |
<a name="l00049"></a>00049 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#gb4afd4b8e034d22d415f3c4a42a652fc">wl_token_get_sensor_reading</a>(<span class="keywordtype">int</span> source, <span class="keywordtype">int</span> dest); |
|
38 |
<a name="l00051"></a>00051 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_get_my_sensor_reading</a>(<span class="keywordtype">int</span> dest); |
|
39 |
<a name="l00053"></a>00053 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#gf0d311d4feae71afc8bcb0b8c8e6ba57">wl_token_get_num_robots</a>(<span class="keywordtype">void</span>); |
|
40 |
<a name="l00055"></a>00055 <span class="keywordtype">int</span> <a class="code" href="group__tokenring.html#g5fe1508968d450a970b0d5417a06431d">wl_token_get_matrix_size</a>(<span class="keywordtype">void</span>); |
|
41 |
<a name="l00056"></a>00056 <span class="comment">//end token ring group</span> |
|
42 |
<a name="l00058"></a>00058 |
|
43 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by |
|
41 | 44 |
<a href="http://www.doxygen.org/index.html"> |
42 | 45 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
43 | 46 |
</body> |
trunk/docs/libwireless/group__xbee.html | ||
---|---|---|
19 | 19 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ge6bb9bb274d6750f954762454807a5a7"></a><!-- doxytag: member="xbee::XBEE_PAN_DEFAULT" ref="ge6bb9bb274d6750f954762454807a5a7" args="" --> |
20 | 20 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#ge6bb9bb274d6750f954762454807a5a7">XBEE_PAN_DEFAULT</a> 0xFFFF</td></tr> |
21 | 21 |
|
22 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Do not change the PAN. <br></td></tr> |
|
22 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unset PAN, uses XBee default. <br></td></tr> |
|
23 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g35f8b9d8e01e788f1e29928cba29f215"></a><!-- doxytag: member="xbee::XBEE_CHANNEL_DEFAULT" ref="g35f8b9d8e01e788f1e29928cba29f215" args="" --> |
|
24 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g35f8b9d8e01e788f1e29928cba29f215">XBEE_CHANNEL_DEFAULT</a> 0</td></tr> |
|
25 |
|
|
26 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unset channel, uses XBee default. <br></td></tr> |
|
23 | 27 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g93bbd21f7965e1697350f950cedff5c4"></a><!-- doxytag: member="xbee::XBEE_BROADCAST" ref="g93bbd21f7965e1697350f950cedff5c4" args="" --> |
24 | 28 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">XBEE_BROADCAST</a> 0xFFFF</td></tr> |
25 | 29 |
|
... | ... | |
45 | 49 |
|
46 | 50 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">A packet received from another XBee. <br></td></tr> |
47 | 51 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
48 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g2b86876f0e73bef20c4292810b15d4b9">xbee_lib_init</a> (int pan_id)</td></tr>
|
|
52 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g334a723b79eccec83b17e25cde2e10f1">xbee_lib_init</a> (void)</td></tr>
|
|
49 | 53 |
|
50 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the XBee library. <a href="#g2b86876f0e73bef20c4292810b15d4b9"></a><br></td></tr>
|
|
54 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the XBee library. <a href="#g334a723b79eccec83b17e25cde2e10f1"></a><br></td></tr>
|
|
51 | 55 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g9334ac71dca1ddd697b1a35a361ade6a">xbee_terminate</a> (void)</td></tr> |
52 | 56 |
|
53 | 57 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Uninitialize the XBee library. <a href="#g9334ac71dca1ddd697b1a35a361ade6a"></a><br></td></tr> |
... | ... | |
63 | 67 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g7755cd8db87703c9e9943153660b8052">xbee_get_pan_id</a> (void)</td></tr> |
64 | 68 |
|
65 | 69 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the XBee's PAN ID. <a href="#g7755cd8db87703c9e9943153660b8052"></a><br></td></tr> |
70 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g33f2b13a8f46ee08f14bce90160a5623">xbee_set_channel</a> (int channel)</td></tr> |
|
71 |
|
|
72 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the channel the XBee is currently using. <a href="#g33f2b13a8f46ee08f14bce90160a5623"></a><br></td></tr> |
|
73 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g133706db81f69ba0a3c169b7a3f42d2a">xbee_get_channel</a> (void)</td></tr> |
|
74 |
|
|
75 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the channel the XBee is currently using. <a href="#g133706db81f69ba0a3c169b7a3f42d2a"></a><br></td></tr> |
|
66 | 76 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee_get_address</a> (void)</td></tr> |
67 | 77 |
|
68 | 78 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the XBee's 16-bit address. <a href="#g7c53e8a8492494a61ca306875d633309"></a><br></td></tr> |
... | ... | |
103 | 113 |
</td> |
104 | 114 |
</tr> |
105 | 115 |
</table> |
116 |
<a class="anchor" name="g133706db81f69ba0a3c169b7a3f42d2a"></a><!-- doxytag: member="xbee.h::xbee_get_channel" ref="g133706db81f69ba0a3c169b7a3f42d2a" args="(void)" --><p> |
|
117 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
118 |
<tr> |
|
119 |
<td class="mdRow"> |
|
120 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
121 |
<tr> |
|
122 |
<td class="md" nowrap valign="top">int xbee_get_channel </td> |
|
123 |
<td class="md" valign="top">( </td> |
|
124 |
<td class="md" nowrap valign="top">void </td> |
|
125 |
<td class="mdname1" valign="top" nowrap> </td> |
|
126 |
<td class="md" valign="top"> ) </td> |
|
127 |
<td class="md" nowrap></td> |
|
128 |
</tr> |
|
129 |
</table> |
|
130 |
</td> |
|
131 |
</tr> |
|
132 |
</table> |
|
133 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
134 |
<tr> |
|
135 |
<td> |
|
136 |
|
|
137 |
</td> |
|
138 |
<td> |
|
139 |
|
|
140 |
<p> |
|
141 |
Get the channel the XBee is currently using. |
|
142 |
<p> |
|
143 |
Returns the channel which the XBee is currently using.<p> |
|
144 |
<dl compact><dt><b>Returns:</b></dt><dd>the channel the XBee is using</dd></dl> |
|
145 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__xbee.html#g33f2b13a8f46ee08f14bce90160a5623">xbee_set_channel</a> </dd></dl> |
|
146 |
</td> |
|
147 |
</tr> |
|
148 |
</table> |
|
106 | 149 |
<a class="anchor" name="g00fbdd9d849171588df736f8b608589d"></a><!-- doxytag: member="xbee.h::xbee_get_packet" ref="g00fbdd9d849171588df736f8b608589d" args="(unsigned char *packet)" --><p> |
107 | 150 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
108 | 151 |
<tr> |
... | ... | |
190 | 233 |
</td> |
191 | 234 |
</tr> |
192 | 235 |
</table> |
193 |
<a class="anchor" name="g2b86876f0e73bef20c4292810b15d4b9"></a><!-- doxytag: member="xbee.h::xbee_lib_init" ref="g2b86876f0e73bef20c4292810b15d4b9" args="(int pan_id)" --><p>
|
|
236 |
<a class="anchor" name="g334a723b79eccec83b17e25cde2e10f1"></a><!-- doxytag: member="xbee.h::xbee_lib_init" ref="g334a723b79eccec83b17e25cde2e10f1" args="(void)" --><p>
|
|
194 | 237 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
195 | 238 |
<tr> |
196 | 239 |
<td class="mdRow"> |
... | ... | |
198 | 241 |
<tr> |
199 | 242 |
<td class="md" nowrap valign="top">void xbee_lib_init </td> |
200 | 243 |
<td class="md" valign="top">( </td> |
201 |
<td class="md" nowrap valign="top">int </td>
|
|
202 |
<td class="mdname1" valign="top" nowrap> <em>pan_id</em> </td>
|
|
244 |
<td class="md" nowrap valign="top">void </td>
|
|
245 |
<td class="mdname1" valign="top" nowrap> </td> |
|
203 | 246 |
<td class="md" valign="top"> ) </td> |
204 | 247 |
<td class="md" nowrap></td> |
205 | 248 |
</tr> |
... | ... | |
293 | 336 |
</td> |
294 | 337 |
</tr> |
295 | 338 |
</table> |
339 |
<a class="anchor" name="g33f2b13a8f46ee08f14bce90160a5623"></a><!-- doxytag: member="xbee.h::xbee_set_channel" ref="g33f2b13a8f46ee08f14bce90160a5623" args="(int channel)" --><p> |
|
340 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
341 |
<tr> |
|
342 |
<td class="mdRow"> |
|
343 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
344 |
<tr> |
|
345 |
<td class="md" nowrap valign="top">void xbee_set_channel </td> |
|
346 |
<td class="md" valign="top">( </td> |
|
347 |
<td class="md" nowrap valign="top">int </td> |
|
348 |
<td class="mdname1" valign="top" nowrap> <em>channel</em> </td> |
|
349 |
<td class="md" valign="top"> ) </td> |
|
350 |
<td class="md" nowrap></td> |
|
351 |
</tr> |
|
352 |
</table> |
|
353 |
</td> |
|
354 |
</tr> |
|
355 |
</table> |
|
356 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
357 |
<tr> |
|
358 |
<td> |
|
359 |
|
|
360 |
</td> |
|
361 |
<td> |
|
362 |
|
|
363 |
<p> |
|
364 |
Set the channel the XBee is currently using. |
|
365 |
<p> |
|
366 |
Set the channel the XBee is using.<p> |
|
367 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
|
368 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
369 |
<tr><td valign="top"></td><td valign="top"><em>channel</em> </td><td>the channel the XBee will not use, between 0x0B and 0x1A</td></tr> |
|
370 |
</table> |
|
371 |
</dl> |
|
372 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__xbee.html#g133706db81f69ba0a3c169b7a3f42d2a">xbee_get_channel</a> </dd></dl> |
|
373 |
</td> |
|
374 |
</tr> |
|
375 |
</table> |
|
296 | 376 |
<a class="anchor" name="g832f07915e1ffa8afefcd378deead1cd"></a><!-- doxytag: member="xbee.h::xbee_set_pan_id" ref="g832f07915e1ffa8afefcd378deead1cd" args="(int id)" --><p> |
297 | 377 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
298 | 378 |
<tr> |
... | ... | |
359 | 439 |
Call when finished using the XBee library. This releases all sued resources. </td> |
360 | 440 |
</tr> |
361 | 441 |
</table> |
362 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
442 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
363 | 443 |
<a href="http://www.doxygen.org/index.html"> |
364 | 444 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
365 | 445 |
</body> |
trunk/docs/libwireless/wl__token__ring_8h.html | ||
---|---|---|
63 | 63 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_get_my_sensor_reading</a> (int dest)</td></tr> |
64 | 64 |
|
65 | 65 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the latest BOM reading between us and another robot. <a href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877"></a><br></td></tr> |
66 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gf0d311d4feae71afc8bcb0b8c8e6ba57"></a><!-- doxytag: member="wl_token_ring.h::wl_token_get_num_robots" ref="gf0d311d4feae71afc8bcb0b8c8e6ba57" args="(void)" --> |
|
67 |
int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tokenring.html#gf0d311d4feae71afc8bcb0b8c8e6ba57">wl_token_get_num_robots</a> (void)</td></tr> |
|
68 |
|
|
69 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of robots in the sensor matrix. <br></td></tr> |
|
70 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5fe1508968d450a970b0d5417a06431d"></a><!-- doxytag: member="wl_token_ring.h::wl_token_get_matrix_size" ref="g5fe1508968d450a970b0d5417a06431d" args="(void)" --> |
|
71 |
int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tokenring.html#g5fe1508968d450a970b0d5417a06431d">wl_token_get_matrix_size</a> (void)</td></tr> |
|
72 |
|
|
73 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of non-null elements in the sensor matrix. <br></td></tr> |
|
66 | 74 |
</table> |
67 | 75 |
<hr><a name="_details"></a><h2>Detailed Description</h2> |
68 | 76 |
Declarations for the token ring packet group. |
69 | 77 |
<p> |
70 | 78 |
Contains declarations for the token ring packet group.<p> |
71 | 79 |
<dl compact><dt><b>Author:</b></dt><dd>Brian Coltin, Colony Project, CMU Robotics Club </dd></dl> |
72 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
80 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
73 | 81 |
<a href="http://www.doxygen.org/index.html"> |
74 | 82 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
75 | 83 |
</body> |
trunk/docs/libwireless/globals_func.html | ||
---|---|---|
62 | 62 |
: <a class="el" href="group__wireless.html#g5c1f1a0e20fc718e59edc29246afd703">wireless.h</a><li>wl_error_register() |
63 | 63 |
: <a class="el" href="group__wlerror.html#g3217351e71b892a90ed3ba79ed36e354">wl_error_group.h</a><li>wl_error_send_string() |
64 | 64 |
: <a class="el" href="group__wlerror.html#g01c7382a758876fce52c18a3e6c81534">wl_error_group.h</a><li>wl_error_unregister() |
65 |
: <a class="el" href="group__wlerror.html#g4c737d93fefc9aa8d4f87c9296bfa8a0">wl_error_group.h</a><li>wl_get_xbee_id() |
|
65 |
: <a class="el" href="group__wlerror.html#g4c737d93fefc9aa8d4f87c9296bfa8a0">wl_error_group.h</a><li>wl_get_channel() |
|
66 |
: <a class="el" href="group__wireless.html#g2d65d3e35b193da4213755c4bf61ab6b">wireless.h</a><li>wl_get_pan() |
|
67 |
: <a class="el" href="group__wireless.html#g4e6b5c97d40a8e7557a1b4b90a7d34f7">wireless.h</a><li>wl_get_xbee_id() |
|
66 | 68 |
: <a class="el" href="group__wireless.html#g90cb41c855ac3da028e8f1278bd49f4f">wireless.h</a><li>wl_init() |
67 | 69 |
: <a class="el" href="group__wireless.html#g629ceefdf83847af356d90e2df27041c">wireless.h</a><li>wl_register_packet_group() |
68 | 70 |
: <a class="el" href="group__wireless.html#g183343ed0594ec1c2b79bb4085d57107">wireless.h</a><li>wl_send_global_packet() |
69 | 71 |
: <a class="el" href="group__wireless.html#gdd534c99c49d5207fe09f02af304c1ad">wireless.h</a><li>wl_send_pan_packet() |
70 | 72 |
: <a class="el" href="group__wireless.html#g0a1a0e4d885f0e0dde87160a16daa0aa">wireless.h</a><li>wl_send_robot_to_robot_global_packet() |
71 | 73 |
: <a class="el" href="group__wireless.html#ga7175b13dbfc0b11b341fbe0ad7c637c">wireless.h</a><li>wl_send_robot_to_robot_packet() |
72 |
: <a class="el" href="group__wireless.html#gafaca74445d215cef2b2e0ae1a1c72ba">wireless.h</a><li>wl_terminate() |
|
73 |
: <a class="el" href="group__wireless.html#g66075ff87a1c9f2c0d7938a26c7830f2">wireless.h</a><li>wl_token_get_my_sensor_reading() |
|
74 |
: <a class="el" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_ring.h</a><li>wl_token_get_robots_in_ring() |
|
74 |
: <a class="el" href="group__wireless.html#gafaca74445d215cef2b2e0ae1a1c72ba">wireless.h</a><li>wl_set_channel() |
|
75 |
: <a class="el" href="group__wireless.html#g9aac809e57c9eb93a2905ed544c93aba">wireless.h</a><li>wl_set_pan() |
|
76 |
: <a class="el" href="group__wireless.html#g211ccf907dce4493813573e20264e542">wireless.h</a><li>wl_terminate() |
|
77 |
: <a class="el" href="group__wireless.html#g66075ff87a1c9f2c0d7938a26c7830f2">wireless.h</a><li>wl_token_get_matrix_size() |
|
78 |
: <a class="el" href="group__tokenring.html#g5fe1508968d450a970b0d5417a06431d">wl_token_ring.h</a><li>wl_token_get_my_sensor_reading() |
|
79 |
: <a class="el" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_ring.h</a><li>wl_token_get_num_robots() |
|
80 |
: <a class="el" href="group__tokenring.html#gf0d311d4feae71afc8bcb0b8c8e6ba57">wl_token_ring.h</a><li>wl_token_get_robots_in_ring() |
|
75 | 81 |
: <a class="el" href="group__tokenring.html#g0c61bb8892aa5513706e00cd8ce5ca8b">wl_token_ring.h</a><li>wl_token_get_sensor_reading() |
76 | 82 |
: <a class="el" href="group__tokenring.html#gb4afd4b8e034d22d415f3c4a42a652fc">wl_token_ring.h</a><li>wl_token_is_robot_in_ring() |
77 | 83 |
: <a class="el" href="group__tokenring.html#g14e005f0b9582eca7e3585f247c4cd72">wl_token_ring.h</a><li>wl_token_iterator_begin() |
... | ... | |
87 | 93 |
: <a class="el" href="group__wireless.html#gcdbedf6465798abc7af3bf5fea3d4dd7">wireless.h</a></ul> |
88 | 94 |
<h3><a class="anchor" name="index_x">- x -</a></h3><ul> |
89 | 95 |
<li>xbee_get_address() |
90 |
: <a class="el" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee.h</a><li>xbee_get_packet() |
|
96 |
: <a class="el" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee.h</a><li>xbee_get_channel() |
|
97 |
: <a class="el" href="group__xbee.html#g133706db81f69ba0a3c169b7a3f42d2a">xbee.h</a><li>xbee_get_packet() |
|
91 | 98 |
: <a class="el" href="group__xbee.html#g00fbdd9d849171588df736f8b608589d">xbee.h</a><li>xbee_get_pan_id() |
92 | 99 |
: <a class="el" href="group__xbee.html#g7755cd8db87703c9e9943153660b8052">xbee.h</a><li>xbee_lib_init() |
93 |
: <a class="el" href="group__xbee.html#g2b86876f0e73bef20c4292810b15d4b9">xbee.h</a><li>xbee_send_packet() |
|
94 |
: <a class="el" href="group__xbee.html#g3a3b8ce040002ab2b1a0923950b2f3c4">xbee.h</a><li>xbee_set_pan_id() |
|
100 |
: <a class="el" href="group__xbee.html#g334a723b79eccec83b17e25cde2e10f1">xbee.h</a><li>xbee_send_packet() |
|
101 |
: <a class="el" href="group__xbee.html#g3a3b8ce040002ab2b1a0923950b2f3c4">xbee.h</a><li>xbee_set_channel() |
|
102 |
: <a class="el" href="group__xbee.html#g33f2b13a8f46ee08f14bce90160a5623">xbee.h</a><li>xbee_set_pan_id() |
|
95 | 103 |
: <a class="el" href="group__xbee.html#g832f07915e1ffa8afefcd378deead1cd">xbee.h</a><li>xbee_terminate() |
96 | 104 |
: <a class="el" href="group__xbee.html#g9334ac71dca1ddd697b1a35a361ade6a">xbee.h</a></ul> |
97 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
105 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
98 | 106 |
<a href="http://www.doxygen.org/index.html"> |
99 | 107 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
100 | 108 |
</body> |
trunk/docs/libwireless/structSensorMatrix.html | ||
---|---|---|
133 | 133 |
</table> |
134 | 134 |
<hr>The documentation for this struct was generated from the following file:<ul> |
135 | 135 |
<li><a class="el" href="sensor__matrix_8h-source.html">sensor_matrix.h</a></ul> |
136 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
136 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
137 | 137 |
<a href="http://www.doxygen.org/index.html"> |
138 | 138 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
139 | 139 |
</body> |
trunk/docs/libwireless/structnode__def.html | ||
---|---|---|
78 | 78 |
</table> |
79 | 79 |
<hr>The documentation for this struct was generated from the following file:<ul> |
80 | 80 |
<li>queue.c</ul> |
81 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
81 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
82 | 82 |
<a href="http://www.doxygen.org/index.html"> |
83 | 83 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
84 | 84 |
</body> |
trunk/docs/libwireless/functions.html | ||
---|---|---|
41 | 41 |
: <a class="el" href="structPacketGroupHandler.html#952b4b63982db13f55c02e17c55ab5ac">PacketGroupHandler</a><li>unregister |
42 | 42 |
: <a class="el" href="structPacketGroupHandler.html#c03247d5c07e97e35b1f557c0937b0eb">PacketGroupHandler</a><li>val |
43 | 43 |
: <a class="el" href="structnode__def.html#ee93810ffd33d69d464b1f6a33d9ffab">node_def</a></ul> |
44 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
44 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
45 | 45 |
<a href="http://www.doxygen.org/index.html"> |
46 | 46 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
47 | 47 |
</body> |
trunk/docs/libwireless/group__sensormatrix.html | ||
---|---|---|
504 | 504 |
</td> |
505 | 505 |
</tr> |
506 | 506 |
</table> |
507 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
507 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
508 | 508 |
<a href="http://www.doxygen.org/index.html"> |
509 | 509 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
510 | 510 |
</body> |
trunk/docs/libwireless/group__tokenring.html | ||
---|---|---|
55 | 55 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_get_my_sensor_reading</a> (int dest)</td></tr> |
56 | 56 |
|
57 | 57 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the latest BOM reading between us and another robot. <a href="#g1938c1d79dd9438dcd413d6d26372877"></a><br></td></tr> |
58 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gf0d311d4feae71afc8bcb0b8c8e6ba57"></a><!-- doxytag: member="tokenring::wl_token_get_num_robots" ref="gf0d311d4feae71afc8bcb0b8c8e6ba57" args="(void)" --> |
|
59 |
int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tokenring.html#gf0d311d4feae71afc8bcb0b8c8e6ba57">wl_token_get_num_robots</a> (void)</td></tr> |
|
60 |
|
|
61 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of robots in the sensor matrix. <br></td></tr> |
|
62 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5fe1508968d450a970b0d5417a06431d"></a><!-- doxytag: member="tokenring::wl_token_get_matrix_size" ref="g5fe1508968d450a970b0d5417a06431d" args="(void)" --> |
|
63 |
int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__tokenring.html#g5fe1508968d450a970b0d5417a06431d">wl_token_get_matrix_size</a> (void)</td></tr> |
|
64 |
|
|
65 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of non-null elements in the sensor matrix. <br></td></tr> |
|
58 | 66 |
</table> |
59 | 67 |
<hr><a name="_details"></a><h2>Detailed Description</h2> |
60 | 68 |
Wireless library token ring implementation. |
... | ... | |
520 | 528 |
Removes the packet group from the wireless library. </td> |
521 | 529 |
</tr> |
522 | 530 |
</table> |
523 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
531 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
524 | 532 |
<a href="http://www.doxygen.org/index.html"> |
525 | 533 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
526 | 534 |
</body> |
trunk/docs/libwireless/annotated.html | ||
---|---|---|
24 | 24 |
<tr><td class="indexkey"><a class="el" href="structQueue.html">Queue</a></td><td class="indexvalue"></td></tr> |
25 | 25 |
<tr><td class="indexkey"><a class="el" href="structSensorMatrix.html">SensorMatrix</a></td><td class="indexvalue"></td></tr> |
26 | 26 |
</table> |
27 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
27 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
28 | 28 |
<a href="http://www.doxygen.org/index.html"> |
29 | 29 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
30 | 30 |
</body> |
trunk/docs/libwireless/xbee_8h-source.html | ||
---|---|---|
21 | 21 |
<a name="l00022"></a>00022 <span class="comment">/*Definitions*/</span> |
22 | 22 |
<a name="l00024"></a><a class="code" href="group__xbee.html#ge6bb9bb274d6750f954762454807a5a7">00024</a> <span class="preprocessor">#define XBEE_PAN_DEFAULT 0xFFFF</span> |
23 | 23 |
<a name="l00025"></a>00025 <span class="preprocessor"></span> |
24 |
<a name="l00026"></a><a class="code" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">00026</a> <span class="preprocessor">#define XBEE_BROADCAST 0xFFFF</span>
|
|
24 |
<a name="l00026"></a><a class="code" href="group__xbee.html#g35f8b9d8e01e788f1e29928cba29f215">00026</a> <span class="preprocessor">#define XBEE_CHANNEL_DEFAULT 0</span>
|
|
25 | 25 |
<a name="l00027"></a>00027 <span class="preprocessor"></span> |
26 |
<a name="l00028"></a><a class="code" href="group__xbee.html#gbca7356c2b8183fd41b5ca9a82dd962b">00028</a> <span class="preprocessor">#define XBEE_OPTIONS_NONE 0x00</span>
|
|
26 |
<a name="l00028"></a><a class="code" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">00028</a> <span class="preprocessor">#define XBEE_BROADCAST 0xFFFF</span>
|
|
27 | 27 |
<a name="l00029"></a>00029 <span class="preprocessor"></span> |
28 |
<a name="l00030"></a><a class="code" href="group__xbee.html#gcf9509013302590dca5ce3db63c64609">00030</a> <span class="preprocessor">#define XBEE_OPTIONS_DISABLE_RESPONSE 0x01</span>
|
|
28 |
<a name="l00030"></a><a class="code" href="group__xbee.html#gbca7356c2b8183fd41b5ca9a82dd962b">00030</a> <span class="preprocessor">#define XBEE_OPTIONS_NONE 0x00</span>
|
|
29 | 29 |
<a name="l00031"></a>00031 <span class="preprocessor"></span> |
30 |
<a name="l00032"></a><a class="code" href="group__xbee.html#g57382f888360b5b19f0de3b6f1f7c5a3">00032</a> <span class="preprocessor">#define XBEE_OPTIONS_BROADCAST_ALL_PANS 0x04</span>
|
|
30 |
<a name="l00032"></a><a class="code" href="group__xbee.html#gcf9509013302590dca5ce3db63c64609">00032</a> <span class="preprocessor">#define XBEE_OPTIONS_DISABLE_RESPONSE 0x01</span>
|
|
31 | 31 |
<a name="l00033"></a>00033 <span class="preprocessor"></span> |
32 |
<a name="l00034"></a><a class="code" href="group__xbee.html#g7840d8b64c8bec12d8b8d32e845a638a">00034</a> <span class="preprocessor">#define XBEE_TX_STATUS 0x89</span>
|
|
32 |
<a name="l00034"></a><a class="code" href="group__xbee.html#g57382f888360b5b19f0de3b6f1f7c5a3">00034</a> <span class="preprocessor">#define XBEE_OPTIONS_BROADCAST_ALL_PANS 0x04</span>
|
|
33 | 33 |
<a name="l00035"></a>00035 <span class="preprocessor"></span> |
34 |
<a name="l00036"></a><a class="code" href="group__xbee.html#gc2b1262a3a1eb4a9f7ead366af71c32c">00036</a> <span class="preprocessor">#define XBEE_RX 0x81</span>
|
|
34 |
<a name="l00036"></a><a class="code" href="group__xbee.html#g7840d8b64c8bec12d8b8d32e845a638a">00036</a> <span class="preprocessor">#define XBEE_TX_STATUS 0x89</span>
|
|
35 | 35 |
<a name="l00037"></a>00037 <span class="preprocessor"></span> |
36 |
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g2b86876f0e73bef20c4292810b15d4b9">xbee_lib_init</a>(<span class="keywordtype">int</span> pan_id); |
|
37 |
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g9334ac71dca1ddd697b1a35a361ade6a">xbee_terminate</a>(<span class="keywordtype">void</span>); |
|
38 |
<a name="l00043"></a>00043 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g00fbdd9d849171588df736f8b608589d">xbee_get_packet</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* packet); |
|
39 |
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g3a3b8ce040002ab2b1a0923950b2f3c4">xbee_send_packet</a>(<span class="keywordtype">char</span>* packet, <span class="keywordtype">int</span> len, <span class="keywordtype">int</span> dest, |
|
40 |
<a name="l00046"></a>00046 <span class="keywordtype">char</span> options, <span class="keywordtype">char</span> frame); |
|
41 |
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g832f07915e1ffa8afefcd378deead1cd">xbee_set_pan_id</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>); |
|
42 |
<a name="l00050"></a>00050 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g7755cd8db87703c9e9943153660b8052">xbee_get_pan_id</a>(<span class="keywordtype">void</span>); |
|
43 |
<a name="l00052"></a>00052 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee_get_address</a>(<span class="keywordtype">void</span>); |
|
44 |
<a name="l00053"></a>00053 <span class="comment">//end defgroup</span> |
|
45 |
<a name="l00055"></a>00055 |
|
46 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by |
|
36 |
<a name="l00038"></a><a class="code" href="group__xbee.html#gc2b1262a3a1eb4a9f7ead366af71c32c">00038</a> <span class="preprocessor">#define XBEE_RX 0x81</span> |
|
37 |
<a name="l00039"></a>00039 <span class="preprocessor"></span> |
|
38 |
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g334a723b79eccec83b17e25cde2e10f1">xbee_lib_init</a>(<span class="keywordtype">void</span>); |
|
39 |
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g9334ac71dca1ddd697b1a35a361ade6a">xbee_terminate</a>(<span class="keywordtype">void</span>); |
|
40 |
<a name="l00045"></a>00045 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g00fbdd9d849171588df736f8b608589d">xbee_get_packet</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* packet); |
|
41 |
<a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g3a3b8ce040002ab2b1a0923950b2f3c4">xbee_send_packet</a>(<span class="keywordtype">char</span>* packet, <span class="keywordtype">int</span> len, <span class="keywordtype">int</span> dest, |
|
42 |
<a name="l00048"></a>00048 <span class="keywordtype">char</span> options, <span class="keywordtype">char</span> frame); |
|
43 |
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g832f07915e1ffa8afefcd378deead1cd">xbee_set_pan_id</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>); |
|
44 |
<a name="l00052"></a>00052 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g7755cd8db87703c9e9943153660b8052">xbee_get_pan_id</a>(<span class="keywordtype">void</span>); |
|
45 |
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="group__xbee.html#g33f2b13a8f46ee08f14bce90160a5623">xbee_set_channel</a>(<span class="keywordtype">int</span> channel); |
|
46 |
<a name="l00056"></a>00056 <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g133706db81f69ba0a3c169b7a3f42d2a">xbee_get_channel</a>(<span class="keywordtype">void</span>); |
|
47 |
<a name="l00058"></a>00058 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee_get_address</a>(<span class="keywordtype">void</span>); |
|
48 |
<a name="l00059"></a>00059 <span class="comment">//end defgroup</span> |
|
49 |
<a name="l00061"></a>00061 |
|
50 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by |
|
47 | 51 |
<a href="http://www.doxygen.org/index.html"> |
48 | 52 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
49 | 53 |
</body> |
trunk/docs/libwireless/queue_8h-source.html | ||
---|---|---|
35 | 35 |
<a name="l00052"></a>00052 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#g97ae0b085c41d49c8a24e1e506967f9b">queue_size</a>(<a class="code" href="structQueue.html">Queue</a>* q); |
36 | 36 |
<a name="l00054"></a>00054 <span class="keywordtype">int</span> <a class="code" href="group__queue.html#ga67a7f9940e9bbf21320a6f41e60998e">queue_is_empty</a>(<a class="code" href="structQueue.html">Queue</a>* q); |
37 | 37 |
<a name="l00055"></a>00055 |
38 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
38 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
39 | 39 |
<a href="http://www.doxygen.org/index.html"> |
40 | 40 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
41 | 41 |
</body> |
trunk/docs/libwireless/xbee_8h.html | ||
---|---|---|
27 | 27 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ge6bb9bb274d6750f954762454807a5a7"></a><!-- doxytag: member="xbee.h::XBEE_PAN_DEFAULT" ref="ge6bb9bb274d6750f954762454807a5a7" args="" --> |
28 | 28 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#ge6bb9bb274d6750f954762454807a5a7">XBEE_PAN_DEFAULT</a> 0xFFFF</td></tr> |
29 | 29 |
|
30 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Do not change the PAN. <br></td></tr> |
|
30 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unset PAN, uses XBee default. <br></td></tr> |
|
31 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g35f8b9d8e01e788f1e29928cba29f215"></a><!-- doxytag: member="xbee.h::XBEE_CHANNEL_DEFAULT" ref="g35f8b9d8e01e788f1e29928cba29f215" args="" --> |
|
32 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g35f8b9d8e01e788f1e29928cba29f215">XBEE_CHANNEL_DEFAULT</a> 0</td></tr> |
|
33 |
|
|
34 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unset channel, uses XBee default. <br></td></tr> |
|
31 | 35 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g93bbd21f7965e1697350f950cedff5c4"></a><!-- doxytag: member="xbee.h::XBEE_BROADCAST" ref="g93bbd21f7965e1697350f950cedff5c4" args="" --> |
32 | 36 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">XBEE_BROADCAST</a> 0xFFFF</td></tr> |
33 | 37 |
|
... | ... | |
53 | 57 |
|
54 | 58 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">A packet received from another XBee. <br></td></tr> |
55 | 59 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
56 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g2b86876f0e73bef20c4292810b15d4b9">xbee_lib_init</a> (int pan_id)</td></tr>
|
|
60 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g334a723b79eccec83b17e25cde2e10f1">xbee_lib_init</a> (void)</td></tr>
|
|
57 | 61 |
|
58 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the XBee library. <a href="group__xbee.html#g2b86876f0e73bef20c4292810b15d4b9"></a><br></td></tr>
|
|
62 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the XBee library. <a href="group__xbee.html#g334a723b79eccec83b17e25cde2e10f1"></a><br></td></tr>
|
|
59 | 63 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g9334ac71dca1ddd697b1a35a361ade6a">xbee_terminate</a> (void)</td></tr> |
60 | 64 |
|
61 | 65 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Uninitialize the XBee library. <a href="group__xbee.html#g9334ac71dca1ddd697b1a35a361ade6a"></a><br></td></tr> |
... | ... | |
71 | 75 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g7755cd8db87703c9e9943153660b8052">xbee_get_pan_id</a> (void)</td></tr> |
72 | 76 |
|
73 | 77 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the XBee's PAN ID. <a href="group__xbee.html#g7755cd8db87703c9e9943153660b8052"></a><br></td></tr> |
78 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g33f2b13a8f46ee08f14bce90160a5623">xbee_set_channel</a> (int channel)</td></tr> |
|
79 |
|
|
80 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the channel the XBee is currently using. <a href="group__xbee.html#g33f2b13a8f46ee08f14bce90160a5623"></a><br></td></tr> |
|
81 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g133706db81f69ba0a3c169b7a3f42d2a">xbee_get_channel</a> (void)</td></tr> |
|
82 |
|
|
83 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the channel the XBee is currently using. <a href="group__xbee.html#g133706db81f69ba0a3c169b7a3f42d2a"></a><br></td></tr> |
|
74 | 84 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee_get_address</a> (void)</td></tr> |
75 | 85 |
|
76 | 86 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the XBee's 16-bit address. <a href="group__xbee.html#g7c53e8a8492494a61ca306875d633309"></a><br></td></tr> |
... | ... | |
80 | 90 |
<p> |
81 | 91 |
Contains definitions for interfacing with the XBee module, from either a robot or a computer. To use a robot, define ROBOT in <a class="el" href="wl__defs_8h-source.html">wl_defs.h</a>, and to use a computer, don't define ROBOT.<p> |
82 | 92 |
<dl compact><dt><b>Author:</b></dt><dd>Brian Coltin, Colony Project, CMU Robotics Club </dd></dl> |
83 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
93 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
84 | 94 |
<a href="http://www.doxygen.org/index.html"> |
85 | 95 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
86 | 96 |
</body> |
trunk/docs/libwireless/globals.html | ||
---|---|---|
58 | 58 |
: <a class="el" href="group__sensormatrix.html#ga2039902278b82d75157f5ce30ba24a3">sensor_matrix.h</a><li>sensor_matrix_set_reading() |
59 | 59 |
: <a class="el" href="group__sensormatrix.html#g06977570b0c7b9628caeb5de012bbf22">sensor_matrix.h</a></ul> |
60 | 60 |
<h3><a class="anchor" name="index_w">- w -</a></h3><ul> |
61 |
<li>WL_DEFAULT_PAN |
|
62 |
: <a class="el" href="wireless_8h.html#76900bb8726583e3b9268d8b7acb1886">wireless.h</a><li>wl_do() |
|
61 |
<li>wl_do() |
|
63 | 62 |
: <a class="el" href="group__wireless.html#g5c1f1a0e20fc718e59edc29246afd703">wireless.h</a><li>wl_error_register() |
64 | 63 |
: <a class="el" href="group__wlerror.html#g3217351e71b892a90ed3ba79ed36e354">wl_error_group.h</a><li>wl_error_send_string() |
65 | 64 |
: <a class="el" href="group__wlerror.html#g01c7382a758876fce52c18a3e6c81534">wl_error_group.h</a><li>wl_error_unregister() |
66 |
: <a class="el" href="group__wlerror.html#g4c737d93fefc9aa8d4f87c9296bfa8a0">wl_error_group.h</a><li>wl_get_xbee_id() |
|
65 |
: <a class="el" href="group__wlerror.html#g4c737d93fefc9aa8d4f87c9296bfa8a0">wl_error_group.h</a><li>wl_get_channel() |
|
66 |
: <a class="el" href="group__wireless.html#g2d65d3e35b193da4213755c4bf61ab6b">wireless.h</a><li>wl_get_pan() |
|
67 |
: <a class="el" href="group__wireless.html#g4e6b5c97d40a8e7557a1b4b90a7d34f7">wireless.h</a><li>wl_get_xbee_id() |
|
67 | 68 |
: <a class="el" href="group__wireless.html#g90cb41c855ac3da028e8f1278bd49f4f">wireless.h</a><li>wl_init() |
68 | 69 |
: <a class="el" href="group__wireless.html#g629ceefdf83847af356d90e2df27041c">wireless.h</a><li>WL_MAX_PACKET_GROUPS |
69 | 70 |
: <a class="el" href="wireless_8h.html#f083cc95511287866eeb4337fdc75eeb">wireless.h</a><li>wl_register_packet_group() |
... | ... | |
71 | 72 |
: <a class="el" href="group__wireless.html#gdd534c99c49d5207fe09f02af304c1ad">wireless.h</a><li>wl_send_pan_packet() |
72 | 73 |
: <a class="el" href="group__wireless.html#g0a1a0e4d885f0e0dde87160a16daa0aa">wireless.h</a><li>wl_send_robot_to_robot_global_packet() |
73 | 74 |
: <a class="el" href="group__wireless.html#ga7175b13dbfc0b11b341fbe0ad7c637c">wireless.h</a><li>wl_send_robot_to_robot_packet() |
74 |
: <a class="el" href="group__wireless.html#gafaca74445d215cef2b2e0ae1a1c72ba">wireless.h</a><li>wl_terminate() |
|
75 |
: <a class="el" href="group__wireless.html#g66075ff87a1c9f2c0d7938a26c7830f2">wireless.h</a><li>wl_token_get_my_sensor_reading() |
|
76 |
: <a class="el" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_ring.h</a><li>wl_token_get_robots_in_ring() |
|
75 |
: <a class="el" href="group__wireless.html#gafaca74445d215cef2b2e0ae1a1c72ba">wireless.h</a><li>wl_set_channel() |
|
76 |
: <a class="el" href="group__wireless.html#g9aac809e57c9eb93a2905ed544c93aba">wireless.h</a><li>wl_set_pan() |
|
77 |
: <a class="el" href="group__wireless.html#g211ccf907dce4493813573e20264e542">wireless.h</a><li>wl_terminate() |
|
78 |
: <a class="el" href="group__wireless.html#g66075ff87a1c9f2c0d7938a26c7830f2">wireless.h</a><li>wl_token_get_matrix_size() |
|
79 |
: <a class="el" href="group__tokenring.html#g5fe1508968d450a970b0d5417a06431d">wl_token_ring.h</a><li>wl_token_get_my_sensor_reading() |
|
80 |
: <a class="el" href="group__tokenring.html#g1938c1d79dd9438dcd413d6d26372877">wl_token_ring.h</a><li>wl_token_get_num_robots() |
|
81 |
: <a class="el" href="group__tokenring.html#gf0d311d4feae71afc8bcb0b8c8e6ba57">wl_token_ring.h</a><li>wl_token_get_robots_in_ring() |
|
77 | 82 |
: <a class="el" href="group__tokenring.html#g0c61bb8892aa5513706e00cd8ce5ca8b">wl_token_ring.h</a><li>wl_token_get_sensor_reading() |
78 | 83 |
: <a class="el" href="group__tokenring.html#gb4afd4b8e034d22d415f3c4a42a652fc">wl_token_ring.h</a><li>wl_token_is_robot_in_ring() |
79 | 84 |
: <a class="el" href="group__tokenring.html#g14e005f0b9582eca7e3585f247c4cd72">wl_token_ring.h</a><li>wl_token_iterator_begin() |
... | ... | |
89 | 94 |
: <a class="el" href="group__wireless.html#gcdbedf6465798abc7af3bf5fea3d4dd7">wireless.h</a></ul> |
90 | 95 |
<h3><a class="anchor" name="index_x">- x -</a></h3><ul> |
91 | 96 |
<li>XBEE_BROADCAST |
92 |
: <a class="el" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">xbee.h</a><li>xbee_get_address() |
|
93 |
: <a class="el" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee.h</a><li>xbee_get_packet() |
|
97 |
: <a class="el" href="group__xbee.html#g93bbd21f7965e1697350f950cedff5c4">xbee.h</a><li>XBEE_CHANNEL_DEFAULT |
|
98 |
: <a class="el" href="group__xbee.html#g35f8b9d8e01e788f1e29928cba29f215">xbee.h</a><li>xbee_get_address() |
|
99 |
: <a class="el" href="group__xbee.html#g7c53e8a8492494a61ca306875d633309">xbee.h</a><li>xbee_get_channel() |
|
100 |
: <a class="el" href="group__xbee.html#g133706db81f69ba0a3c169b7a3f42d2a">xbee.h</a><li>xbee_get_packet() |
|
94 | 101 |
: <a class="el" href="group__xbee.html#g00fbdd9d849171588df736f8b608589d">xbee.h</a><li>xbee_get_pan_id() |
95 | 102 |
: <a class="el" href="group__xbee.html#g7755cd8db87703c9e9943153660b8052">xbee.h</a><li>xbee_lib_init() |
96 |
: <a class="el" href="group__xbee.html#g2b86876f0e73bef20c4292810b15d4b9">xbee.h</a><li>XBEE_OPTIONS_BROADCAST_ALL_PANS
|
|
103 |
: <a class="el" href="group__xbee.html#g334a723b79eccec83b17e25cde2e10f1">xbee.h</a><li>XBEE_OPTIONS_BROADCAST_ALL_PANS
|
|
97 | 104 |
: <a class="el" href="group__xbee.html#g57382f888360b5b19f0de3b6f1f7c5a3">xbee.h</a><li>XBEE_OPTIONS_DISABLE_RESPONSE |
98 | 105 |
: <a class="el" href="group__xbee.html#gcf9509013302590dca5ce3db63c64609">xbee.h</a><li>XBEE_OPTIONS_NONE |
99 | 106 |
: <a class="el" href="group__xbee.html#gbca7356c2b8183fd41b5ca9a82dd962b">xbee.h</a><li>XBEE_PAN_DEFAULT |
100 | 107 |
: <a class="el" href="group__xbee.html#ge6bb9bb274d6750f954762454807a5a7">xbee.h</a><li>XBEE_RX |
101 | 108 |
: <a class="el" href="group__xbee.html#gc2b1262a3a1eb4a9f7ead366af71c32c">xbee.h</a><li>xbee_send_packet() |
102 |
: <a class="el" href="group__xbee.html#g3a3b8ce040002ab2b1a0923950b2f3c4">xbee.h</a><li>xbee_set_pan_id() |
|
109 |
: <a class="el" href="group__xbee.html#g3a3b8ce040002ab2b1a0923950b2f3c4">xbee.h</a><li>xbee_set_channel() |
|
110 |
: <a class="el" href="group__xbee.html#g33f2b13a8f46ee08f14bce90160a5623">xbee.h</a><li>xbee_set_pan_id() |
|
103 | 111 |
: <a class="el" href="group__xbee.html#g832f07915e1ffa8afefcd378deead1cd">xbee.h</a><li>xbee_terminate() |
104 | 112 |
: <a class="el" href="group__xbee.html#g9334ac71dca1ddd697b1a35a361ade6a">xbee.h</a><li>XBEE_TX_STATUS |
105 | 113 |
: <a class="el" href="group__xbee.html#g7840d8b64c8bec12d8b8d32e845a638a">xbee.h</a></ul> |
106 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
114 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
107 | 115 |
<a href="http://www.doxygen.org/index.html"> |
108 | 116 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
109 | 117 |
</body> |
trunk/docs/libwireless/sensor__matrix_8h.html | ||
---|---|---|
63 | 63 |
<p> |
64 | 64 |
Contains functions and declarations for using sensor matrices.<p> |
65 | 65 |
<dl compact><dt><b>Author:</b></dt><dd>Brian Coltin, Colony Project, CMU Robotics Club </dd></dl> |
66 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
66 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
67 | 67 |
<a href="http://www.doxygen.org/index.html"> |
68 | 68 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
69 | 69 |
</body> |
trunk/docs/libwireless/group__queue.html | ||
---|---|---|
318 | 318 |
</td> |
319 | 319 |
</tr> |
320 | 320 |
</table> |
321 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
321 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
322 | 322 |
<a href="http://www.doxygen.org/index.html"> |
323 | 323 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
324 | 324 |
</body> |
trunk/docs/libwireless/files.html | ||
---|---|---|
26 | 26 |
<tr><td class="indexkey"><a class="el" href="wl__token__ring_8h.html">wl_token_ring.h</a> <a href="wl__token__ring_8h-source.html">[code]</a></td><td class="indexvalue">Declarations for the token ring packet group </td></tr> |
27 | 27 |
<tr><td class="indexkey"><a class="el" href="xbee_8h.html">xbee.h</a> <a href="xbee_8h-source.html">[code]</a></td><td class="indexvalue">Contains definitions for using the XBee </td></tr> |
28 | 28 |
</table> |
29 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
29 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
30 | 30 |
<a href="http://www.doxygen.org/index.html"> |
31 | 31 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
32 | 32 |
</body> |
trunk/docs/libwireless/wl__error__group_8h-source.html | ||
---|---|---|
23 | 23 |
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="group__wlerror.html#g01c7382a758876fce52c18a3e6c81534">wl_error_send_string</a>(<span class="keywordtype">char</span>* str); |
24 | 24 |
<a name="l00026"></a>00026 <span class="comment">// end defgroup</span> |
25 | 25 |
<a name="l00028"></a>00028 |
26 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
26 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
27 | 27 |
<a href="http://www.doxygen.org/index.html"> |
28 | 28 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
29 | 29 |
</body> |
trunk/docs/libwireless/functions_vars.html | ||
---|---|---|
41 | 41 |
: <a class="el" href="structPacketGroupHandler.html#952b4b63982db13f55c02e17c55ab5ac">PacketGroupHandler</a><li>unregister |
42 | 42 |
: <a class="el" href="structPacketGroupHandler.html#c03247d5c07e97e35b1f557c0937b0eb">PacketGroupHandler</a><li>val |
43 | 43 |
: <a class="el" href="structnode__def.html#ee93810ffd33d69d464b1f6a33d9ffab">node_def</a></ul> |
44 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
44 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
45 | 45 |
<a href="http://www.doxygen.org/index.html"> |
46 | 46 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
47 | 47 |
</body> |
trunk/docs/libwireless/wl__error__group_8h.html | ||
---|---|---|
39 | 39 |
<p> |
40 | 40 |
A packet group for sending and receiving error messages.<p> |
41 | 41 |
<dl compact><dt><b>Author:</b></dt><dd>Brian Coltin, Colony Project, CMU Robotics Club </dd></dl> |
42 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
42 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
43 | 43 |
<a href="http://www.doxygen.org/index.html"> |
44 | 44 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
45 | 45 |
</body> |
trunk/docs/libwireless/index.html | ||
---|---|---|
14 | 14 |
</ul></div> |
15 | 15 |
<h1>libwireless Documentation</h1> |
16 | 16 |
<p> |
17 |
<h3 align="center">1.0 </h3><hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
17 |
<h3 align="center">1.0 </h3><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:30 2007 for libwireless by
|
|
18 | 18 |
<a href="http://www.doxygen.org/index.html"> |
19 | 19 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
20 | 20 |
</body> |
trunk/docs/libwireless/group__wlerror.html | ||
---|---|---|
128 | 128 |
</td> |
129 | 129 |
</tr> |
130 | 130 |
</table> |
131 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
131 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
132 | 132 |
<a href="http://www.doxygen.org/index.html"> |
133 | 133 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
134 | 134 |
</body> |
trunk/docs/libwireless/modules.html | ||
---|---|---|
20 | 20 |
<li><a class="el" href="group__tokenring.html">Token Ring</a> |
21 | 21 |
<li><a class="el" href="group__xbee.html">XBee</a> |
22 | 22 |
</ul> |
23 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
23 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
24 | 24 |
<a href="http://www.doxygen.org/index.html"> |
25 | 25 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
26 | 26 |
</body> |
trunk/docs/libwireless/group__wireless.html | ||
---|---|---|
48 | 48 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g0a1a0e4d885f0e0dde87160a16daa0aa">wl_send_pan_packet</a> (char group, char type, char *data, int len, char frame)</td></tr> |
49 | 49 |
|
50 | 50 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Send a packet to all robots in our PAN. <a href="#g0a1a0e4d885f0e0dde87160a16daa0aa"></a><br></td></tr> |
51 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g211ccf907dce4493813573e20264e542">wl_set_pan</a> (int pan)</td></tr> |
|
52 |
|
|
53 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the PAN we are using. <a href="#g211ccf907dce4493813573e20264e542"></a><br></td></tr> |
|
54 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g4e6b5c97d40a8e7557a1b4b90a7d34f7">wl_get_pan</a> (void)</td></tr> |
|
55 |
|
|
56 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the PAN we are using. <a href="#g4e6b5c97d40a8e7557a1b4b90a7d34f7"></a><br></td></tr> |
|
57 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g9aac809e57c9eb93a2905ed544c93aba">wl_set_channel</a> (int channel)</td></tr> |
|
58 |
|
|
59 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the channel we are using. <a href="#g9aac809e57c9eb93a2905ed544c93aba"></a><br></td></tr> |
|
60 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g2d65d3e35b193da4213755c4bf61ab6b">wl_get_channel</a> (void)</td></tr> |
|
61 |
|
|
62 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the channel we are using. <a href="#g2d65d3e35b193da4213755c4bf61ab6b"></a><br></td></tr> |
|
51 | 63 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__wireless.html#g90cb41c855ac3da028e8f1278bd49f4f">wl_get_xbee_id</a> (void)</td></tr> |
52 | 64 |
|
53 | 65 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the 16-bit address of the XBee module. <a href="#g90cb41c855ac3da028e8f1278bd49f4f"></a><br></td></tr> |
... | ... | |
92 | 104 |
Performs wireless library functionality. This function must be called frequently for wireless to perform effectively. This function will call timeout handlers, as well as received packet and transmit status handlers. </td> |
93 | 105 |
</tr> |
94 | 106 |
</table> |
107 |
<a class="anchor" name="g2d65d3e35b193da4213755c4bf61ab6b"></a><!-- doxytag: member="wireless.h::wl_get_channel" ref="g2d65d3e35b193da4213755c4bf61ab6b" args="(void)" --><p> |
|
108 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
109 |
<tr> |
|
110 |
<td class="mdRow"> |
|
111 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
112 |
<tr> |
|
113 |
<td class="md" nowrap valign="top">int wl_get_channel </td> |
|
114 |
<td class="md" valign="top">( </td> |
|
115 |
<td class="md" nowrap valign="top">void </td> |
|
116 |
<td class="mdname1" valign="top" nowrap> </td> |
|
117 |
<td class="md" valign="top"> ) </td> |
|
118 |
<td class="md" nowrap></td> |
|
119 |
</tr> |
|
120 |
</table> |
|
121 |
</td> |
|
122 |
</tr> |
|
123 |
</table> |
|
124 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
125 |
<tr> |
|
126 |
<td> |
|
127 |
|
|
128 |
</td> |
|
129 |
<td> |
|
130 |
|
|
131 |
<p> |
|
132 |
Get the channel we are using. |
|
133 |
<p> |
|
134 |
Get the channel the XBee is part of.<p> |
|
135 |
<dl compact><dt><b>Returns:</b></dt><dd>the channel the XBee is part of</dd></dl> |
|
136 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__wireless.html#g9aac809e57c9eb93a2905ed544c93aba">wl_set_channel</a> </dd></dl> |
|
137 |
</td> |
|
138 |
</tr> |
|
139 |
</table> |
|
140 |
<a class="anchor" name="g4e6b5c97d40a8e7557a1b4b90a7d34f7"></a><!-- doxytag: member="wireless.h::wl_get_pan" ref="g4e6b5c97d40a8e7557a1b4b90a7d34f7" args="(void)" --><p> |
|
141 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
142 |
<tr> |
|
143 |
<td class="mdRow"> |
|
144 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
145 |
<tr> |
|
146 |
<td class="md" nowrap valign="top">int wl_get_pan </td> |
|
147 |
<td class="md" valign="top">( </td> |
|
148 |
<td class="md" nowrap valign="top">void </td> |
|
149 |
<td class="mdname1" valign="top" nowrap> </td> |
|
150 |
<td class="md" valign="top"> ) </td> |
|
151 |
<td class="md" nowrap></td> |
|
152 |
</tr> |
|
153 |
</table> |
|
154 |
</td> |
|
155 |
</tr> |
|
156 |
</table> |
|
157 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
158 |
<tr> |
|
159 |
<td> |
|
160 |
|
|
161 |
</td> |
|
162 |
<td> |
|
163 |
|
|
164 |
<p> |
|
165 |
Get the PAN we are using. |
|
166 |
<p> |
|
167 |
Get the PAN the XBee is currently part of.<p> |
|
168 |
<dl compact><dt><b>Returns:</b></dt><dd>the PAN of the XBee</dd></dl> |
|
169 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__wireless.html#g211ccf907dce4493813573e20264e542">wl_set_pan</a> </dd></dl> |
|
170 |
</td> |
|
171 |
</tr> |
|
172 |
</table> |
|
95 | 173 |
<a class="anchor" name="g90cb41c855ac3da028e8f1278bd49f4f"></a><!-- doxytag: member="wireless.h::wl_get_xbee_id" ref="g90cb41c855ac3da028e8f1278bd49f4f" args="(void)" --><p> |
96 | 174 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
97 | 175 |
<tr> |
... | ... | |
472 | 550 |
</td> |
473 | 551 |
</tr> |
474 | 552 |
</table> |
553 |
<a class="anchor" name="g9aac809e57c9eb93a2905ed544c93aba"></a><!-- doxytag: member="wireless.h::wl_set_channel" ref="g9aac809e57c9eb93a2905ed544c93aba" args="(int channel)" --><p> |
|
554 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
555 |
<tr> |
|
556 |
<td class="mdRow"> |
|
557 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
558 |
<tr> |
|
559 |
<td class="md" nowrap valign="top">void wl_set_channel </td> |
|
560 |
<td class="md" valign="top">( </td> |
|
561 |
<td class="md" nowrap valign="top">int </td> |
|
562 |
<td class="mdname1" valign="top" nowrap> <em>channel</em> </td> |
|
563 |
<td class="md" valign="top"> ) </td> |
|
564 |
<td class="md" nowrap></td> |
|
565 |
</tr> |
|
566 |
</table> |
|
567 |
</td> |
|
568 |
</tr> |
|
569 |
</table> |
|
570 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
571 |
<tr> |
|
572 |
<td> |
|
573 |
|
|
574 |
</td> |
|
575 |
<td> |
|
576 |
|
|
577 |
<p> |
|
578 |
Set the channel we are using. |
|
579 |
<p> |
|
580 |
Set the channel the XBee is listening to.<p> |
|
581 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
|
582 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
583 |
<tr><td valign="top"></td><td valign="top"><em>channel</em> </td><td>the new channel to join</td></tr> |
|
584 |
</table> |
|
585 |
</dl> |
|
586 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__wireless.html#g2d65d3e35b193da4213755c4bf61ab6b">wl_get_channel</a> </dd></dl> |
|
587 |
</td> |
|
588 |
</tr> |
|
589 |
</table> |
|
590 |
<a class="anchor" name="g211ccf907dce4493813573e20264e542"></a><!-- doxytag: member="wireless.h::wl_set_pan" ref="g211ccf907dce4493813573e20264e542" args="(int pan)" --><p> |
|
591 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
|
592 |
<tr> |
|
593 |
<td class="mdRow"> |
|
594 |
<table cellpadding="0" cellspacing="0" border="0"> |
|
595 |
<tr> |
|
596 |
<td class="md" nowrap valign="top">void wl_set_pan </td> |
|
597 |
<td class="md" valign="top">( </td> |
|
598 |
<td class="md" nowrap valign="top">int </td> |
|
599 |
<td class="mdname1" valign="top" nowrap> <em>pan</em> </td> |
|
600 |
<td class="md" valign="top"> ) </td> |
|
601 |
<td class="md" nowrap></td> |
|
602 |
</tr> |
|
603 |
</table> |
|
604 |
</td> |
|
605 |
</tr> |
|
606 |
</table> |
|
607 |
<table cellspacing="5" cellpadding="0" border="0"> |
|
608 |
<tr> |
|
609 |
<td> |
|
610 |
|
|
611 |
</td> |
|
612 |
<td> |
|
613 |
|
|
614 |
<p> |
|
615 |
Set the PAN we are using. |
|
616 |
<p> |
|
617 |
Set the PAN for the XBee to join.<p> |
|
618 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
|
619 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
620 |
<tr><td valign="top"></td><td valign="top"><em>pan</em> </td><td>the new PAN</td></tr> |
|
621 |
</table> |
|
622 |
</dl> |
|
623 |
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__wireless.html#g4e6b5c97d40a8e7557a1b4b90a7d34f7">wl_get_pan</a> </dd></dl> |
|
624 |
</td> |
|
625 |
</tr> |
|
626 |
</table> |
|
475 | 627 |
<a class="anchor" name="g66075ff87a1c9f2c0d7938a26c7830f2"></a><!-- doxytag: member="wireless.h::wl_terminate" ref="g66075ff87a1c9f2c0d7938a26c7830f2" args="(void)" --><p> |
476 | 628 |
<table class="mdTable" cellpadding="2" cellspacing="0"> |
477 | 629 |
<tr> |
... | ... | |
538 | 690 |
</td> |
539 | 691 |
</tr> |
540 | 692 |
</table> |
541 |
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 21 12:57:06 2007 for libwireless by
|
|
693 |
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 24 14:12:31 2007 for libwireless by
|
|
542 | 694 |
<a href="http://www.doxygen.org/index.html"> |
543 | 695 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> |
544 | 696 |
</body> |
trunk/code/lib/include/libwireless/wireless.h | ||
---|---|---|
13 | 13 |
* The maximum number of packet groups. |
14 | 14 |
**/ |
15 | 15 |
#define WL_MAX_PACKET_GROUPS 16 |
16 |
/** |
|
17 |
* The default PAN. |
|
18 |
**/ |
|
19 |
#define WL_DEFAULT_PAN 0x3331 |
|
20 | 16 |
|
21 | 17 |
/** |
22 | 18 |
* @defgroup wireless Wireless |
... | ... | |
103 | 99 |
void wl_register_packet_group(PacketGroupHandler* h); |
104 | 100 |
/**@brief Unregister a packet group with the wireless library **/ |
105 | 101 |
void wl_unregister_packet_group(PacketGroupHandler* h); |
102 |
|
|
106 | 103 |
/**@brief Send a packet to a specific robot in any PAN **/ |
107 | 104 |
void wl_send_robot_to_robot_global_packet(char group, char type, |
108 | 105 |
char* data, int len, int dest, char frame); |
... | ... | |
115 | 112 |
/**@brief Send a packet to all robots in our PAN **/ |
116 | 113 |
void wl_send_pan_packet(char group, char type, |
117 | 114 |
char* data, int len, char frame); |
115 |
|
|
116 |
/**@brief Set the PAN we are using **/ |
|
117 |
void wl_set_pan(int pan); |
|
118 |
/**@brief Get the PAN we are using **/ |
|
119 |
int wl_get_pan(void); |
|
120 |
/**@brief Set the channel we are using **/ |
|
121 |
void wl_set_channel(int channel); |
|
122 |
/**@brief Get the channel we are using **/ |
|
123 |
int wl_get_channel(void); |
|
118 | 124 |
/**@brief Get the 16-bit address of the XBee module **/ |
119 | 125 |
unsigned int wl_get_xbee_id(void); |
120 | 126 |
|
trunk/code/lib/include/libwireless/wl_token_ring.h | ||
---|---|---|
25 | 25 |
/**@brief Set the functions called to turn the bom on and off.**/ |
26 | 26 |
void wl_token_ring_set_bom_functions(void (*on_function) (void), |
27 | 27 |
void (*off_function) (void), int (*max_bom_function) (void)); |
28 |
|
|
28 | 29 |
/**@brief Join the token ring **/ |
29 | 30 |
void wl_token_ring_join(void); |
30 | 31 |
/**@brief Leave the token ring **/ |
trunk/code/lib/include/libwireless/xbee.h | ||
---|---|---|
20 | 20 |
**/ |
21 | 21 |
|
22 | 22 |
/*Definitions*/ |
23 |
/**@brief Do not change the PAN **/
|
|
23 |
/**@brief Unset PAN, uses XBee default **/
|
|
24 | 24 |
#define XBEE_PAN_DEFAULT 0xFFFF |
25 |
/**@brief Unset channel, uses XBee default **/ |
|
26 |
#define XBEE_CHANNEL_DEFAULT 0 |
|
25 | 27 |
/**@brief Broadcast to all robots in the PAN **/ |
26 | 28 |
#define XBEE_BROADCAST 0xFFFF |
27 | 29 |
/**@brief No special options **/ |
... | ... | |
36 | 38 |
#define XBEE_RX 0x81 |
37 | 39 |
|
38 | 40 |
/**@brief Initialize the XBee library **/ |
39 |
void xbee_lib_init(int pan_id);
|
|
41 |
void xbee_lib_init(void);
|
|
40 | 42 |
/**@brief Uninitialize the XBee library **/ |
41 | 43 |
void xbee_terminate(void); |
42 | 44 |
/**@brief Get a packet from the XBee **/ |
... | ... | |
48 | 50 |
void xbee_set_pan_id(int id); |
49 | 51 |
/**@brief Get the XBee's PAN ID **/ |
50 | 52 |
unsigned int xbee_get_pan_id(void); |
53 |
/**@brief Set the channel the XBee is currently using **/ |
|
54 |
void xbee_set_channel(int channel); |
|
55 |
/**@brief Get the channel the XBee is currently using **/ |
|
56 |
int xbee_get_channel(void); |
|
51 | 57 |
/**@brief Get the XBee's 16-bit address **/ |
52 | 58 |
unsigned int xbee_get_address(void); |
53 | 59 |
|
trunk/code/lib/src/libwireless/xbee.c | ||
---|---|---|
80 | 80 |
//XBee status |
81 | 81 |
unsigned int xbee_panID = XBEE_PAN_DEFAULT; |
82 | 82 |
unsigned int xbee_pending_panID = XBEE_PAN_DEFAULT; |
83 |
int xbee_channel = XBEE_CHANNEL_DEFAULT; |
|
84 |
int xbee_pending_channel = XBEE_CHANNEL_DEFAULT; |
|
83 | 85 |
unsigned int xbee_address = 0; |
84 | 86 |
|
85 | 87 |
/*Function Implementations*/ |
... | ... | |
120 | 122 |
* @param pan_id the PAN to join initially. Use XBEE_PAN_DEFAULT |
121 | 123 |
* to leave the PAN as it is initially. |
122 | 124 |
**/ |
123 |
void xbee_lib_init(int pan_id)
|
|
125 |
void xbee_lib_init(void)
|
|
124 | 126 |
{ |
125 | 127 |
xbee_queue = queue_create(); |
126 | 128 |
|
... | ... | |
158 | 160 |
|
159 | 161 |
//wait to return until the address is set |
160 | 162 |
while (xbee_address == 0) xbee_get_packet(NULL); |
161 |
|
|
162 |
if (pan_id != XBEE_PAN_DEFAULT) |
|
163 |
{ |
|
164 |
xbee_set_pan_id(pan_id); |
|
165 |
while (xbee_panID == XBEE_PAN_DEFAULT) xbee_get_packet(NULL); |
|
166 |
} |
|
167 | 163 |
} |
168 | 164 |
|
169 | 165 |
/** |
... | ... | |
594 | 590 |
WL_DEBUG_PRINT(".\r\n"); |
595 | 591 |
return; |
596 | 592 |
} |
593 |
|
|
594 |
if (command[0] == 'C' && command[1] == 'H') |
|
595 |
{ |
|
596 |
xbee_channel = xbee_pending_channel; |
|
597 |
WL_DEBUG_PRINT("Channel set to "); |
|
598 |
WL_DEBUG_PRINT_INT(xbee_channel); |
|
599 |
WL_DEBUG_PRINT(".\r\n"); |
|
600 |
return; |
|
601 |
} |
|
597 | 602 |
|
598 | 603 |
if (command[0] == 'M' && command[1] == 'Y' && extraLen != 0) |
599 | 604 |
{ |
... | ... | |
678 | 683 |
} |
679 | 684 |
|
680 | 685 |
/** |
686 |
* Set the channel the XBee is using. |
|
687 |
* |
|
688 |
* @param channel the channel the XBee will not use, |
|
689 |
* between 0x0B and 0x1A |
|
690 |
* |
|
691 |
* @see xbee_get_channel |
|
692 |
**/ |
|
693 |
void xbee_set_channel(int channel) |
|
694 |
{ |
|
695 |
if (channel < 0x0B || channel > 0x1A) |
|
696 |
{ |
|
697 |
WL_DEBUG_PRINT("Channel out of range.\r\n"); |
|
698 |
return; |
|
699 |
} |
|
700 |
char s[3]; |
|
701 |
s[0] = channel & 0xFF; |
|
702 |
s[1] = 0; |
|
703 |
xbee_pending_channel = channel; |
|
704 |
xbee_send_modify_at_command("CH", s); |
|
705 |
} |
|
706 |
|
|
707 |
/** |
|
708 |
* Returns the channel which the XBee is currently using. |
|
709 |
* |
|
710 |
* @return the channel the XBee is using |
|
711 |
* |
|
712 |
* @see xbee_set_channel |
|
713 |
**/ |
|
714 |
int xbee_get_channel(void) |
|
715 |
{ |
|
716 |
return xbee_channel; |
|
717 |
} |
|
718 |
|
|
719 |
/** |
|
681 | 720 |
* Get the 16-bit address of the XBee. |
682 | 721 |
* This is used to specify who to send messages to |
683 | 722 |
* and who messages are from. |
trunk/code/lib/src/libwireless/wireless.c | ||
---|---|---|
61 | 61 |
for (i = 0; i < WL_MAX_PACKET_GROUPS; i++) |
62 | 62 |
wl_packet_groups[i] = NULL; |
63 | 63 |
|
64 |
xbee_lib_init(WL_DEFAULT_PAN);
|
|
64 |
xbee_lib_init(); |
|
65 | 65 |
|
66 | 66 |
//begin timeout timer |
67 | 67 |
#ifdef ROBOT |
... | ... | |
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
/** |
114 |
* Set the PAN for the XBee to join. |
|
115 |
* |
|
116 |
* @param pan the new PAN |
|
117 |
* |
|
118 |
* @see wl_get_pan |
|
119 |
**/ |
|
120 |
void wl_set_pan(int pan) |
|
121 |
{ |
|
122 |
xbee_set_pan_id(pan); |
|
123 |
} |
|
124 |
|
|
125 |
/** |
|
126 |
* Get the PAN the XBee is currently part of. |
|
127 |
* |
|
128 |
* @return the PAN of the XBee |
|
129 |
* |
|
130 |
* @see wl_set_pan |
|
131 |
**/ |
|
132 |
int wl_get_pan(void) |
|
133 |
{ |
|
134 |
return xbee_get_pan_id(); |
|
135 |
} |
|
136 |
|
|
137 |
/** |
|
138 |
* Set the channel the XBee is listening to. |
|
139 |
* |
|
140 |
* @param channel the new channel to join |
|
141 |
* |
|
142 |
* @see wl_get_channel |
|
143 |
**/ |
|
144 |
void wl_set_channel(int channel) |
|
145 |
{ |
|
146 |
xbee_set_channel(channel); |
|
147 |
} |
|
148 |
|
|
149 |
/** |
|
150 |
* Get the channel the XBee is part of. |
|
151 |
* |
|
152 |
* @return the channel the XBee is part of |
|
153 |
* |
|
154 |
* @see wl_set_channel |
|
155 |
**/ |
|
156 |
int wl_get_channel(void) |
|
157 |
{ |
|
158 |
return xbee_get_channel(); |
|
159 |
} |
|
160 |
|
|
161 |
/** |
|
114 | 162 |
* Returns the 16-bit address of the XBee module. |
115 | 163 |
* |
116 | 164 |
* @return the 16-bit address of the XBee module. |
trunk/code/projects/libwireless/test/test.c | ||
---|---|---|
32 | 32 |
} |
33 | 33 |
xbee_terminate();*/ |
34 | 34 |
wl_init(); |
35 |
wl_set_channel(0x1A); |
|
35 | 36 |
printf("Wireless initialized.\n"); |
36 | 37 |
wl_error_register(); |
37 | 38 |
wl_token_ring_register(); |
trunk/code/projects/libwireless/lib/wireless.h | ||
---|---|---|
13 | 13 |
* The maximum number of packet groups. |
14 | 14 |
**/ |
15 | 15 |
#define WL_MAX_PACKET_GROUPS 16 |
16 |
/** |
|
17 |
* The default PAN. |
|
18 |
**/ |
|
19 |
#define WL_DEFAULT_PAN 0x3331 |
|
20 | 16 |
|
21 | 17 |
/** |
22 | 18 |
* @defgroup wireless Wireless |
... | ... | |
103 | 99 |
void wl_register_packet_group(PacketGroupHandler* h); |
104 | 100 |
/**@brief Unregister a packet group with the wireless library **/ |
105 | 101 |
void wl_unregister_packet_group(PacketGroupHandler* h); |
102 |
|
|
106 | 103 |
/**@brief Send a packet to a specific robot in any PAN **/ |
107 | 104 |
void wl_send_robot_to_robot_global_packet(char group, char type, |
108 | 105 |
char* data, int len, int dest, char frame); |
... | ... | |
115 | 112 |
/**@brief Send a packet to all robots in our PAN **/ |
116 | 113 |
void wl_send_pan_packet(char group, char type, |
117 | 114 |
char* data, int len, char frame); |
115 |
|
|
116 |
/**@brief Set the PAN we are using **/ |
|
117 |
void wl_set_pan(int pan); |
|
118 |
/**@brief Get the PAN we are using **/ |
|
119 |
int wl_get_pan(void); |
|
120 |
/**@brief Set the channel we are using **/ |
|
121 |
void wl_set_channel(int channel); |
|
122 |
/**@brief Get the channel we are using **/ |
|
123 |
int wl_get_channel(void); |
|
118 | 124 |
/**@brief Get the 16-bit address of the XBee module **/ |
119 | 125 |
unsigned int wl_get_xbee_id(void); |
120 | 126 |
|
trunk/code/projects/libwireless/lib/xbee.c | ||
---|---|---|
80 | 80 |
//XBee status |
81 | 81 |
unsigned int xbee_panID = XBEE_PAN_DEFAULT; |
82 | 82 |
unsigned int xbee_pending_panID = XBEE_PAN_DEFAULT; |
83 |
int xbee_channel = XBEE_CHANNEL_DEFAULT; |
|
84 |
int xbee_pending_channel = XBEE_CHANNEL_DEFAULT; |
|
83 | 85 |
unsigned int xbee_address = 0; |
84 | 86 |
|
85 | 87 |
/*Function Implementations*/ |
... | ... | |
120 | 122 |
* @param pan_id the PAN to join initially. Use XBEE_PAN_DEFAULT |
121 | 123 |
* to leave the PAN as it is initially. |
122 | 124 |
**/ |
123 |
void xbee_lib_init(int pan_id)
|
|
125 |
void xbee_lib_init(void)
|
|
124 | 126 |
{ |
125 | 127 |
xbee_queue = queue_create(); |
126 | 128 |
|
... | ... | |
158 | 160 |
|
159 | 161 |
//wait to return until the address is set |
160 | 162 |
while (xbee_address == 0) xbee_get_packet(NULL); |
161 |
|
|
162 |
if (pan_id != XBEE_PAN_DEFAULT) |
|
163 |
{ |
|
164 |
xbee_set_pan_id(pan_id); |
|
165 |
while (xbee_panID == XBEE_PAN_DEFAULT) xbee_get_packet(NULL); |
|
166 |
} |
|
167 | 163 |
} |
168 | 164 |
|
169 | 165 |
/** |
... | ... | |
594 | 590 |
WL_DEBUG_PRINT(".\r\n"); |
595 | 591 |
return; |
596 | 592 |
} |
593 |
|
|
594 |
if (command[0] == 'C' && command[1] == 'H') |
|
595 |
{ |
|
596 |
xbee_channel = xbee_pending_channel; |
|
597 |
WL_DEBUG_PRINT("Channel set to "); |
|
598 |
WL_DEBUG_PRINT_INT(xbee_channel); |
|
599 |
WL_DEBUG_PRINT(".\r\n"); |
|
600 |
return; |
|
601 |
} |
|
597 | 602 |
|
598 | 603 |
if (command[0] == 'M' && command[1] == 'Y' && extraLen != 0) |
599 | 604 |
{ |
... | ... | |
678 | 683 |
} |
679 | 684 |
|
680 | 685 |
/** |
686 |
* Set the channel the XBee is using. |
|
687 |
* |
|
688 |
* @param channel the channel the XBee will not use, |
|
689 |
* between 0x0B and 0x1A |
|
690 |
* |
|
691 |
* @see xbee_get_channel |
|
692 |
**/ |
|
693 |
void xbee_set_channel(int channel) |
|
694 |
{ |
|
695 |
if (channel < 0x0B || channel > 0x1A) |
|
696 |
{ |
|
697 |
WL_DEBUG_PRINT("Channel out of range.\r\n"); |
|
698 |
return; |
|
699 |
} |
|
700 |
char s[3]; |
|
701 |
s[0] = channel & 0xFF; |
|
702 |
s[1] = 0; |
|
703 |
xbee_pending_channel = channel; |
|
704 |
xbee_send_modify_at_command("CH", s); |
|
705 |
} |
|
706 |
|
|
707 |
/** |
Also available in: Unified diff