2.11.1 USR_MLME_BeaconNotifyInd callback Function

C

void USR_MLME_BeaconNotifyInd(uint8_t BSN, WPAN_Pandescriptor_t *PANDescriptor, uint8_t PendAddrSpec, uint8_t *AddrList, uint8_t sduLength, uint8_t *sdu);

Summary

Callback function that must be implemented by application (NHLE) for MAC service MLME-BEACON-NOTIFY.indication.

Description

This function implemented by application (NHLE) for MAC service MLME-BEACON-NOTIFY.indication.

Precondition

WPAN_Init() should have been called before calling this function.

Parameters

ParamDescription
BSNBeacon sequence number
PANDescriptorPointer to PAN descriptor for received beacon
PendAddrSpecPending address specification in received beacon
AddrListList of addresses of devices the coordinator has pending data
sduLengthLength of beacon payload
sduPointer to beacon payload

Returns

None.

Example

void USR_MLME_BeaconNotifyInd(uint8_t BSN, WPAN_Pandescriptor_t *PANDescriptor, uint8_t PendAddrSpec, uint8_t *AddrList, uint8_t sduLength, uint8_t *sdu);

{
     DeviceAddress = DeviceAddress;
     CapabilityInformation = CapabilityInformation;
}

Remarks

There is weak function for this callback. User has to define own implementation for required operation on the reception of particular callback.