tos.interfaces.commcontrol.nc.html
来自「tinyos中文手册,是根据tinyos系统自带手册翻译过来的,虽然质量不好,但」· HTML 代码 · 共 115 行
HTML
115 行
<html><head><title>Interface: CommControl</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.CommControl.nc.source">tos.interfaces.CommControl.nc</a></b></font></td></tr></table><hr><h1 align="center">Interface: CommControl</h1><p> This interface defines commands for controlling aspects of the communication layer. <table border="0" cellpadding="0"><tr valign="top"><td><b>Author:</b><td> Matt Welsh</td></tr></table><p><dl><dt>Components providing this interface:<dd> <a href="tos.system.AMPromiscuous.nc.html">tos.system.AMPromiscuous</a><br> <a href="tos.system.GenericCommPromiscuous.nc.html">tos.system.GenericCommPromiscuous</a><br></dl><p><dl><dt>Components requiring this interface:<dd> <a href="apps.topo.MultihopM.nc.html">apps.topo.MultihopM</a><br> <a href="tos.lib.Route.MultiHopEngineM.nc.html">tos.lib.Route.MultiHopEngineM</a><br></dl><p><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Commands</h3></td></tr></table><ul><li> result_t <a href="# result_t setCRCCheck(bool value)"><b>setCRCCheck</b> </a>(bool value)<menu> Set the value of the CRC check flag.</menu><p><li> bool <b>getCRCCheck</b>(void)<menu> Return the current value of the CRC check flag.</menu><p><li> result_t <a href="# result_t setPromiscuous(bool value)"><b>setPromiscuous</b> </a>(bool value)<menu> Set the value of the promiscuous mode flag.</menu><p><li> bool <b>getPromiscuous</b>(void)<menu> Return the current value of the promiscuous mode flag.</menu><p></ul><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Commands - Details</h3></td></tr></table> <a name=" result_t setCRCCheck(bool value)"></a> <h4>setCRCCheck</h4> result_t <b>setCRCCheck</b>(bool value)<P><menu> Set the value of the CRC check flag. If set to 'true', received packets with a CRC field other than '1' are dropped. <table border="0" cellpadding="0"><tr valign="top"><td><b>Returns:</b></td><td> SUCCESS if the CRC check value could be set; FAIL otherwise (for example, if CRC check is not implemented).</td></tr></table></menu><hr> <a name=" result_t setPromiscuous(bool value)"></a> <h4>setPromiscuous</h4> result_t <b>setPromiscuous</b>(bool value)<P><menu> Set the value of the promiscuous mode flag. If set to 'true', all received packets are passed to the receiver. If set to 'false', only packets destined for this node (or sent to the broadcast address) are passed up. <table border="0" cellpadding="0"><tr valign="top"><td><b>Returns:</b></td><td> SUCCESS if the promiscuous flag could be set; FAIL otherwise (for example, if promiscuous mode is not implemented).</td></tr></table></menu>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?