⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ethernet_8h.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
Once this function detects a new Etherent packet, internal variables  are initialized (NE2000CurrPktPtr, NE2000NextPktPtr and received_frame structure) and TRUE is returned, indicating that processing of newly-arrived frame may begin. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00482">482</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#l00161">ethernet_frame::buf_index</a>, <a class="el" href="ethernet_8h-source.html#l00085">CR</a>, <a class="el" href="ethernet_8h-source.html#l00144">ethernet_frame::destination</a>, <a class="el" href="system_8h-source.html#l00079">FALSE</a>, <a class="el" href="ethernet_8h-source.html#l00152">ethernet_frame::frame_size</a>, <a class="el" href="ethernet_8c-source.html#l00198">inNE2000()</a>, <a class="el" href="ethernet_8c-source.html#l00226">inNE2000again()</a>, <a class="el" href="ethernet_8h-source.html#l00118">IOPORT</a>, <a class="el" href="ethernet_8c-source.html#l00274">NE2000CheckRxFrame()</a>, <a class="el" href="ethernet_8c-source.html#l00080">NE2000CurrPktPtr</a>, <a class="el" href="ethernet_8c-source.html#l00079">NE2000NextPktPtr</a>, <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>, <a class="el" href="ethernet_8h-source.html#l00155">ethernet_frame::protocol</a>, <a class="el" href="ethernet_8h-source.html#l00098">RBCR0</a>, <a class="el" href="ethernet_8h-source.html#l00096">RSAR0</a>, and <a class="el" href="ethernet_8h-source.html#l00148">ethernet_frame::source</a>.    </td>  </tr></table><a name="a48" doxytag="ethernet.h::InitTransmission"></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 InitTransmission </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT8&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>page</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>page</em>&nbsp;</td><td>Address in Ethernet controller where outgoing packet buffered</td></tr></table></dl>This function is used to initialize transmission of an Ethernet  packet. Packet is created starting from <em>page</em> address.<p>Do not invoke this function directly, but instead use  <a class="el" href="system_8h.html#a17">NETWORK_SEND_INITIALIZE()</a> macro. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00570">570</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="ethernet_8h-source.html#l00085">CR</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="ethernet_8c-source.html#l00198">inNE2000()</a>, <a class="el" href="ethernet_8h-source.html#l00118">IOPORT</a>, <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>, <a class="el" href="ethernet_8h-source.html#l00098">RBCR0</a>, <a class="el" href="ethernet_8h-source.html#l00096">RSAR0</a>, and <a class="el" href="ethernet_8h-source.html#l00091">TPSR</a>.    </td>  </tr></table><a name="a49" doxytag="ethernet.h::NE2000WriteEthernetHeader"></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 NE2000WriteEthernetHeader </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">struct <a class="el" href="structethernet__frame.html">ethernet_frame</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>frame</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>frame</em>&nbsp;</td><td>Pointer to <a class="el" href="structethernet__frame.html">ethernet_frame</a> structure containing information about the new Ethernet frame</td></tr></table></dl>Invoke this function (through <a class="el" href="system_8h.html#a18">NETWORK_ADD_DATALINK()</a> macro) to create an Ethernet header in the NIC's transmit buffer. Do this only after invoking <a class="el" href="system_8h.html#a17">NETWORK_SEND_INITIALIZE()</a> macro. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00608">608</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="ethernet_8h-source.html#l00144">ethernet_frame::destination</a>, <a class="el" href="ethernet_8c-source.html#l00148">outNE2000again()</a>, <a class="el" href="ethernet_8h-source.html#l00155">ethernet_frame::protocol</a>, and <a class="el" href="ethernet_8h-source.html#l00148">ethernet_frame::source</a>.    </td>  </tr></table><a name="a50" doxytag="ethernet.h::NE2000DMAInit"></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 NE2000DMAInit </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT8&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>page</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>page</em>&nbsp;</td><td>Address for the DMA </td></tr></table></dl><p>Definition at line <a class="el" href="ethernet_8c-source.html#l00639">639</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="ethernet_8h-source.html#l00085">CR</a>, <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>, <a class="el" href="ethernet_8h-source.html#l00098">RBCR0</a>, and <a class="el" href="ethernet_8h-source.html#l00096">RSAR0</a>.    </td>  </tr></table><a name="a51" doxytag="ethernet.h::NE2000DMAInit_position"></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 NE2000DMAInit_position </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT16&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pos</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>pos</em>&nbsp;</td><td>Position from the start of current frame from which DMA is initialized.</td></tr></table></dl>Invoke this function (through <a class="el" href="system_8h.html#a14">NETWORK_RECEIVE_INITIALIZE()</a> macro)  to prepair NIC for reading from the specified position. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00665">665</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="ethernet_8h-source.html#l00085">CR</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="ethernet_8h-source.html#l00118">IOPORT</a>, <a class="el" href="ethernet_8c-source.html#l00080">NE2000CurrPktPtr</a>, <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>, <a class="el" href="ethernet_8h-source.html#l00098">RBCR0</a>, <a class="el" href="ethernet_8h-source.html#l00096">RSAR0</a>, <a class="el" href="ethernet_8h-source.html#l00124">RXBUF_END</a>, and <a class="el" href="ethernet_8h-source.html#l00123">RXBUF_START</a>.    </td>  </tr></table><a name="a52" doxytag="ethernet.h::NE2000SendFrame"></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 NE2000SendFrame </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT16&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>len</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>len</em>&nbsp;</td><td>Length of packet stored in the NIC's buffer </td></tr></table></dl><dl compact><dt><b>Warning: </b></dt><dd> <ul><li> Minimum Ethernet packet size is 64 bytes</ul></dl>Invoke this function (through <a class="el" href="system_8h.html#a16">NETWORK_COMPLETE_SEND()</a> macro) when the whole packet is formed inside NIC's memory and is ready to be  sent. Proper length of the packet must be supplied so that NIC knows how much data to put on the line. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00725">725</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="ethernet_8h-source.html#l00085">CR</a>, <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>, <a class="el" href="ethernet_8c-source.html#l00148">outNE2000again()</a>, <a class="el" href="ethernet_8h-source.html#l00093">TBCR0</a>, and <a class="el" href="ethernet_8h-source.html#l00094">TBCR1</a>.    </td>  </tr></table><a name="a53" doxytag="ethernet.h::NE2000EnterSleep"></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 NE2000EnterSleep </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>Invoke this function to put Ethernet controller to sleep mode. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00760">760</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>References <a class="el" href="ethernet_8h-source.html#l00085">CR</a>, <a class="el" href="ethernet_8c-source.html#l00082">EtherSleep</a>, and <a class="el" href="ethernet_8c-source.html#l00118">outNE2000()</a>.    </td>  </tr></table><a name="a54" doxytag="ethernet.h::NE2000ExitSleep"></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 NE2000ExitSleep </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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>Invoke this function to instruct NE2000 to exit sleep mode and  continue normal operation. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00779">779</a> o

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -