1.3.2.3.26 MAC_WRP_BeaconNotifyIndication Typedef

C

typedef void (*MAC_WRP_BeaconNotifyIndication)(MAC_WRP_BEACON_NOTIFY_INDICATION_PARAMS *bcnParams);

Summary

Pointer to a Beacon Notify Indication Event handler function.

Description

This data type defines the required function signature for the MAC Wrapper Beacon Notify Indication event handling callback function. A client must register a pointer using the event handling function whose function signature (parameter and return value types) matches the types specified by this function pointer in order to receive Beacon Notify Indication events back from module.

Returns

None.

Example

MAC_WRP_PAN_DESCRIPTOR lowestRCDescriptor;
lowestRCDescriptor.rcCoord = 0xFFFF;

App_BeaconIndication(MAC_WRP_BEACON_NOTIFY_INDICATION_PARAMS *params)
{
    // Keep the Beacon with lowest Route Cost to Coordinator
    // (criteria chosen for illustration purposes)
    if (params->panDescriptor.rcCoord < lowestRCDescriptor.rcCoord)
    {
        lowestRCDescriptor = params->panDescriptor;
    }
}

Remarks

None.