?lang_form?
?lang_select?
?lang_submit?
?lang_endform?
{HEADER END}
{FILE START}
library
?curdirlinks? - Rev 6
?prevdifflink? - Blame - ?getfile?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Procyon AVRlib: ads7870.h File Reference</title>
<link href="dox.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.2 -->
<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>
<h1>ads7870.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
Definition in file <a class="el" href="ads7870_8h-source.html">ads7870.h</a>.
<p>
<code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br>
<p>
<a href="ads7870_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="ads7870.h::ADS7870_CS_PORT"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CS_PORT</b> PORTB</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="ads7870.h::ADS7870_CS_DDR"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CS_DDR</b> DDRB</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="ads7870.h::ADS7870_CS_PIN"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CS_PIN</b> PB0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga9" doxytag="ads7870.h::ADS7870_CONVERT"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CONVERT</b> 0x80</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga10" doxytag="ads7870.h::ADS7870_REG_READ"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REG_READ</b> 0x40</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga11" doxytag="ads7870.h::ADS7870_REG_WRITE"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REG_WRITE</b> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga12" doxytag="ads7870.h::ADS7870_REG_16BIT"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REG_16BIT</b> 0x20</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga13" doxytag="ads7870.h::ADS7870_RESULTLO"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_RESULTLO</b> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga14" doxytag="ads7870.h::ADS7870_RESULTHI"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_RESULTHI</b> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga15" doxytag="ads7870.h::ADS7870_PGAVALID"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_PGAVALID</b> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga16" doxytag="ads7870.h::ADS7870_ADCTRL"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL</b> 0x03</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga17" doxytag="ads7870.h::ADS7870_GAINMUX"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAINMUX</b> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga18" doxytag="ads7870.h::ADS7870_DIGIOSTATE"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_DIGIOSTATE</b> 0x05</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga19" doxytag="ads7870.h::ADS7870_DIGIOCTRL"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_DIGIOCTRL</b> 0x06</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga20" doxytag="ads7870.h::ADS7870_REFOSC"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC</b> 0x07</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga21" doxytag="ads7870.h::ADS7870_SERIFCTRL"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL</b> 0x18</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga22" doxytag="ads7870.h::ADS7870_ID"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ID</b> 0x1F</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga23" doxytag="ads7870.h::ADS7870_RESULTLO_OVR"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_RESULTLO_OVR</b> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga24" doxytag="ads7870.h::ADS7870_ADCTRL_BIN"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_BIN</b> 0x20</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga25" doxytag="ads7870.h::ADS7870_ADCTRL_RMB1"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_RMB1</b> 0x08</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga26" doxytag="ads7870.h::ADS7870_ADCTRL_RMB0"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_RMB0</b> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga27" doxytag="ads7870.h::ADS7870_ADCTRL_CFD1"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_CFD1</b> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga28" doxytag="ads7870.h::ADS7870_ADCTRL_CFD0"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ADCTRL_CFD0</b> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga29" doxytag="ads7870.h::ADS7870_GAINMUX_CNVBSY"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAINMUX_CNVBSY</b> 0x80</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga30" doxytag="ads7870.h::ADS7870_REFOSC_OSCR"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_OSCR</b> 0x20</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga31" doxytag="ads7870.h::ADS7870_REFOSC_OSCE"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_OSCE</b> 0x10</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga32" doxytag="ads7870.h::ADS7870_REFOSC_REFE"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_REFE</b> 0x08</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga33" doxytag="ads7870.h::ADS7870_REFOSC_BUFE"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_BUFE</b> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga34" doxytag="ads7870.h::ADS7870_REFOSC_R2V"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_R2V</b> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga35" doxytag="ads7870.h::ADS7870_REFOSC_RBG"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_REFOSC_RBG</b> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga36" doxytag="ads7870.h::ADS7870_SERIFCTRL_LSB"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL_LSB</b> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga37" doxytag="ads7870.h::ADS7870_SERIFCTRL_2W3W"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL_2W3W</b> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga38" doxytag="ads7870.h::ADS7870_SERIFCTRL_8051"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_SERIFCTRL_8051</b> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga39" doxytag="ads7870.h::ADS7870_ID_VALUE"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_ID_VALUE</b> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga40" doxytag="ads7870.h::ADS7870_GAIN_1X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_1X</b> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga41" doxytag="ads7870.h::ADS7870_GAIN_2X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_2X</b> 0x10</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga42" doxytag="ads7870.h::ADS7870_GAIN_4X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_4X</b> 0x20</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga43" doxytag="ads7870.h::ADS7870_GAIN_5X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_5X</b> 0x30</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga44" doxytag="ads7870.h::ADS7870_GAIN_8X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_8X</b> 0x40</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga45" doxytag="ads7870.h::ADS7870_GAIN_10X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_10X</b> 0x50</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga46" doxytag="ads7870.h::ADS7870_GAIN_16X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_16X</b> 0x60</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga47" doxytag="ads7870.h::ADS7870_GAIN_20X"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_GAIN_20X</b> 0x70</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga48" doxytag="ads7870.h::ADS7870_CH_0_1_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_0_1_DIFF</b> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga49" doxytag="ads7870.h::ADS7870_CH_2_3_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_2_3_DIFF</b> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga50" doxytag="ads7870.h::ADS7870_CH_4_5_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_4_5_DIFF</b> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga51" doxytag="ads7870.h::ADS7870_CH_6_7_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_6_7_DIFF</b> 0x03</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga52" doxytag="ads7870.h::ADS7870_CH_1_0_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_1_0_DIFF</b> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga53" doxytag="ads7870.h::ADS7870_CH_3_2_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_3_2_DIFF</b> 0x05</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga54" doxytag="ads7870.h::ADS7870_CH_5_4_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_5_4_DIFF</b> 0x06</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga55" doxytag="ads7870.h::ADS7870_CH_7_6_DIFF"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_7_6_DIFF</b> 0x07</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga56" doxytag="ads7870.h::ADS7870_CH_SINGLE_ENDED"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_SINGLE_ENDED</b> 0x08</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga57" doxytag="ads7870.h::ADS7870_CH_0"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_0</b> 0x08</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga58" doxytag="ads7870.h::ADS7870_CH_1"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_1</b> 0x09</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga59" doxytag="ads7870.h::ADS7870_CH_2"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_2</b> 0x0A</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga60" doxytag="ads7870.h::ADS7870_CH_3"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_3</b> 0x0B</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga61" doxytag="ads7870.h::ADS7870_CH_4"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_4</b> 0x0C</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga62" doxytag="ads7870.h::ADS7870_CH_5"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_5</b> 0x0D</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga63" doxytag="ads7870.h::ADS7870_CH_6"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_6</b> 0x0E</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga64" doxytag="ads7870.h::ADS7870_CH_7"></a>
#define </td><td class="memItemRight" valign="bottom"><b>ADS7870_CH_7</b> 0x0F</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<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>
<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>
<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>
<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>
<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>
<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>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address>
</body>
</html>
|
{FILE END}
{FOOTER START}
Powered by WebSVN v2.8.3