tos.interfaces.receive.nc.html
来自「tinyos中文手册,是根据tinyos系统自带手册翻译过来的,虽然质量不好,但」· HTML 代码 · 共 94 行
HTML
94 行
<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> <b><a href="components_p.html">Components</a></b> <b><a href="interfaces_p.html">Interfaces</a></b> <b><a href="allfiles_p.html">All Files</a></b> <b><a href="index.html">Source Tree</a></b> </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 + =
减小字号Ctrl + -
显示快捷键?