Project

General

Profile

Revision 241

Updated libdragonfly documentation.

View differences:

analog_8h-source.html
1 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3 3
<title>libdragonfly: analog.h Source File</title>
4 4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5 5
<link href="tabs.css" rel="stylesheet" type="text/css">
6 6
</head><body>
7
<!-- Generated by Doxygen 1.4.6 -->
7
<!-- Generated by Doxygen 1.5.3 -->
8 8
<div class="tabs">
9 9
  <ul>
10 10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11 11
    <li><a href="modules.html"><span>Modules</span></a></li>
12
    <li id="current"><a href="files.html"><span>Files</span></a></li>
13
  </ul></div>
14
<div class="tabs">
15
  <ul>
16
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
17
    <li><a href="globals.html"><span>Globals</span></a></li>
18
  </ul></div>
12
    <li class="current"><a href="files.html"><span>Files</span></a></li>
13
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
14
  </ul>
15
</div>
19 16
<h1>analog.h</h1><a href="analog_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
20
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef _ANALOG_H</span>
21
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _ANALOG_H</span>
22
<a name="l00019"></a>00019 <span class="preprocessor"></span>
23
<a name="l00026"></a><a class="code" href="group__analog.html#g099995994c74b5fff8f7de4ff3eac550">00026</a> <span class="preprocessor">#define AN0 0x00</span>
24
<a name="l00027"></a>00027 <span class="preprocessor"></span>
25
<a name="l00028"></a><a class="code" href="group__analog.html#g4903de2a52966c8dc2c20faf565d451d">00028</a> <span class="preprocessor">#define AN1 0x01</span>
26
<a name="l00029"></a>00029 <span class="preprocessor"></span>
27
<a name="l00030"></a><a class="code" href="group__analog.html#g9b0754e893d69a1e69e856853f70da1f">00030</a> <span class="preprocessor">#define AN2 0x02</span>
28
<a name="l00031"></a>00031 <span class="preprocessor"></span>
29
<a name="l00032"></a><a class="code" href="group__analog.html#g9f593faa38f1023698d74f03a457abe3">00032</a> <span class="preprocessor">#define AN3 0x03</span>
30
<a name="l00033"></a>00033 <span class="preprocessor"></span>
31
<a name="l00034"></a><a class="code" href="group__analog.html#gdc95f1e9cdc00268d7bca5885052171f">00034</a> <span class="preprocessor">#define AN4 0x04</span>
32
<a name="l00035"></a>00035 <span class="preprocessor"></span>
33
<a name="l00036"></a><a class="code" href="group__analog.html#g99ed455a0d536be03f12eba18ccff71b">00036</a> <span class="preprocessor">#define AN5 0x05</span>
34
<a name="l00037"></a>00037 <span class="preprocessor"></span>
35
<a name="l00038"></a><a class="code" href="group__analog.html#gd63d6861c3fa5e606de5c18ada3b4d10">00038</a> <span class="preprocessor">#define AN6 0x06</span>
36
<a name="l00039"></a>00039 <span class="preprocessor"></span>
37
<a name="l00040"></a><a class="code" href="group__analog.html#g277d706ee82bd70459b63e85489c7074">00040</a> <span class="preprocessor">#define AN7 0x07</span>
38
<a name="l00041"></a>00041 <span class="preprocessor"></span>
39
<a name="l00042"></a><a class="code" href="group__analog.html#g28b64348820dbb25c903d24f2e38a8a7">00042</a> <span class="preprocessor">#define AN8 0x08</span>
40
<a name="l00043"></a>00043 <span class="preprocessor"></span>
41
<a name="l00044"></a><a class="code" href="group__analog.html#g2fb7e4f4e0ea1f172eef79ed1f92e15f">00044</a> <span class="preprocessor">#define AN9 0x09</span>
42
<a name="l00045"></a>00045 <span class="preprocessor"></span>
43
<a name="l00046"></a><a class="code" href="group__analog.html#gc63caaf5f7a06a02522cb7f90d6c1959">00046</a> <span class="preprocessor">#define AN10 0x0a</span>
44
<a name="l00047"></a>00047 <span class="preprocessor"></span>
45
<a name="l00048"></a><a class="code" href="group__analog.html#gdfeb79b00aaef4734408a910838f7872">00048</a> <span class="preprocessor">#define AN11 0x0b</span>
46
<a name="l00049"></a>00049 <span class="preprocessor"></span>
47
<a name="l00050"></a><a class="code" href="group__analog.html#g7a50a07e69f38b6674b0494dfbc653f9">00050</a> <span class="preprocessor">#define AN12 0x0c</span>
48
<a name="l00051"></a>00051 <span class="preprocessor"></span>
49
<a name="l00052"></a><a class="code" href="group__analog.html#gbf80851ae45ddfe4bfdfc10541c255ad">00052</a> <span class="preprocessor">#define AN13 0x0d</span>
50
<a name="l00053"></a>00053 <span class="preprocessor"></span>
51
<a name="l00054"></a><a class="code" href="group__analog.html#g817772a1db513b734dfe4475c3616061">00054</a> <span class="preprocessor">#define AN14 0x0e</span>
52
<a name="l00055"></a>00055 <span class="preprocessor"></span>
53
<a name="l00056"></a><a class="code" href="group__analog.html#g797adbadae057ff7aa766d84b4f180f9">00056</a> <span class="preprocessor">#define AN15 0x0f</span>
54
<a name="l00057"></a>00057 <span class="preprocessor"></span>
55
<a name="l00059"></a><a class="code" href="group__analog.html#g3434ce39eaea22b46a0100b7fd3a6f47">00059</a> <span class="preprocessor">#define EXT_MUX AN7</span>
17
<a name="l00042"></a>00042 <span class="preprocessor">#ifndef _ANALOG_H</span>
18
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#define _ANALOG_H</span>
19
<a name="l00044"></a>00044 <span class="preprocessor"></span>
20
<a name="l00051"></a><a class="code" href="group__analog.html#g099995994c74b5fff8f7de4ff3eac550">00051</a> <span class="preprocessor">#define AN0 0x00</span>
21
<a name="l00052"></a>00052 <span class="preprocessor"></span>
22
<a name="l00053"></a><a class="code" href="group__analog.html#g4903de2a52966c8dc2c20faf565d451d">00053</a> <span class="preprocessor">#define AN1 0x01</span>
23
<a name="l00054"></a>00054 <span class="preprocessor"></span>
24
<a name="l00055"></a><a class="code" href="group__analog.html#g9b0754e893d69a1e69e856853f70da1f">00055</a> <span class="preprocessor">#define AN2 0x02</span>
25
<a name="l00056"></a>00056 <span class="preprocessor"></span>
26
<a name="l00057"></a><a class="code" href="group__analog.html#g9f593faa38f1023698d74f03a457abe3">00057</a> <span class="preprocessor">#define AN3 0x03</span>
27
<a name="l00058"></a>00058 <span class="preprocessor"></span>
28
<a name="l00059"></a><a class="code" href="group__analog.html#gdc95f1e9cdc00268d7bca5885052171f">00059</a> <span class="preprocessor">#define AN4 0x04</span>
56 29
<a name="l00060"></a>00060 <span class="preprocessor"></span>
57
<a name="l00061"></a><a class="code" href="group__analog.html#ga6538d2deb002b8441891dc4e15cd104">00061</a> <span class="preprocessor">#define WHEEL_PORT AN10</span>
30
<a name="l00061"></a><a class="code" href="group__analog.html#g99ed455a0d536be03f12eba18ccff71b">00061</a> <span class="preprocessor">#define AN5 0x05</span>
58 31
<a name="l00062"></a>00062 <span class="preprocessor"></span>
59
<a name="l00063"></a><a class="code" href="group__analog.html#gadcd026a2c91fe96c8134619c87bb72a">00063</a> <span class="preprocessor">#define BATT_PORT  AN11</span>
32
<a name="l00063"></a><a class="code" href="group__analog.html#gd63d6861c3fa5e606de5c18ada3b4d10">00063</a> <span class="preprocessor">#define AN6 0x06</span>
60 33
<a name="l00064"></a>00064 <span class="preprocessor"></span>
61
<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918">analog_init</a>(<span class="keywordtype">void</span>);
62
<a name="l00068"></a>00068 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__analog.html#gf1211040ce2c54f12f98df7d47a4eb27">analog8</a>(<span class="keywordtype">int</span> which);
63
<a name="l00070"></a>00070 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__analog.html#g875bf8cb165a3a288eb1aa2ac06be4f3">analog10</a>(<span class="keywordtype">int</span> which);
64
<a name="l00072"></a>00072 <span class="keywordtype">int</span> <a class="code" href="group__analog.html#g973e63eb508819a37efe3231b6a39550">wheel</a>(<span class="keywordtype">void</span>);
65
<a name="l00073"></a>00073  <span class="comment">//end group</span>
66
<a name="l00075"></a>00075 
67
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
68
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Sep 26 17:39:30 2007 for libdragonfly by&nbsp;
34
<a name="l00065"></a><a class="code" href="group__analog.html#g277d706ee82bd70459b63e85489c7074">00065</a> <span class="preprocessor">#define AN7 0x07</span>
35
<a name="l00066"></a>00066 <span class="preprocessor"></span>
36
<a name="l00067"></a><a class="code" href="group__analog.html#g28b64348820dbb25c903d24f2e38a8a7">00067</a> <span class="preprocessor">#define AN8 0x08</span>
37
<a name="l00068"></a>00068 <span class="preprocessor"></span>
38
<a name="l00069"></a><a class="code" href="group__analog.html#g2fb7e4f4e0ea1f172eef79ed1f92e15f">00069</a> <span class="preprocessor">#define AN9 0x09</span>
39
<a name="l00070"></a>00070 <span class="preprocessor"></span>
40
<a name="l00071"></a><a class="code" href="group__analog.html#gc63caaf5f7a06a02522cb7f90d6c1959">00071</a> <span class="preprocessor">#define AN10 0x0a</span>
41
<a name="l00072"></a>00072 <span class="preprocessor"></span>
42
<a name="l00073"></a><a class="code" href="group__analog.html#gdfeb79b00aaef4734408a910838f7872">00073</a> <span class="preprocessor">#define AN11 0x0b</span>
43
<a name="l00074"></a>00074 <span class="preprocessor"></span>
44
<a name="l00075"></a><a class="code" href="group__analog.html#g7a50a07e69f38b6674b0494dfbc653f9">00075</a> <span class="preprocessor">#define AN12 0x0c</span>
45
<a name="l00076"></a>00076 <span class="preprocessor"></span>
46
<a name="l00077"></a><a class="code" href="group__analog.html#gbf80851ae45ddfe4bfdfc10541c255ad">00077</a> <span class="preprocessor">#define AN13 0x0d</span>
47
<a name="l00078"></a>00078 <span class="preprocessor"></span>
48
<a name="l00079"></a><a class="code" href="group__analog.html#g817772a1db513b734dfe4475c3616061">00079</a> <span class="preprocessor">#define AN14 0x0e</span>
49
<a name="l00080"></a>00080 <span class="preprocessor"></span>
50
<a name="l00081"></a><a class="code" href="group__analog.html#g797adbadae057ff7aa766d84b4f180f9">00081</a> <span class="preprocessor">#define AN15 0x0f</span>
51
<a name="l00082"></a>00082 <span class="preprocessor"></span>
52
<a name="l00084"></a><a class="code" href="group__analog.html#g3434ce39eaea22b46a0100b7fd3a6f47">00084</a> <span class="preprocessor">#define EXT_MUX AN7</span>
53
<a name="l00085"></a>00085 <span class="preprocessor"></span>
54
<a name="l00086"></a><a class="code" href="group__analog.html#ga6538d2deb002b8441891dc4e15cd104">00086</a> <span class="preprocessor">#define WHEEL_PORT AN10</span>
55
<a name="l00087"></a>00087 <span class="preprocessor"></span>
56
<a name="l00088"></a><a class="code" href="group__analog.html#gadcd026a2c91fe96c8134619c87bb72a">00088</a> <span class="preprocessor">#define BATT_PORT  AN11</span>
57
<a name="l00089"></a>00089 <span class="preprocessor"></span>
58
<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="group__analog.html#g55f66ff6f3449ef81d97b7e47f041918" title="Initialize analog ports.">analog_init</a>(<span class="keywordtype">void</span>);
59
<a name="l00093"></a>00093 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__analog.html#gf1211040ce2c54f12f98df7d47a4eb27" title="Read an 8-bit number from an analog port.">analog8</a>(<span class="keywordtype">int</span> which);
60
<a name="l00095"></a>00095 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__analog.html#g875bf8cb165a3a288eb1aa2ac06be4f3" title="Read a 10-bit number from an analog port.">analog10</a>(<span class="keywordtype">int</span> which);
61
<a name="l00097"></a>00097 <span class="keywordtype">int</span> <a class="code" href="group__analog.html#g973e63eb508819a37efe3231b6a39550" title="Read the position of the wheel.">wheel</a>(<span class="keywordtype">void</span>);
62
<a name="l00098"></a>00098  <span class="comment">//end group</span>
63
<a name="l00100"></a>00100 
64
<a name="l00101"></a>00101 <span class="preprocessor">#endif</span>
65
<a name="l00102"></a>00102 <span class="preprocessor"></span>
66
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Nov 8 23:15:40 2007 for libdragonfly by&nbsp;
69 67
<a href="http://www.doxygen.org/index.html">
70
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
68
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
71 69
</body>
72 70
</html>

Also available in: Unified diff