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

📄 ethernet_8c.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<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="a21" doxytag="ethernet.c::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="a22" doxytag="ethernet.c::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> 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><hr><h2>Variable Documentation</h2><a name="a0" doxytag="ethernet.c::NE2000NextPktPtr"></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 NE2000NextPktPtr      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Start address of next packet in the Ethernet controller <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00079">79</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00393">NE2000CheckOverFlow()</a>, <a class="el" href="ethernet_8c-source.html#l00304">NE2000DumpRxFrame()</a>, <a class="el" href="ethernet_8c-source.html#l00327">NE2000Init()</a>, and <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>.    </td>  </tr></table><a name="a1" doxytag="ethernet.c::NE2000CurrPktPtr"></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 NE2000CurrPktPtr      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Start address of current packet in the Ethernet controller <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00080">80</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00393">NE2000CheckOverFlow()</a>, <a class="el" href="ethernet_8c-source.html#l00665">NE2000DMAInit_position()</a>, <a class="el" href="ethernet_8c-source.html#l00327">NE2000Init()</a>, and <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>.    </td>  </tr></table><a name="a2" doxytag="ethernet.c::EtherSleep"></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 EtherSleep = 0      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Used for storing state of Ethernet controller (0 = awake; 1 = sleeping) <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00082">82</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00760">NE2000EnterSleep()</a>, and <a class="el" href="ethernet_8c-source.html#l00779">NE2000ExitSleep()</a>.    </td>  </tr></table><a name="a3" doxytag="ethernet.c::received_frame"></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"> struct <a class="el" href="structethernet__frame.html">ethernet_frame</a> received_frame      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Fields from Ethernet packet (dest/source hardware address,  protocol, frame size, start of the Ethernet packet in Ethernet controller) are stored in this structure. These values are later used from upper layer protocols (IP, ARP). See <a class="el" href="structethernet__frame.html">ethernet_frame</a> definition for more information about struct fields. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00093">93</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.    </td>  </tr></table><a name="a4" doxytag="ethernet.c::send_frame"></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"> struct <a class="el" href="structethernet__frame.html">ethernet_frame</a> send_frame      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Fields from Ethernet packet (dest/source hardware address,  protocol, frame size) are stored in this structure by the upper layer protocols (IP, ARP, other). These values are  then used for initializing transmission of an Ethernet frame. See <a class="el" href="structethernet__frame.html">ethernet_frame</a> definition for more information about struct fields. <p>Definition at line <a class="el" href="ethernet_8c-source.html#l00105">105</a> of file <a class="el" href="ethernet_8c-source.html">ethernet.c</a>.    </td>  </tr></table><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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