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

📄 tos.interfaces.receive.nc.html

📁 tinyos中文手册,是根据tinyos系统自带手册翻译过来的,虽然质量不好,但是对英文不强的人还是有用的
💻 HTML
字号:
<html><head><title>Interface: Receive</title></head><body><table BORDER="0" CELLPADDING="3" CELLSPACING="0" width="100%"><tr><td><font size="-1"><b><font color="blue"><a href="apps_p.html">Apps</a></font></b>&nbsp;&nbsp;&nbsp;<b><a href="components_p.html">Components</a></b>&nbsp;&nbsp;&nbsp;<b><a href="interfaces_p.html">Interfaces</a></b>&nbsp;&nbsp;&nbsp;<b><a href="allfiles_p.html">All Files</a></b>&nbsp;&nbsp;&nbsp;<b><a href="index.html">Source Tree</a></b>&nbsp;&nbsp;&nbsp;</font></td><td align="right"><font size="-1">source: <b><a href="tos.interfaces.Receive.nc.source">tos.interfaces.Receive.nc</a></b></font></td></tr></table><hr><h1 align="center">Interface: Receive</h1><p>  <table border="0" cellpadding="0"><tr valign="top"><td><b>Author:</b><td> Philip Levis </td></tr></table><p><dl><dt>Components providing this interface:<dd>    <a href="tos.lib.Broadcast.Bcast.nc.html">tos.lib.Broadcast.Bcast</a><br>    <a href="tos.lib.Broadcast.BcastM.nc.html">tos.lib.Broadcast.BcastM</a><br>    <a href="tos.lib.Route.MultiHopEngineM.nc.html">tos.lib.Route.MultiHopEngineM</a><br>    <a href="tos.lib.Route.MultiHopRouter.nc.html">tos.lib.Route.MultiHopRouter</a><br></dl><p><dl><dt>Components requiring this interface:<dd>    <a href="apps.surge.SurgeM.nc.html">apps.surge.SurgeM</a><br></dl><p><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Events</h3></td></tr></table><ul><li>         TOS_MsgPtr     <a href="# TOS_MsgPtr receive(TOS_MsgPtr msg, void *payload, uint16_t payloadLen)"><b>receive</b>    </a>(TOS_MsgPtr msg, void *payload, uint16_t payloadLen)<menu> Received a message buffer addressed to us.</menu><p></ul><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Events - Details</h3></td></tr></table>    <a name=" TOS_MsgPtr receive(TOS_MsgPtr msg, void *payload, uint16_t payloadLen)"></a>        <h4>receive</h4>         TOS_MsgPtr <b>receive</b>(TOS_MsgPtr msg, void *payload, uint16_t payloadLen)<P><menu> Received a message buffer addressed to us. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>msg</b> -  The complete buffer received. </p><p STYLE="text-indent: -1cm"><b>payload</b> -  The payload portion of the packet for this protocol layer. If this layer has layers above it, it should signal receive() with payload incremented by the size of its header. Payload is a pointer into the msg structure. </p><p STYLE="text-indent: -1cm"><b>payloadLen</b> -  The length of the payload buffer. If this layer has layers above it, it should signal receive() with payloadLen decreased by the size of its headers and footers. </menu></td></tr><tr valign="top"><td><b>Returns:</b></td><td> The buffer to use for the next receive event.</td></tr></table></menu>

⌨️ 快捷键说明

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