1.3.3.1.17 MAC_BeaconNotifyIndication Typedef
C
typedef void (*MAC_BeaconNotifyIndication)(MAC_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 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.
Parameters
Param | Description |
---|---|
bcnParams | Pointer to structure containing parameters related to Indication. See MAC_BEACON_NOTIFY_INDICATION_PARAMS |
Returns
None.
Example
MAC_PAN_DESCRIPTOR lowestRCDescriptor;
lowestRCDescriptor.rcCoord = 0xFFFF;
App_BeaconIndication(MAC_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.