Project

General

Profile

Statistics
| Revision:

root / trunk / docs / libdragonfly / bom_8h-source.html @ 1145

History | View | Annotate | Download (4.78 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>libdragonfly: bom.h Source File</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
</head><body>
7
<!-- Generated by Doxygen 1.5.5 -->
8
<div class="navigation" id="top">
9
  <div class="tabs">
10
    <ul>
11
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13
      <li><a href="modules.html"><span>Modules</span></a></li>
14
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
15
      <li class="current"><a href="files.html"><span>Files</span></a></li>
16
    </ul>
17
  </div>
18
<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 
19
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef _BOM_H</span>
20
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define _BOM_H</span>
21
<a name="l00040"></a>00040 <span class="preprocessor"></span>
22
<a name="l00047"></a><a class="code" href="group__bom.html#g3f1e6fc7eeb6d7cffde8bb03ff8dc488">00047</a> <span class="preprocessor">#define BOM_ALL 0xFFFF</span>
23
<a name="l00048"></a>00048 <span class="preprocessor"></span>
24
<a name="l00050"></a><a class="code" href="group__bom.html#gacc7c8241c56ea13b6d50efb281df890">00050</a> <span class="preprocessor">#define BOM10     0</span>
25
<a name="l00051"></a>00051 <span class="preprocessor"></span>
26
<a name="l00053"></a><a class="code" href="group__bom.html#g8c5367cf01a2a7ede66be0f2a49b28d0">00053</a> <span class="preprocessor">#define BOM15   1</span>
27
<a name="l00054"></a>00054 <span class="preprocessor"></span>
28
<a name="l00056"></a><a class="code" href="group__bom.html#g1ff400a0e77d2266138b080061f49d01">00056</a> <span class="preprocessor">#define RBOM    2</span>
29
<a name="l00057"></a>00057 <span class="preprocessor"></span>
30
<a name="l00058"></a>00058 
31
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="group__bom.html#g101f932380b02b48a0ca3d20ffc8c08f" title="Initialize the bom according to bom type.">bom_init</a>(<span class="keywordtype">char</span> type);
32
<a name="l00061"></a>00061 
33
<a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="group__bom.html#gbdcdf3a1428f8145ee5eed82efdaf0fc" 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);
34
<a name="l00064"></a>00064 
35
<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);
36
<a name="l00067"></a>00067 
37
<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>);
38
<a name="l00070"></a>00070 
39
<a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="group__bom.html#g8e42fe2740ecc49e7c057e9d7df9c9eb" title="Enables the selected bom leds on a BOM1.5.">bom_set_leds</a>(<span class="keywordtype">int</span> bit_field);
40
<a name="l00073"></a>00073 
41
<a name="l00075"></a>00075 <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>);
42
<a name="l00076"></a>00076 
43
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="group__bom.html#g93b665ff81fc6b58503c6ba5ba01c1bf" title="Turns on all BOM leds, or turns on enabled leds on a BOM1.5.">bom_on</a>(<span class="keywordtype">void</span>);
44
<a name="l00079"></a>00079 
45
<a name="l00081"></a>00081 <span class="keywordtype">void</span> <a class="code" href="group__bom.html#g61a66e53cdee8bce139c707153143b30" title="Turns off all bom leds.">bom_off</a>(<span class="keywordtype">void</span>);
46
<a name="l00082"></a>00082 
47
<a name="l00085"></a>00085 <span class="preprocessor">#endif</span>
48
<a name="l00086"></a>00086 <span class="preprocessor"></span>
49
</pre></div></div>
50
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Apr 16 18:33:23 2009 for libdragonfly by&nbsp;
51
<a href="http://www.doxygen.org/index.html">
52
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
53
</body>
54
</html>