Statistics
| Revision:

root / branches / wireless / docs / libwireless / html / wl__defs_8h_source.html @ 1823

History | View | Annotate | Download (9.67 KB)

1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>libwireless: wl_defs.h Source File</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
</head>
9
<body>
10
<!-- Generated by Doxygen 1.6.3 -->
11
<div class="navigation" id="top">
12
  <div class="tabs">
13
    <ul>
14
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15
      <li><a href="modules.html"><span>Modules</span></a></li>
16
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
17
      <li class="current"><a href="files.html"><span>Files</span></a></li>
18
    </ul>
19
  </div>
20
  <div class="tabs">
21
    <ul>
22
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
23
      <li><a href="globals.html"><span>Globals</span></a></li>
24
    </ul>
25
  </div>
26
<h1>wl_defs.h</h1><a href="wl__defs_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
27
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef WL_DEFS_H</span>
28
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEFS_H</span>
29
<a name="l00037"></a>00037 <span class="preprocessor"></span>
30
<a name="l00038"></a>00038 <span class="comment">// create main wireless page documentation</span>
31
<a name="l00039"></a>00039 
32
<a name="l00048"></a>00048 <span class="comment">// need this for C99 int types</span>
33
<a name="l00049"></a>00049 <span class="preprocessor">#ifndef STDINT_H</span>
34
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#define STDINT_H</span>
35
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#include &lt;stdint.h&gt;</span>
36
<a name="l00052"></a>00052 <span class="preprocessor">#endif</span>
37
<a name="l00053"></a>00053 <span class="preprocessor"></span>
38
<a name="l00054"></a>00054 <span class="comment">// ***** TODO: these next two defines should be moved to makefile options</span>
39
<a name="l00055"></a>00055 
40
<a name="l00056"></a>00056 <span class="comment">//comment out this line if using a computer hooked up to an xbee</span>
41
<a name="l00057"></a>00057 <span class="preprocessor">#define ROBOT</span>
42
<a name="l00058"></a>00058 <span class="preprocessor"></span>
43
<a name="l00059"></a>00059 <span class="comment">//uncomment this line for debug information</span>
44
<a name="l00060"></a>00060 <span class="preprocessor">#define WL_DEBUG</span>
45
<a name="l00061"></a>00061 <span class="preprocessor"></span>
46
<a name="l00069"></a><a class="code" href="group__wl__error.html#ga2b8a799ce85bb21788e58e1c23c16fc0">00069</a> <span class="preprocessor">#define WL_SUCCESS INT8_C(0)</span>
47
<a name="l00070"></a>00070 <span class="preprocessor"></span>
48
<a name="l00072"></a><a class="code" href="group__wl__error.html#ga798466231ef137f248b55dbfbce36fd7">00072</a> <span class="preprocessor">#define WL_ERROR_INIT_FAILED INT8_C(-1) </span>
49
<a name="l00073"></a>00073 <span class="preprocessor"></span>
50
<a name="l00075"></a><a class="code" href="group__wl__error.html#ga63e64a790913362ecf505e1a7e8347b8">00075</a> <span class="preprocessor">#define WL_ERROR_INIT_ALREADY_INITD INT8_C(-2) </span>
51
<a name="l00076"></a>00076 <span class="preprocessor"></span>
52
<a name="l00078"></a><a class="code" href="group__wl__error.html#ga099f03f9edae294ce4989433f73c141e">00078</a> <span class="preprocessor">#define WL_ERROR_LIBRARY_NOT_INITD INT8_C(-3) </span>
53
<a name="l00079"></a>00079 <span class="preprocessor"></span>
54
<a name="l00081"></a><a class="code" href="group__wl__error.html#ga54de37a8427bf7372cfefa925cd0acf6">00081</a> <span class="preprocessor">#define WL_ERROR_TERMINATION_FAILED INT8_C(-4)</span>
55
<a name="l00082"></a>00082 <span class="preprocessor"></span>
56
<a name="l00084"></a><a class="code" href="group__wl__error.html#ga11477a5a024fd6898e4449bf08761207">00084</a> <span class="preprocessor">#define WL_ERROR_FAILED_REGISTRATION INT8_C(-5)</span>
57
<a name="l00085"></a>00085 <span class="preprocessor"></span>
58
<a name="l00087"></a><a class="code" href="group__wl__error.html#ga2b221412880d805da1f9eb735ce7869f">00087</a> <span class="preprocessor">#define WL_ERROR_FAILED_UNREGISTRATION INT8_C(-6)</span>
59
<a name="l00088"></a>00088 <span class="preprocessor"></span>
60
<a name="l00090"></a><a class="code" href="group__wl__error.html#ga43f851eae7eed2576351d336001c21d2">00090</a> <span class="preprocessor">#define WL_ERROR_ARGUMENT INT8_C(-7)</span>
61
<a name="l00091"></a>00091 <span class="preprocessor"></span>
62
<a name="l00093"></a><a class="code" href="group__wl__error.html#ga2a775d59e55e9435505b4a908c522a0a">00093</a> <span class="preprocessor">#define WL_ERROR_SEND INT8_C(-10)</span>
63
<a name="l00094"></a>00094 <span class="preprocessor"></span>
64
<a name="l00096"></a><a class="code" href="group__wl__error.html#ga4bffaed18853133c76af57b89771b234">00096</a> <span class="preprocessor">#define WL_ERROR_BAD_GROUP INT8_C(-11)</span>
65
<a name="l00097"></a>00097 <span class="preprocessor"></span>
66
<a name="l00099"></a><a class="code" href="group__wl__error.html#ga76d08a0e32732a63dc93d2cdf95c8fd0">00099</a> <span class="preprocessor">#define WL_ERROR_SCOPE INT8_C(-12)</span>
67
<a name="l00100"></a>00100 <span class="preprocessor"></span>
68
<a name="l00102"></a><a class="code" href="group__wl__error.html#ga9c528907279e6ace3aae7a7b19ad7687">00102</a> <span class="preprocessor">#define WL_ERROR_ADDRESS INT8_C(-13)</span>
69
<a name="l00103"></a>00103 <span class="preprocessor"></span>
70
<a name="l00105"></a><a class="code" href="group__wl__error.html#ga33881dd2ec8ad0c2f67e40491a2f7c1a">00105</a> <span class="preprocessor">#define WL_ERROR_MODE INT8_C(-14)</span>
71
<a name="l00106"></a>00106 <span class="preprocessor"></span>
72
<a name="l00108"></a><a class="code" href="group__wl__error.html#gacad84a598557eaf3ae400f7fdb4cf6c0">00108</a> <span class="preprocessor">#define WL_ERROR_TOO_SMALL INT8_C(-15)</span>
73
<a name="l00109"></a>00109 <span class="preprocessor"></span>
74
<a name="l00111"></a><a class="code" href="group__wl__error.html#ga39b25b343987ddbabbf378525ed17e8f">00111</a> <span class="preprocessor">#define WL_ERROR_SENDING_BUFFER_FULL INT8_C(-16)</span>
75
<a name="l00112"></a>00112 <span class="preprocessor"></span>
76
<a name="l00114"></a><a class="code" href="group__wl__error.html#ga95320a2338e465077c708a7b50b20c9a">00114</a> <span class="preprocessor">#define WL_ERROR_XBEE_COMMAND INT8_C(-17)</span>
77
<a name="l00115"></a>00115 <span class="preprocessor"></span>
78
<a name="l00117"></a><a class="code" href="group__wl__error.html#ga029f22a1c6b7308a7a9db2ee7490a4f0">00117</a> <span class="preprocessor">#define WL_ERROR_XBEE_COMMAND_16BIT 0xFEFE</span>
79
<a name="l00118"></a>00118 <span class="preprocessor"></span>
80
<a name="l00120"></a><a class="code" href="group__wl__error.html#ga35522d85bcb3ce7e1f0649ed8880a47a">00120</a> <span class="preprocessor">#define WL_ERROR_BAUD INT8_C(-18)</span>
81
<a name="l00121"></a>00121 <span class="preprocessor"></span> <span class="comment">// end error group</span>
82
<a name="l00123"></a>00123 
83
<a name="l00124"></a>00124 <span class="comment">// TODO: is this a good size?</span>
84
<a name="l00125"></a>00125 <span class="comment">/*Buffer sizes*/</span>
85
<a name="l00126"></a>00126 <span class="preprocessor">#define PACKET_BUFFER_SIZE      250</span>
86
<a name="l00127"></a>00127 <span class="preprocessor"></span> <span class="comment">// end wireless group</span>
87
<a name="l00129"></a>00129 
88
<a name="l00130"></a>00130 <span class="preprocessor">#ifdef WL_DEBUG</span>
89
<a name="l00131"></a>00131 <span class="preprocessor"></span>
90
<a name="l00132"></a>00132 <span class="preprocessor">#include &lt;serial.h&gt;</span>
91
<a name="l00133"></a>00133 <span class="preprocessor">#define WL_DEBUG_PRINT( s ) usb_puts( s )</span>
92
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_P( s ) usb_puts_P( PSTR ( s ) )</span>
93
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_CHAR( c ) usb_putc( c )</span>
94
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_INT( i ) usb_puti(i)</span>
95
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_HEX( i ) usb_puth8(i)</span>
96
<a name="l00138"></a>00138 <span class="preprocessor"></span>
97
<a name="l00139"></a>00139 <span class="preprocessor">#else</span>
98
<a name="l00140"></a>00140 <span class="preprocessor"></span>
99
<a name="l00141"></a>00141 <span class="preprocessor">#define WL_DEBUG_PRINT( s )</span>
100
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_P( s )</span>
101
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_CHAR( c )</span>
102
<a name="l00144"></a>00144 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_INT( i )</span>
103
<a name="l00145"></a>00145 <span class="preprocessor"></span><span class="preprocessor">#define WL_DEBUG_PRINT_HEX( i )</span>
104
<a name="l00146"></a>00146 <span class="preprocessor"></span>
105
<a name="l00147"></a>00147 <span class="preprocessor">#endif</span>
106
<a name="l00148"></a>00148 <span class="preprocessor"></span>
107
<a name="l00149"></a>00149 <span class="preprocessor">#endif</span>
108
</pre></div></div>
109
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu May 6 13:17:00 2010 for libwireless by&nbsp;
110
<a href="http://www.doxygen.org/index.html">
111
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
112
</body>
113
</html>