root / branches / wireless / docs / libdragonfly / html / bom_8h-source.html @ 1578
History | View | Annotate | Download (5.25 KB)
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|---|
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
3 |
<title>Colony: bom.h Source File</title> |
4 |
<link href="tabs.css" rel="stylesheet" type="text/css"> |
5 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
6 |
</head><body> |
7 |
<!-- Generated by Doxygen 1.5.8 -->
|
8 |
<div class="navigation" id="top"> |
9 |
<div class="tabs"> |
10 |
<ul>
|
11 |
<li><a href="index.html"><span>Main Page</span></a></li> |
12 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
13 |
<li><a href="modules.html"><span>Modules</span></a></li> |
14 |
<li><a href="annotated.html"><span>Data Structures</span></a></li> |
15 |
<li class="current"><a href="files.html"><span>Files</span></a></li> |
16 |
</ul>
|
17 |
</div>
|
18 |
<div class="tabs"> |
19 |
<ul>
|
20 |
<li><a href="files.html"><span>File List</span></a></li> |
21 |
<li><a href="globals.html"><span>Globals</span></a></li> |
22 |
</ul>
|
23 |
</div>
|
24 |
<h1>bom.h</h1><a href="bom_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
25 |
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef _BOM_H</span> |
26 |
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define _BOM_H</span> |
27 |
<a name="l00040"></a>00040 <span class="preprocessor"></span> |
28 |
<a name="l00047"></a><a class="code" href="group__bom.html#g3f1e6fc7eeb6d7cffde8bb03ff8dc488">00047</a> <span class="preprocessor">#define BOM_ALL 0xFFFF</span> |
29 |
<a name="l00048"></a>00048 <span class="preprocessor"></span> |
30 |
<a name="l00050"></a><a class="code" href="group__bom.html#gacc7c8241c56ea13b6d50efb281df890">00050</a> <span class="preprocessor">#define BOM10 0</span> |
31 |
<a name="l00051"></a>00051 <span class="preprocessor"></span> |
32 |
<a name="l00053"></a><a class="code" href="group__bom.html#g8c5367cf01a2a7ede66be0f2a49b28d0">00053</a> <span class="preprocessor">#define BOM15 1</span> |
33 |
<a name="l00054"></a>00054 <span class="preprocessor"></span> |
34 |
<a name="l00056"></a><a class="code" href="group__bom.html#g1ff400a0e77d2266138b080061f49d01">00056</a> <span class="preprocessor">#define RBOM 2</span> |
35 |
<a name="l00057"></a>00057 <span class="preprocessor"></span> |
36 |
<a name="l00058"></a>00058 |
37 |
<a name="l00060"></a>00060 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#g246031da5c3e5b2a9a9e26111f94eefc" title="Initialize the bom according to bom type.">bom_init</a>(<span class="keywordtype">char</span> type); |
38 |
<a name="l00061"></a>00061 |
39 |
<a name="l00063"></a>00063 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#g7a588733784c3e3ac915b7caef6365a9" title="Refresh bom_val[] with new values from analog8. analog_init and bom_init must be...">bom_refresh</a>(<span class="keywordtype">int</span> bit_field); |
40 |
<a name="l00064"></a>00064 |
41 |
<a name="l00066"></a>00066 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#gd28d2a59a5090390e20f87cfd05b0a8b" title="Gets the bom reading from bom_val[which]. Call bom_refresh beforehand to read new...">bom_get</a>(<span class="keywordtype">int</span> which); |
42 |
<a name="l00067"></a>00067 |
43 |
<a name="l00069"></a>00069 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#gbce8d8dd8f11d8f5e9f9d74d84ea15db" title="Compares all the values in bom_val[] and returns the index to the highest value element...">bom_get_max</a>(<span class="keywordtype">void</span>); |
44 |
<a name="l00070"></a>00070 |
45 |
<a name="l00072"></a>00072 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#g88316fc0dab8c7e6bb700ba8981e5765" title="Computes the weighted average of all the bom readings to estimate the position and...">bom_get_max10</a>(<span class="keywordtype">int</span> *dist); |
46 |
<a name="l00073"></a>00073 |
47 |
<a name="l00075"></a>00075 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#g184db44bd32eef775c650c7f369b7ffa" title="Enables the selected bom leds on a BOM1.5.">bom_set_leds</a>(<span class="keywordtype">int</span> bit_field); |
48 |
<a name="l00076"></a>00076 |
49 |
<a name="l00078"></a>00078 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#g86753fe7440cd64e60c58ad31c62264a" title="(DEPRECATED) Gets and compares all bom values. Returns the index to the highest value...">get_max_bom</a>(<span class="keywordtype">void</span>); |
50 |
<a name="l00079"></a>00079 |
51 |
<a name="l00081"></a>00081 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#g3311d5de1727b36719d19d54bdd42278" title="Turns on all BOM leds, or turns on enabled leds on a BOM1.5.">bom_on</a>(<span class="keywordtype">void</span>); |
52 |
<a name="l00082"></a>00082 |
53 |
<a name="l00084"></a>00084 <span class="keywordtype">int</span> <a class="code" href="group__bom.html#gb64c33f35899910af466984af149ab71" title="Turns off all bom leds.">bom_off</a>(<span class="keywordtype">void</span>); |
54 |
<a name="l00085"></a>00085 |
55 |
<a name="l00088"></a>00088 <span class="preprocessor">#endif</span> |
56 |
<a name="l00089"></a>00089 <span class="preprocessor"></span> |
57 |
</pre></div></div> |
58 |
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Nov 20 21:51:59 2009 for Colony by |
59 |
<a href="http://www.doxygen.org/index.html"> |
60 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
61 |
</body>
|
62 |
</html>
|