| 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: net/ax88796.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 | <div class="nav"> |
||
| 9 | <a class="el" href="dir_000001.html">net</a></div> |
||
| 10 | <h1>ax88796.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
| 11 | |||
| 12 | <p> |
||
| 13 | Definition in file <a class="el" href="ax88796_8c-source.html">ax88796.c</a>. |
||
| 14 | <p> |
||
| 15 | <code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br> |
||
| 16 | <code>#include "<a class="el" href="timer_8h-source.html">timer.h</a>"</code><br> |
||
| 17 | <code>#include "<a class="el" href="rprintf_8h-source.html">rprintf.h</a>"</code><br> |
||
| 18 | <code>#include "<a class="el" href="ax88796_8h-source.html">ax88796.h</a>"</code><br> |
||
| 19 | <code>#include "<a class="el" href="ax88796conf_8h-source.html">ax88796conf.h</a>"</code><br> |
||
| 20 | |||
| 21 | <p> |
||
| 22 | <a href="ax88796_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
||
| 23 | <tr><td></td></tr> |
||
| 24 | <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
||
| 25 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="ax88796.c::set_mdc"></a> |
||
| 26 | #define </td><td class="memItemRight" valign="bottom"><b>set_mdc</b> ax88796Write(MEMR,ax88796Read(MEMR)|0x01);</td></tr> |
||
| 27 | |||
| 28 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="ax88796.c::clr_mdc"></a> |
||
| 29 | #define </td><td class="memItemRight" valign="bottom"><b>clr_mdc</b> ax88796Write(MEMR,ax88796Read(MEMR)&0xFE);</td></tr> |
||
| 30 | |||
| 31 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="ax88796.c::mii_clk"></a> |
||
| 32 | #define </td><td class="memItemRight" valign="bottom"><b>mii_clk</b> set_mdc; clr_mdc;</td></tr> |
||
| 33 | |||
| 34 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="ax88796.c::set_mdir"></a> |
||
| 35 | #define </td><td class="memItemRight" valign="bottom"><b>set_mdir</b> ax88796Write(MEMR,ax88796Read(MEMR)|0x02);</td></tr> |
||
| 36 | |||
| 37 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="ax88796.c::clr_mdir"></a> |
||
| 38 | #define </td><td class="memItemRight" valign="bottom"><b>clr_mdir</b> ax88796Write(MEMR,ax88796Read(MEMR)&0xFD);</td></tr> |
||
| 39 | |||
| 40 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="ax88796.c::set_mdo"></a> |
||
| 41 | #define </td><td class="memItemRight" valign="bottom"><b>set_mdo</b> ax88796Write(MEMR,ax88796Read(MEMR)|0x08)</td></tr> |
||
| 42 | |||
| 43 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="ax88796.c::clr_mdo"></a> |
||
| 44 | #define </td><td class="memItemRight" valign="bottom"><b>clr_mdo</b> ax88796Write(MEMR,ax88796Read(MEMR)&0xF7)</td></tr> |
||
| 45 | |||
| 46 | <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>mii_write</b></td></tr> |
||
| 47 | |||
| 48 | <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>mii_read</b></td></tr> |
||
| 49 | |||
| 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="ax88796.c::mii_r_ta"></a> |
||
| 51 | #define </td><td class="memItemRight" valign="bottom"><b>mii_r_ta</b> mii_clk; \</td></tr> |
||
| 52 | |||
| 53 | <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>mii_w_ta</b></td></tr> |
||
| 54 | |||
| 55 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
| 56 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__nic.html#ga0">nicInit</a> (void)</td></tr> |
||
| 57 | |||
| 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__nic.html#ga1">nicSend</a> (unsigned int len, unsigned char *packet)</td></tr> |
||
| 59 | |||
| 60 | <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__nic.html#ga2">nicPoll</a> (unsigned int maxlen, unsigned char *packet)</td></tr> |
||
| 61 | |||
| 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a16" doxytag="ax88796.c::nicGetMacAddress"></a> |
||
| 63 | void </td><td class="memItemRight" valign="bottom"><b>nicGetMacAddress</b> (u08 *macaddr)</td></tr> |
||
| 64 | |||
| 65 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a17" doxytag="ax88796.c::nicSetMacAddress"></a> |
||
| 66 | void </td><td class="memItemRight" valign="bottom"><b>nicSetMacAddress</b> (u08 *macaddr)</td></tr> |
||
| 67 | |||
| 68 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__nic.html#ga5">nicRegDump</a> (void)</td></tr> |
||
| 69 | |||
| 70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga0" doxytag="ax88796.c::ax88796SetupPorts"></a> |
||
| 71 | void </td><td class="memItemRight" valign="bottom"><b>ax88796SetupPorts</b> (void)</td></tr> |
||
| 72 | |||
| 73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2" doxytag="ax88796.c::ax88796Write"></a> |
||
| 74 | void </td><td class="memItemRight" valign="bottom"><b>ax88796Write</b> (u08 address, u08 data)</td></tr> |
||
| 75 | |||
| 76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga1" doxytag="ax88796.c::ax88796Read"></a> |
||
| 77 | u08 </td><td class="memItemRight" valign="bottom"><b>ax88796Read</b> (u08 address)</td></tr> |
||
| 78 | |||
| 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga3" doxytag="ax88796.c::ax88796Init"></a> |
||
| 80 | void </td><td class="memItemRight" valign="bottom"><b>ax88796Init</b> (void)</td></tr> |
||
| 81 | |||
| 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="ax88796.c::ax88796BeginPacketSend"></a> |
||
| 83 | void </td><td class="memItemRight" valign="bottom"><b>ax88796BeginPacketSend</b> (unsigned int packetLength)</td></tr> |
||
| 84 | |||
| 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="ax88796.c::ax88796SendPacketData"></a> |
||
| 86 | void </td><td class="memItemRight" valign="bottom"><b>ax88796SendPacketData</b> (unsigned char *localBuffer, unsigned int length)</td></tr> |
||
| 87 | |||
| 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="ax88796.c::ax88796EndPacketSend"></a> |
||
| 89 | void </td><td class="memItemRight" valign="bottom"><b>ax88796EndPacketSend</b> (void)</td></tr> |
||
| 90 | |||
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="ax88796.c::ax88796BeginPacketRetreive"></a> |
||
| 92 | unsigned int </td><td class="memItemRight" valign="bottom"><b>ax88796BeginPacketRetreive</b> (void)</td></tr> |
||
| 93 | |||
| 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="ax88796.c::ax88796RetreivePacketData"></a> |
||
| 95 | void </td><td class="memItemRight" valign="bottom"><b>ax88796RetreivePacketData</b> (unsigned char *localBuffer, unsigned int length)</td></tr> |
||
| 96 | |||
| 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga9" doxytag="ax88796.c::ax88796EndPacketRetreive"></a> |
||
| 98 | void </td><td class="memItemRight" valign="bottom"><b>ax88796EndPacketRetreive</b> (void)</td></tr> |
||
| 99 | |||
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga10" doxytag="ax88796.c::ax88796ProcessInterrupt"></a> |
||
| 101 | void </td><td class="memItemRight" valign="bottom"><b>ax88796ProcessInterrupt</b> (void)</td></tr> |
||
| 102 | |||
| 103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga11" doxytag="ax88796.c::ax88796ReceiveOverflowRecover"></a> |
||
| 104 | void </td><td class="memItemRight" valign="bottom"><b>ax88796ReceiveOverflowRecover</b> (void)</td></tr> |
||
| 105 | |||
| 106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga12" doxytag="ax88796.c::ax88796WriteMii"></a> |
||
| 107 | void </td><td class="memItemRight" valign="bottom"><b>ax88796WriteMii</b> (unsigned char phyad, unsigned char regad, unsigned int mii_data)</td></tr> |
||
| 108 | |||
| 109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga13" doxytag="ax88796.c::ax88796ReadMii"></a> |
||
| 110 | unsigned int </td><td class="memItemRight" valign="bottom"><b>ax88796ReadMii</b> (unsigned char phyad, unsigned char regad)</td></tr> |
||
| 111 | |||
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga14" doxytag="ax88796.c::ax88796RegDump"></a> |
||
| 113 | void </td><td class="memItemRight" valign="bottom"><b>ax88796RegDump</b> (void)</td></tr> |
||
| 114 | |||
| 115 | </table> |
||
| 116 | <hr><h2>Define Documentation</h2> |
||
| 117 | <a class="anchor" name="a8" doxytag="ax88796.c::mii_read"></a><p> |
||
| 118 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
||
| 119 | <tr> |
||
| 120 | <td class="mdRow"> |
||
| 121 | <table cellpadding="0" cellspacing="0" border="0"> |
||
| 122 | <tr> |
||
| 123 | <td class="md" nowrap valign="top">#define mii_read </td> |
||
| 124 | </tr> |
||
| 125 | </table> |
||
| 126 | </td> |
||
| 127 | </tr> |
||
| 128 | </table> |
||
| 129 | <table cellspacing="5" cellpadding="0" border="0"> |
||
| 130 | <tr> |
||
| 131 | <td> |
||
| 132 | |
||
| 133 | </td> |
||
| 134 | <td> |
||
| 135 | |||
| 136 | <p> |
||
| 137 | <b>Value:</b><div class="fragment"><pre class="fragment">clr_mdo; mii_clk; \ |
||
| 138 | set_mdo; mii_clk; \ |
||
| 139 | set_mdo; mii_clk; \ |
||
| 140 | clr_mdo; mii_clk; |
||
| 141 | </pre></div> |
||
| 142 | <p> |
||
| 143 | Definition at line <a class="el" href="ax88796_8c-source.html#l00535">535</a> of file <a class="el" href="ax88796_8c-source.html">ax88796.c</a>. </td> |
||
| 144 | </tr> |
||
| 145 | </table> |
||
| 146 | <a class="anchor" name="a10" doxytag="ax88796.c::mii_w_ta"></a><p> |
||
| 147 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
||
| 148 | <tr> |
||
| 149 | <td class="mdRow"> |
||
| 150 | <table cellpadding="0" cellspacing="0" border="0"> |
||
| 151 | <tr> |
||
| 152 | <td class="md" nowrap valign="top">#define mii_w_ta </td> |
||
| 153 | </tr> |
||
| 154 | </table> |
||
| 155 | </td> |
||
| 156 | </tr> |
||
| 157 | </table> |
||
| 158 | <table cellspacing="5" cellpadding="0" border="0"> |
||
| 159 | <tr> |
||
| 160 | <td> |
||
| 161 | |
||
| 162 | </td> |
||
| 163 | <td> |
||
| 164 | |||
| 165 | <p> |
||
| 166 | <b>Value:</b><div class="fragment"><pre class="fragment">set_mdo; mii_clk; \ |
||
| 167 | clr_mdo; mii_clk; |
||
| 168 | </pre></div> |
||
| 169 | <p> |
||
| 170 | Definition at line <a class="el" href="ax88796_8c-source.html#l00542">542</a> of file <a class="el" href="ax88796_8c-source.html">ax88796.c</a>. </td> |
||
| 171 | </tr> |
||
| 172 | </table> |
||
| 173 | <a class="anchor" name="a7" doxytag="ax88796.c::mii_write"></a><p> |
||
| 174 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
||
| 175 | <tr> |
||
| 176 | <td class="mdRow"> |
||
| 177 | <table cellpadding="0" cellspacing="0" border="0"> |
||
| 178 | <tr> |
||
| 179 | <td class="md" nowrap valign="top">#define mii_write </td> |
||
| 180 | </tr> |
||
| 181 | </table> |
||
| 182 | </td> |
||
| 183 | </tr> |
||
| 184 | </table> |
||
| 185 | <table cellspacing="5" cellpadding="0" border="0"> |
||
| 186 | <tr> |
||
| 187 | <td> |
||
| 188 | |
||
| 189 | </td> |
||
| 190 | <td> |
||
| 191 | |||
| 192 | <p> |
||
| 193 | <b>Value:</b><div class="fragment"><pre class="fragment">clr_mdo; mii_clk; \ |
||
| 194 | set_mdo; mii_clk; \ |
||
| 195 | clr_mdo; mii_clk; \ |
||
| 196 | set_mdo; mii_clk; |
||
| 197 | </pre></div> |
||
| 198 | <p> |
||
| 199 | Definition at line <a class="el" href="ax88796_8c-source.html#l00530">530</a> of file <a class="el" href="ax88796_8c-source.html">ax88796.c</a>. </td> |
||
| 200 | </tr> |
||
| 201 | </table> |
||
| 202 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by |
||
| 203 | <a href="http://www.doxygen.org/index.html"> |
||
| 204 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
| 205 | </body> |
||
| 206 | </html> |
Powered by WebSVN v2.8.3