📄 ethernet_8c.html
字号:
</tr></table><a name="a8" doxytag="ethernet.c::inNE2000"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> UINT8 inNE2000 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 </td> <td class="mdname1" valign="top" nowrap> <em>reg</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>19.02.2002 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>reg</em> </td><td>NE2000 register address </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>Register content</dl>Invoke this function to read contents of a NE2000 register. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00198">198</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="config_8h-source.html#l00097">ADRBUS</a>, <a class="el" href="config_8h-source.html#l00091">DATABUS</a>, <a class="el" href="config_8h-source.html#l00094">DATADIR</a>, <a class="el" href="config_8h-source.html#l00085">DDR_IN</a>, <a class="el" href="config_8h-source.html#l00102">IOCHRDY</a>, and <a class="el" href="config_8h-source.html#l00101">IOR</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00570">InitTransmission()</a>, <a class="el" href="ethernet_8c-source.html#l00393">NE2000CheckOverFlow()</a>, <a class="el" href="ethernet_8c-source.html#l00274">NE2000CheckRxFrame()</a>, and <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>. </td> </tr></table><a name="a9" doxytag="ethernet.c::inNE2000again"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> UINT8 inNE2000again </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>19.02.2002 </dl><dl compact><dt><b>Returns: </b></dt><dd>Register content</dl>Invoke this function to continue reading contents of a NE2000 register, usefull when reading a sequence of bytes from Ethernet controller.<p>Use <a class="el" href="system_8h.html#a9">RECEIVE_NETWORK_B()</a> macro instead of directly invoking this function for easier driver change. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00226">226</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="config_8h-source.html#l00091">DATABUS</a>, <a class="el" href="config_8h-source.html#l00102">IOCHRDY</a>, and <a class="el" href="config_8h-source.html#l00101">IOR</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>. </td> </tr></table><a name="a10" doxytag="ethernet.c::inNE2000againbuf"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void inNE2000againbuf </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 * </td> <td class="mdname" nowrap> <em>buf</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT16 </td> <td class="mdname" nowrap> <em>len</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>20.07.2003</dl>Invoke this function to continue reading contents of a NE2000 register, only this time to a buffer directly.<p>Use <a class="el" href="system_8h.html#a10">RECEIVE_NETWORK_BUF()</a> macro instead of directly invoking this function for easier driver change. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00252">252</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="config_8h-source.html#l00091">DATABUS</a>, <a class="el" href="config_8h-source.html#l00102">IOCHRDY</a>, and <a class="el" href="config_8h-source.html#l00101">IOR</a>. </td> </tr></table><a name="a11" doxytag="ethernet.c::NE2000CheckRxFrame"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> UINT8 NE2000CheckRxFrame </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>19.02.2002 </dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> <a class="el" href="system_8h.html#a1">TRUE</a> - if there is a new packet waiting <li> <a class="el" href="system_8h.html#a2">FALSE</a> - if there is no new packet waiting</ul></dl>Invoke this function to check if there is a new Ethernet frame in the NIC's buffer waiting to be processed. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00274">274</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="ethernet_8h-source.html#l00088">BOUNDARY</a>, <a class="el" href="ethernet_8h-source.html#l00085">CR</a>, <a class="el" href="ethernet_8h-source.html#l00113">CURR</a>, <a class="el" href="ethernet_8c-source.html#l00198">inNE2000()</a>, <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>, and <a class="el" href="ethernet_8h-source.html#l00100">RCR</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>. </td> </tr></table><a name="a12" doxytag="ethernet.c::NE2000DumpRxFrame"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void NE2000DumpRxFrame </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>19.02.2002</dl>Discard the current received frame by advancing the receive circular buffer tail pointer. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00304">304</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="ethernet_8h-source.html#l00088">BOUNDARY</a>, <a class="el" href="ethernet_8h-source.html#l00085">CR</a>, <a class="el" href="ethernet_8c-source.html#l00079">NE2000NextPktPtr</a>, and <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>. </td> </tr></table><a name="a15" doxytag="ethernet.c::NE2000ReceiveFrame"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> UINT8 NE2000ReceiveFrame </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -