📄 beta.cc2420radio.ieee.802.15.4.mlme.mlme_scan.nc.html.svn-base
字号:
<html><head><title>Interface: MLME_SCAN</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="beta.CC2420Radio.ieee.802.15.4.MLME.MLME_SCAN.nc.source">beta.CC2420Radio.ieee.802.15.4.MLME.MLME_SCAN.nc</a></b></font></td></tr></table><hr><h1 align="center">Interface: MLME_SCAN</h1><p> The MLME-SAP scan primitives define how a device can determine the energy usage or the presence or absence of PANs in a communications channel. <table border="0" cellpadding="0"><tr valign="top"><td><b>Author:</b><td> Joe Polastre</td></tr></table><p><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Commands</h3></td></tr></table><ul><li> void <a href="# void request(uint8_t ScanType, uint32_t ScanChannels, uint8_t ScanDuration)"><b>request</b> </a>(uint8_t ScanType, uint32_t ScanChannels, uint8_t ScanDuration)<menu> Used to initiate a channel scan over a given list of channels.</menu><p></ul><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Events</h3></td></tr></table><ul><li> void <b>confirm</b>(IEEE_status status, uint8_t ScanType, uint32_t UnscannedChannels, uint8_t ResultListSize, uint8_t *EnergyDetectList, PANDescriptor_t *PANDescriptorList)<menu> Reports the results of the channel scan request <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>status</b> - The status of the scan request </p><p STYLE="text-indent: -1cm"><b>ScanType</b> - The type of scan performed </p><p STYLE="text-indent: -1cm"><b>UnscannedChannels</b> - The 27 LSBs indicate which channels are not scanned (1 = not scanned) </p><p STYLE="text-indent: -1cm"><b>ResultListSize</b> - The number of elements reterned in the appropriate results list </p><p STYLE="text-indent: -1cm"><b>EnergyDetectList</b> - The list of energy measurements, one for each channel searched during an ED scan </p><p STYLE="text-indent: -1cm"><b>PANDescriptorList</b> - The list of PAN descriptors, one for each beacon found during an active or passive scan</menu></menu></td></tr></table></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=" void request(uint8_t ScanType, uint32_t ScanChannels, uint8_t ScanDuration)"></a> <h4>request</h4> void <b>request</b>(uint8_t ScanType, uint32_t ScanChannels, uint8_t ScanDuration)<P><menu> Used to initiate a channel scan over a given list of channels. A device can use a channel scan to measure the energy on the channel, search for the coordinator with which it is associated, or search for all coordinators transmitting beacon frames within the POS of the scanning device. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>ScanType</b> - The type of scan performed </p><p STYLE="text-indent: -1cm"><b>ScanChannels</b> - The 27 LSBs indicate which channels are to be scanned (1 = scan) </p><p STYLE="text-indent: -1cm"><b>ScanDuration</b> - Value used to calculate the length of time to spend scanning each channel for ED, active, and passive scans. This parameter is ignored for orphan scans.</menu></menu></td></tr></table></menu>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -