Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | <!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"> |
||
3 | <title>Procyon AVRlib: ads7870.h File Reference</title> |
||
4 | <link href="dox.css" rel="stylesheet" type="text/css"> |
||
5 | </head><body> |
||
6 | <!-- Generated by Doxygen 1.4.2 --> |
||
7 | <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
||
8 | <h1>ads7870.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
9 | |||
10 | <p> |
||
11 | Definition in file <a class="el" href="ads7870_8h-source.html">ads7870.h</a>. |
||
12 | <p> |
||
13 | <code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br> |
||
14 | |||
15 | <p> |
||
16 | <a href="ads7870_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
||
17 | <tr><td></td></tr> |
||
18 | <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
||
19 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="ads7870.h::ADS7870_CS_PORT"></a> |
||
20 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CS_PORT</b> PORTB</td></tr> |
||
21 | |||
22 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="ads7870.h::ADS7870_CS_DDR"></a> |
||
23 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CS_DDR</b> DDRB</td></tr> |
||
24 | |||
25 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="ads7870.h::ADS7870_CS_PIN"></a> |
||
26 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CS_PIN</b> PB0</td></tr> |
||
27 | |||
28 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga9" doxytag="ads7870.h::ADS7870_CONVERT"></a> |
||
29 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CONVERT</b> 0x80</td></tr> |
||
30 | |||
31 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga10" doxytag="ads7870.h::ADS7870_REG_READ"></a> |
||
32 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REG_READ</b> 0x40</td></tr> |
||
33 | |||
34 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga11" doxytag="ads7870.h::ADS7870_REG_WRITE"></a> |
||
35 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REG_WRITE</b> 0x00</td></tr> |
||
36 | |||
37 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga12" doxytag="ads7870.h::ADS7870_REG_16BIT"></a> |
||
38 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REG_16BIT</b> 0x20</td></tr> |
||
39 | |||
40 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga13" doxytag="ads7870.h::ADS7870_RESULTLO"></a> |
||
41 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_RESULTLO</b> 0x00</td></tr> |
||
42 | |||
43 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga14" doxytag="ads7870.h::ADS7870_RESULTHI"></a> |
||
44 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_RESULTHI</b> 0x01</td></tr> |
||
45 | |||
46 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga15" doxytag="ads7870.h::ADS7870_PGAVALID"></a> |
||
47 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_PGAVALID</b> 0x02</td></tr> |
||
48 | |||
49 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga16" doxytag="ads7870.h::ADS7870_ADCTRL"></a> |
||
50 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL</b> 0x03</td></tr> |
||
51 | |||
52 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga17" doxytag="ads7870.h::ADS7870_GAINMUX"></a> |
||
53 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAINMUX</b> 0x04</td></tr> |
||
54 | |||
55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga18" doxytag="ads7870.h::ADS7870_DIGIOSTATE"></a> |
||
56 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_DIGIOSTATE</b> 0x05</td></tr> |
||
57 | |||
58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga19" doxytag="ads7870.h::ADS7870_DIGIOCTRL"></a> |
||
59 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_DIGIOCTRL</b> 0x06</td></tr> |
||
60 | |||
61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga20" doxytag="ads7870.h::ADS7870_REFOSC"></a> |
||
62 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC</b> 0x07</td></tr> |
||
63 | |||
64 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga21" doxytag="ads7870.h::ADS7870_SERIFCTRL"></a> |
||
65 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL</b> 0x18</td></tr> |
||
66 | |||
67 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga22" doxytag="ads7870.h::ADS7870_ID"></a> |
||
68 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ID</b> 0x1F</td></tr> |
||
69 | |||
70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga23" doxytag="ads7870.h::ADS7870_RESULTLO_OVR"></a> |
||
71 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_RESULTLO_OVR</b> 0x01</td></tr> |
||
72 | |||
73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga24" doxytag="ads7870.h::ADS7870_ADCTRL_BIN"></a> |
||
74 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_BIN</b> 0x20</td></tr> |
||
75 | |||
76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga25" doxytag="ads7870.h::ADS7870_ADCTRL_RMB1"></a> |
||
77 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_RMB1</b> 0x08</td></tr> |
||
78 | |||
79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga26" doxytag="ads7870.h::ADS7870_ADCTRL_RMB0"></a> |
||
80 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_RMB0</b> 0x04</td></tr> |
||
81 | |||
82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga27" doxytag="ads7870.h::ADS7870_ADCTRL_CFD1"></a> |
||
83 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_CFD1</b> 0x02</td></tr> |
||
84 | |||
85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga28" doxytag="ads7870.h::ADS7870_ADCTRL_CFD0"></a> |
||
86 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_CFD0</b> 0x01</td></tr> |
||
87 | |||
88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga29" doxytag="ads7870.h::ADS7870_GAINMUX_CNVBSY"></a> |
||
89 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAINMUX_CNVBSY</b> 0x80</td></tr> |
||
90 | |||
91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga30" doxytag="ads7870.h::ADS7870_REFOSC_OSCR"></a> |
||
92 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_OSCR</b> 0x20</td></tr> |
||
93 | |||
94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga31" doxytag="ads7870.h::ADS7870_REFOSC_OSCE"></a> |
||
95 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_OSCE</b> 0x10</td></tr> |
||
96 | |||
97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga32" doxytag="ads7870.h::ADS7870_REFOSC_REFE"></a> |
||
98 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_REFE</b> 0x08</td></tr> |
||
99 | |||
100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga33" doxytag="ads7870.h::ADS7870_REFOSC_BUFE"></a> |
||
101 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_BUFE</b> 0x04</td></tr> |
||
102 | |||
103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga34" doxytag="ads7870.h::ADS7870_REFOSC_R2V"></a> |
||
104 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_R2V</b> 0x02</td></tr> |
||
105 | |||
106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga35" doxytag="ads7870.h::ADS7870_REFOSC_RBG"></a> |
||
107 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_RBG</b> 0x01</td></tr> |
||
108 | |||
109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga36" doxytag="ads7870.h::ADS7870_SERIFCTRL_LSB"></a> |
||
110 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL_LSB</b> 0x01</td></tr> |
||
111 | |||
112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga37" doxytag="ads7870.h::ADS7870_SERIFCTRL_2W3W"></a> |
||
113 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL_2W3W</b> 0x02</td></tr> |
||
114 | |||
115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga38" doxytag="ads7870.h::ADS7870_SERIFCTRL_8051"></a> |
||
116 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL_8051</b> 0x04</td></tr> |
||
117 | |||
118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga39" doxytag="ads7870.h::ADS7870_ID_VALUE"></a> |
||
119 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ID_VALUE</b> 0x01</td></tr> |
||
120 | |||
121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga40" doxytag="ads7870.h::ADS7870_GAIN_1X"></a> |
||
122 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_1X</b> 0x00</td></tr> |
||
123 | |||
124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga41" doxytag="ads7870.h::ADS7870_GAIN_2X"></a> |
||
125 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_2X</b> 0x10</td></tr> |
||
126 | |||
127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga42" doxytag="ads7870.h::ADS7870_GAIN_4X"></a> |
||
128 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_4X</b> 0x20</td></tr> |
||
129 | |||
130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga43" doxytag="ads7870.h::ADS7870_GAIN_5X"></a> |
||
131 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_5X</b> 0x30</td></tr> |
||
132 | |||
133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga44" doxytag="ads7870.h::ADS7870_GAIN_8X"></a> |
||
134 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_8X</b> 0x40</td></tr> |
||
135 | |||
136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga45" doxytag="ads7870.h::ADS7870_GAIN_10X"></a> |
||
137 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_10X</b> 0x50</td></tr> |
||
138 | |||
139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga46" doxytag="ads7870.h::ADS7870_GAIN_16X"></a> |
||
140 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_16X</b> 0x60</td></tr> |
||
141 | |||
142 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga47" doxytag="ads7870.h::ADS7870_GAIN_20X"></a> |
||
143 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_20X</b> 0x70</td></tr> |
||
144 | |||
145 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga48" doxytag="ads7870.h::ADS7870_CH_0_1_DIFF"></a> |
||
146 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_0_1_DIFF</b> 0x00</td></tr> |
||
147 | |||
148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga49" doxytag="ads7870.h::ADS7870_CH_2_3_DIFF"></a> |
||
149 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_2_3_DIFF</b> 0x01</td></tr> |
||
150 | |||
151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga50" doxytag="ads7870.h::ADS7870_CH_4_5_DIFF"></a> |
||
152 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_4_5_DIFF</b> 0x02</td></tr> |
||
153 | |||
154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga51" doxytag="ads7870.h::ADS7870_CH_6_7_DIFF"></a> |
||
155 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_6_7_DIFF</b> 0x03</td></tr> |
||
156 | |||
157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga52" doxytag="ads7870.h::ADS7870_CH_1_0_DIFF"></a> |
||
158 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_1_0_DIFF</b> 0x04</td></tr> |
||
159 | |||
160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga53" doxytag="ads7870.h::ADS7870_CH_3_2_DIFF"></a> |
||
161 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_3_2_DIFF</b> 0x05</td></tr> |
||
162 | |||
163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga54" doxytag="ads7870.h::ADS7870_CH_5_4_DIFF"></a> |
||
164 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_5_4_DIFF</b> 0x06</td></tr> |
||
165 | |||
166 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga55" doxytag="ads7870.h::ADS7870_CH_7_6_DIFF"></a> |
||
167 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_7_6_DIFF</b> 0x07</td></tr> |
||
168 | |||
169 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga56" doxytag="ads7870.h::ADS7870_CH_SINGLE_ENDED"></a> |
||
170 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_SINGLE_ENDED</b> 0x08</td></tr> |
||
171 | |||
172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga57" doxytag="ads7870.h::ADS7870_CH_0"></a> |
||
173 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_0</b> 0x08</td></tr> |
||
174 | |||
175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga58" doxytag="ads7870.h::ADS7870_CH_1"></a> |
||
176 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_1</b> 0x09</td></tr> |
||
177 | |||
178 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga59" doxytag="ads7870.h::ADS7870_CH_2"></a> |
||
179 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_2</b> 0x0A</td></tr> |
||
180 | |||
181 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga60" doxytag="ads7870.h::ADS7870_CH_3"></a> |
||
182 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_3</b> 0x0B</td></tr> |
||
183 | |||
184 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga61" doxytag="ads7870.h::ADS7870_CH_4"></a> |
||
185 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_4</b> 0x0C</td></tr> |
||
186 | |||
187 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga62" doxytag="ads7870.h::ADS7870_CH_5"></a> |
||
188 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_5</b> 0x0D</td></tr> |
||
189 | |||
190 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga63" doxytag="ads7870.h::ADS7870_CH_6"></a> |
||
191 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_6</b> 0x0E</td></tr> |
||
192 | |||
193 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga64" doxytag="ads7870.h::ADS7870_CH_7"></a> |
||
194 | #define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_7</b> 0x0F</td></tr> |
||
195 | |||
196 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
197 | <tr><td class="memItemLeft" nowrap align="right" valign="top">u08 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads7870.html#ga0">ads7870Init</a> (void)</td></tr> |
||
198 | |||
199 | <tr><td class="memItemLeft" nowrap align="right" valign="top">s16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads7870.html#ga1">ads7870Convert</a> (u08 channel)</td></tr> |
||
200 | |||
201 | <tr><td class="memItemLeft" nowrap align="right" valign="top">s16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads7870.html#ga2">ads7870ConvertDiff</a> (u08 channel)</td></tr> |
||
202 | |||
203 | <tr><td class="memItemLeft" nowrap align="right" valign="top">s16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads7870.html#ga3">ads7870ConvertRaw</a> (u08 channel)</td></tr> |
||
204 | |||
205 | <tr><td class="memItemLeft" nowrap align="right" valign="top">u08 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads7870.html#ga4">ads7870ReadReg</a> (u08 reg)</td></tr> |
||
206 | |||
207 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads7870.html#ga5">ads7870WriteReg</a> (u08 reg, u08 value)</td></tr> |
||
208 | |||
209 | </table> |
||
210 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by |
||
211 | <a href="http://www.doxygen.org/index.html"> |
||
212 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
213 | </body> |
||
214 | </html> |
Powered by WebSVN v2.8.3