📄 ethernet_8h.html
字号:
<td class="md" nowrap valign="top"> #define MAR0 0x08 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Multicast address register, R/W <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00114">114</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>. </td> </tr></table><a name="a31" doxytag="ethernet.h::IOPORT"></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"> #define IOPORT 0x10 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>DMA dataregister <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00118">118</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00570">InitTransmission()</a>, <a class="el" href="ethernet_8c-source.html#l00665">NE2000DMAInit_position()</a>, and <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>. </td> </tr></table><a name="a33" doxytag="ethernet.h::RXBUF_START"></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"> #define RXBUF_START 0x40 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>3328 byte Rx Buffer <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00123">123</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00665">NE2000DMAInit_position()</a>, and <a class="el" href="ethernet_8c-source.html#l00327">NE2000Init()</a>. </td> </tr></table><a name="a34" doxytag="ethernet.h::RXBUF_END"></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"> #define RXBUF_END 0x4D </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>(2 max packets <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00124">124</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00665">NE2000DMAInit_position()</a>, and <a class="el" href="ethernet_8c-source.html#l00327">NE2000Init()</a>. </td> </tr></table><a name="a35" doxytag="ethernet.h::ARP_BUFFER"></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"> #define ARP_BUFFER 0x5F </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>256 byte Tx for ARP <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00125">125</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="arp_8c-source.html#l00390">arp_send_req()</a>, and <a class="el" href="arp_8c-source.html#l00188">arp_send_response()</a>. </td> </tr></table><a name="a36" doxytag="ethernet.h::ICMP_BUF"></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"> #define ICMP_BUF 0x4D </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>1536 byte Tx for ICMP <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00126">126</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>. </td> </tr></table><a name="a37" doxytag="ethernet.h::TCP_BUF"></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"> #define TCP_BUF 0x53 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>1536 byte Tx for TCP <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00127">127</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>. </td> </tr></table><a name="a38" doxytag="ethernet.h::UDP_BUF"></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"> #define UDP_BUF 0x59 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>1536 byte Tx for UDP <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00128">128</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a name="a39" doxytag="ethernet.h::outNE2000"></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 outNE2000 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 </td> <td class="mdname" nowrap> <em>reg</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT8 </td> <td class="mdname" nowrap> <em>dat</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@violasytems.com">jari.lahti@violasytems.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><tr><td valign=top><em>dat</em> </td><td>new register content</td></tr></table></dl>Write data to NE2000 register. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00118">118</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#l00082">DDR_OUT</a>, <a class="el" href="config_8h-source.html#l00102">IOCHRDY</a>, and <a class="el" href="config_8h-source.html#l00100">IOW</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>, <a class="el" href="ethernet_8c-source.html#l00639">NE2000DMAInit()</a>, <a class="el" href="ethernet_8c-source.html#l00665">NE2000DMAInit_position()</a>, <a class="el" href="ethernet_8c-source.html#l00304">NE2000DumpRxFrame()</a>, <a class="el" href="ethernet_8c-source.html#l00760">NE2000EnterSleep()</a>, <a class="el" href="ethernet_8c-source.html#l00779">NE2000ExitSleep()</a>, <a class="el" href="ethernet_8c-source.html#l00327">NE2000Init()</a>, <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>, and <a class="el" href="ethernet_8c-source.html#l00725">NE2000SendFrame()</a>. </td> </tr></table><a name="a40" doxytag="ethernet.h::outNE2000again"></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 outNE2000again </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 </td> <td class="mdname1" valign="top" nowrap> <em>dat</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>dat</em> </td><td>new register content</td></tr></table></dl>Invoke this function to write data to the same register as in previously invoked <a class="el" href="ethernet_8h.html#a39">outNE2000()</a>. Saves some cycles because data direction registers and address are set up.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -