📄 beta.cc2420radio.ieee.802.15.4.mlme.mlme_associate.nc.html.svn-base
字号:
<html><head><title>Interface: MLME_ASSOCIATE</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_ASSOCIATE.nc.source">beta.CC2420Radio.ieee.802.15.4.MLME.MLME_ASSOCIATE.nc</a></b></font></td></tr></table><hr><h1 align="center">Interface: MLME_ASSOCIATE</h1><p> The MLME-SAP association primitives define how a devices becomes associated with a PAN. <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 LogicalChannel, uint8_t CoordAddrMode, uint16_t CoordPANId, uint8_t *CoordAddress, uint8_t CapabilityInformation, bool SecurityEnable)"><b>request</b> </a>(uint8_t LogicalChannel, uint8_t CoordAddrMode, uint16_t CoordPANId, uint8_t *CoordAddress, uint8_t CapabilityInformation, bool SecurityEnable)<menu> Request to associate with a PAN.</menu><p><li> void <a href="# void response(uint64_t DeviceAddress, uint16_t AssocShortAddress, IEEE_status status, bool SecurityEnable)"><b>response</b> </a>(uint64_t DeviceAddress, uint16_t AssocShortAddress, IEEE_status status, bool SecurityEnable)<menu> Send a response to a device's request to associate</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 <a href="# void indication(uint64_t DeviceAddress, uint8_t CapabilityInformation, bool SecurityUse, uint8_t ACLEntry)"><b>indication</b> </a>(uint64_t DeviceAddress, uint8_t CapabilityInformation, bool SecurityUse, uint8_t ACLEntry)<menu> Provide notification that a device has requested to associate with a PAN identifier.</menu><p><li> void <b>confirm</b>(uint16_t AssocShortAddress, IEEE_status status)<menu> Confirmation of the association attempt <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>AssocShortAddress</b> - The short device address allocated by the coordinator on successful association </p><p STYLE="text-indent: -1cm"><b>status</b> - The status of the association attempt</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 LogicalChannel, uint8_t CoordAddrMode, uint16_t CoordPANId, uint8_t *CoordAddress, uint8_t CapabilityInformation, bool SecurityEnable)"></a> <h4>request</h4> void <b>request</b>(uint8_t LogicalChannel, uint8_t CoordAddrMode, uint16_t CoordPANId, uint8_t *CoordAddress, uint8_t CapabilityInformation, bool SecurityEnable)<P><menu> Request to associate with a PAN. See page 64 of the IEEE 802.15.4 specification. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>LogicalChannel</b> - The logical channel on which to attempt association </p><p STYLE="text-indent: -1cm"><b>CoordAddrMode</b> - The coordinator addressing mode </p><p STYLE="text-indent: -1cm"><b>CoordPANId</b> - The 16 bit PAN identifier of the coordinator </p><p STYLE="text-indent: -1cm"><b>CoordAddress</b> - Individual device address of the coordinator as per the CoordAddrMode </p><p STYLE="text-indent: -1cm"><b>CapabilityInformation</b> - Specifies the operational capabilities of the associating device </p><p STYLE="text-indent: -1cm"><b>SecurityEnable</b> - TRUE if security is enabled for this transfer</menu></menu></td></tr></table></menu><hr> <a name=" void response(uint64_t DeviceAddress, uint16_t AssocShortAddress, IEEE_status status, bool SecurityEnable)"></a> <h4>response</h4> void <b>response</b>(uint64_t DeviceAddress, uint16_t AssocShortAddress, IEEE_status status, bool SecurityEnable)<P><menu> Send a response to a device's request to associate <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>DeviceAddress</b> - the 64-bit address of the device to respond to </p><p STYLE="text-indent: -1cm"><b>AssocShortAddress</b> - The short device address allocated by the coordinator on successful allocation. </p><p STYLE="text-indent: -1cm"><b>status</b> - The status of the association attempt </p><p STYLE="text-indent: -1cm"><b>SecurityEnable</b> - TRUE if security is enabled for this transfer</menu></menu></td></tr></table></menu><table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><tr BGCOLOR="#CCCCFF"><td><h3>Events - Details</h3></td></tr></table> <a name=" void indication(uint64_t DeviceAddress, uint8_t CapabilityInformation, bool SecurityUse, uint8_t ACLEntry)"></a> <h4>indication</h4> void <b>indication</b>(uint64_t DeviceAddress, uint8_t CapabilityInformation, bool SecurityUse, uint8_t ACLEntry)<P><menu> Provide notification that a device has requested to associate with a PAN identifier. <table border="0" cellpadding="0"></td></tr><tr valign="top"><td><br><b>Parameters:</b></td><td><menu><p STYLE="text-indent: -1cm"><b>DeviceAddress</b> - the 64-bit address of the requesting device </p><p STYLE="text-indent: -1cm"><b>CapabilityInformation</b> - Specifies the operational capabilities of the associating device </p><p STYLE="text-indent: -1cm"><b>SecurityUse</b> - TRUE if security was enabled for the request </p><p STYLE="text-indent: -1cm"><b>ACLEntry</b> - The macSecurityMode parameter value from the ACL entry associated with the sender of the data frame. This value is set to 0x08 if the sender of the data frame was not found in the ACL.</menu></menu></td></tr></table></menu>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -