| 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: a2d.c 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>a2d.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
| 9 | |||
| 10 | <p> |
||
| 11 | Definition in file <a class="el" href="a2d_8c-source.html">a2d.c</a>. |
||
| 12 | <p> |
||
| 13 | <code>#include <avr/io.h></code><br> |
||
| 14 | <code>#include <avr/interrupt.h></code><br> |
||
| 15 | <code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br> |
||
| 16 | <code>#include "<a class="el" href="a2d_8h-source.html">a2d.h</a>"</code><br> |
||
| 17 | |||
| 18 | <p> |
||
| 19 | <a href="a2d_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
||
| 20 | <tr><td></td></tr> |
||
| 21 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
| 22 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga0">a2dInit</a> (void)</td></tr> |
||
| 23 | |||
| 24 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga1" doxytag="a2d.c::a2dOff"></a> |
||
| 25 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga1">a2dOff</a> (void)</td></tr> |
||
| 26 | |||
| 27 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Turn off A/D converter. <br></td></tr> |
||
| 28 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga2">a2dSetPrescaler</a> (unsigned char prescale)</td></tr> |
||
| 29 | |||
| 30 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga3">a2dSetReference</a> (unsigned char ref)</td></tr> |
||
| 31 | |||
| 32 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="a2d.c::a2dSetChannel"></a> |
||
| 33 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga4">a2dSetChannel</a> (unsigned char ch)</td></tr> |
||
| 34 | |||
| 35 | <tr><td class="mdescLeft"> </td><td class="mdescRight">sets the a2d input channel <br></td></tr> |
||
| 36 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="a2d.c::a2dStartConvert"></a> |
||
| 37 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga5">a2dStartConvert</a> (void)</td></tr> |
||
| 38 | |||
| 39 | <tr><td class="mdescLeft"> </td><td class="mdescRight">start a conversion on the current a2d input channel <br></td></tr> |
||
| 40 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="a2d.c::a2dIsComplete"></a> |
||
| 41 | u08 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga6">a2dIsComplete</a> (void)</td></tr> |
||
| 42 | |||
| 43 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return TRUE if conversion is complete <br></td></tr> |
||
| 44 | <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned short </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga7">a2dConvert10bit</a> (unsigned char ch)</td></tr> |
||
| 45 | |||
| 46 | <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="group__a2d.html#ga8">a2dConvert8bit</a> (unsigned char ch)</td></tr> |
||
| 47 | |||
| 48 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="a2d.c::SIGNAL"></a> |
||
| 49 | </td><td class="memItemRight" valign="bottom"><a class="el" href="a2d_8c.html#a10">SIGNAL</a> (SIG_ADC)</td></tr> |
||
| 50 | |||
| 51 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for ADC complete interrupt. <br></td></tr> |
||
| 52 | <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
||
| 53 | <tr><td class="memItemLeft" nowrap align="right" valign="top">volatile unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="a2d_8c.html#a0">a2dCompleteFlag</a></td></tr> |
||
| 54 | |||
| 55 | </table> |
||
| 56 | <hr><h2>Variable Documentation</h2> |
||
| 57 | <a class="anchor" name="a0" doxytag="a2d.c::a2dCompleteFlag"></a><p> |
||
| 58 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
||
| 59 | <tr> |
||
| 60 | <td class="mdRow"> |
||
| 61 | <table cellpadding="0" cellspacing="0" border="0"> |
||
| 62 | <tr> |
||
| 63 | <td class="md" nowrap valign="top">volatile unsigned char <a class="el" href="a2d_8c.html#a0">a2dCompleteFlag</a> </td> |
||
| 64 | </tr> |
||
| 65 | </table> |
||
| 66 | </td> |
||
| 67 | </tr> |
||
| 68 | </table> |
||
| 69 | <table cellspacing="5" cellpadding="0" border="0"> |
||
| 70 | <tr> |
||
| 71 | <td> |
||
| 72 | |
||
| 73 | </td> |
||
| 74 | <td> |
||
| 75 | |||
| 76 | <p> |
||
| 77 | Software flag used to indicate when the a2d conversion is complete. |
||
| 78 | <p> |
||
| 79 | Definition at line <a class="el" href="a2d_8c-source.html#l00028">28</a> of file <a class="el" href="a2d_8c-source.html">a2d.c</a>. </td> |
||
| 80 | </tr> |
||
| 81 | </table> |
||
| 82 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by |
||
| 83 | <a href="http://www.doxygen.org/index.html"> |
||
| 84 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
| 85 | </body> |
||
| 86 | </html> |
Powered by WebSVN v2.8.3