📄 sscs_802_15_4.h
字号:
// **/void Sscs802_15_4MLME_ASSOCIATE_confirm( Node* node, int interfaceIndex, UInt16 AssocShortAddress, M802_15_4_enum status);// /**// FUNCTION :: Sscs802_15_4MLME_DISASSOCIATE_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of disassociate request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum: Status of disassociation attempt// RETURN :: None// **/void Sscs802_15_4MLME_DISASSOCIATE_confirm( Node* node, int interfaceIndex, M802_15_4_enum status);// /**// FUNCTION :: Sscs802_15_4MLME_BEACON_NOTIFY_indication// LAYER :: Mac// PURPOSE :: Primitive to send params contained within a beacon to SSCS// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + BSN : UInt8 : The beacon sequence number.// + PANDescriptor : M802_15_4PanEle* : PANDescriptor for the recd beacon// + PendAddrSpec : UInt8 : Beacon pending address spec// + AddrList : MACADDR* : list of addresses of the devices// for which beacon source has data// + sduLength : UInt8 : number of octets contained in the// beacon payload of the beacon frame// + sdu : UInt8* : beacon payload to be transferred// RETURN :: None// **/void Sscs802_15_4MLME_BEACON_NOTIFY_indication( Node* node, int interfaceIndex, UInt8 BSN, M802_15_4PanEle* PANDescriptor, UInt8 PendAddrSpec, MACADDR* AddrList, UInt8 sduLength, UInt8* sdu);// /**// FUNCTION :: Sscs802_15_4MLME_GET_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of GET request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum : Status of GET attempt// + PIBAttribute : M802_15_4_PIBA_enum : PIB attribute id// + PIBAttributeValue : M802_15_4PIB* : Attribute value// RETURN :: None// **/void Sscs802_15_4MLME_GET_confirm( Node* node, int interfaceIndex, M802_15_4_enum status, M802_15_4_PIBA_enum PIBAttribute, M802_15_4PIB* PIBAttributeValue);// /**// FUNCTION :: Sscs802_15_4MLME_ORPHAN_indication// LAYER :: Mac// PURPOSE :: Primitive to notify presence of orphan device to SSCS// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + OrphanAddress : MACADDR : Address of orphan device// + SecurityUse : BOOL : Whether enabled security or not// + ACLEntry : UInt8 : ACL entry// RETURN :: None// **/void Sscs802_15_4MLME_ORPHAN_indication( Node* node, int interfaceIndex, MACADDR OrphanAddress, BOOL SecurityUse, UInt8 ACLEntry);// /**// FUNCTION :: Sscs802_15_4MLME_RESET_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of RESET request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum : Status of RESET attempt// RETURN :: None// **/void Sscs802_15_4MLME_RESET_confirm( Node* node, int interfaceIndex, M802_15_4_enum status);// /**// FUNCTION :: Sscs802_15_4MLME_RX_ENABLE_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of RxEnable request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum : Status of RxEnable attempt// RETURN :: None// **/void Sscs802_15_4MLME_RX_ENABLE_confirm( Node* node, int interfaceIndex, M802_15_4_enum status);// /**// FUNCTION :: Sscs802_15_4MLME_SET_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of SET request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum : Status of SET attempt// + PIBAttribute : M802_15_4_PIBA_enum : PIB attribute id// RETURN :: None// **/void Sscs802_15_4MLME_SET_confirm( Node* node, int interfaceIndex, M802_15_4_enum status, M802_15_4_PIBA_enum PIBAttribute);// /**// FUNCTION :: Sscs802_15_4MLME_SCAN_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of SCAN request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum : Status of Scan attempt// + ScanType : UInt8 : Type of scan// + UnscannedChannels : UInt32 : Channels given in the request// not scanned// + ResultListSize : UInt8 : Number of elements returned// + EnergyDetectList : UInt8* : List of energy measurements,// one for each channel// + PANDescriptorList : M802_15_4PanEle* : List of PAN descriptors// RETURN :: None// **/void Sscs802_15_4MLME_SCAN_confirm( Node* node, int interfaceIndex, M802_15_4_enum status, UInt8 ScanType, UInt32 UnscannedChannels, UInt8 ResultListSize, UInt8* EnergyDetectList, M802_15_4PanEle* PANDescriptorList);// /**// FUNCTION :: Sscs802_15_4MLME_COMM_STATUS_indication// LAYER :: Mac// PURPOSE :: Primitive to indicate a communications status// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + PANId : UInt16 : PAN id// + SrcAddrMode : UInt8 : Source address mode// + SrcAddr : MACADDR : Source address// + DstAddrMode : UInt8 : Destination address mode// + DstAddr : MACADDR : Destination Address// + status : M802_15_4_enum: Status of Communication// RETURN :: None// **/void Sscs802_15_4MLME_COMM_STATUS_indication( Node* node, int interfaceIndex, UInt16 PANId, UInt8 SrcAddrMode, MACADDR SrcAddr, UInt8 DstAddrMode, MACADDR DstAddr, M802_15_4_enum status);// /**// FUNCTION :: Sscs802_15_4MLME_START_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of START request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum : Status of START attempt// RETURN :: None// **/void Sscs802_15_4MLME_START_confirm( Node* node, int interfaceIndex, M802_15_4_enum status);// /**// FUNCTION :: Sscs802_15_4MLME_SYNC_LOSS_indication// LAYER :: Mac// PURPOSE :: Primitive to indicate the loss of synchronization with a// coordinator// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + LossReason : M802_15_4_enum : Reason for Sync Loss// RETURN :: None// **/void Sscs802_15_4MLME_SYNC_LOSS_indication( Node* node, int interfaceIndex, M802_15_4_enum LossReason);// /**// FUNCTION :: Sscs802_15_4MLME_POLL_confirm// LAYER :: Mac// PURPOSE :: Primitive to report result of POLL request// PARAMETERS ::// + node : Node* : Node receiving call// + interfaceIndex : int : Interface Index// + status : M802_15_4_enum : Status of POLL attempt// RETURN :: None// **/void Sscs802_15_4MLME_POLL_confirm( Node* node, int interfaceIndex, M802_15_4_enum status);// /**// FUNCTION Sscs802_15_4Init// PURPOSE Initialization function for 802.15.4 protocol of SSCS layer// PARAMETERS Node* node// Node being initialized.// NodeInput* nodeInput// Structure containing contents of input file.// MacData_802_15_4* M802_15_4// 802.15.4 data structure// RETURN None// NOTES None// **/void Sscs802_15_4Init( Node* node, const NodeInput* nodeInput, int interfaceIndex);// /**// FUNCTION Sscs802_15_4Layer// PURPOSE To handle timer events. This is called via Mac802_15_4Layer()// PARAMETERS Node *node// Node which received the message.// int interfaceInde// Interface index on which message is received// Message* msg// Message received by the layer.// RETURN None// NOTES None// **/void Sscs802_15_4Layer(Node* node, int interfaceIndex, Message* msg);// /**// FUNCTION Sscs802_15_4Finalize// PURPOSE Called at the end of simulation to collect the results of// the simulation of 802.15.4 protocol of the SSCS Layer.// PARAMETERS Node* node// Node which received the message.// RETURN None// NOTES None// **/void Sscs802_15_4Finalize(Node* node, int interfaceIndex);//--------------------------------------------------------------------------// STATIC FUNCTIONS//--------------------------------------------------------------------------#endif /*SSCS_802_15_4*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -