1.3.4.1.14 MAC_PLC_HANDLERS Struct

C

typedef struct
{
    /* Callbacks */
    MAC_DataConfirm macPlcDataConfirm;
    MAC_DataIndication macPlcDataIndication;
    MAC_ResetConfirm macPlcResetConfirm;
    MAC_BeaconNotifyIndication macPlcBeaconNotifyIndication;
    MAC_ScanConfirm macPlcScanConfirm;
    MAC_StartConfirm macPlcStartConfirm;
    MAC_CommStatusIndication macPlcCommStatusIndication;
    MAC_SnifferIndication macPlcMacSnifferIndication;
} MAC_PLC_HANDLERS;

Summary

Set of Event Handler function pointers to receive events from MAC PLC.

Description

Defines the set of callback functions that MAC PLC uses to generate events to upper layer.

Field description:

  • macPlcDataConfirm. Pointer to function to be called when a Data Transmission is finished on MAC PLC.

  • macPlcDataIndication. Pointer to function to be called when a Data frame is received by MAC PLC.

  • macPlcResetConfirm. Pointer to function to be called when a Reset is finished on MAC PLC.

  • macPlcBeaconNotifyIndication. Pointer to function to be called when a Beacon frame is received by MAC PLC.

  • macPlcScanConfirm. Pointer to function to be called when a Scan process is finished on MAC PLC.

  • macPlcStartConfirm. Pointer to function to be called when a Start process is finished on MAC PLC.

  • macPlcCommStatusIndication. Pointer to function to be called when a Comm Status event occurs on MAC PLC.

  • macPlcMacSnifferIndication. Pointer to function to be called when any frame is received MAC PLC. Only invoked if MAC Sniffer is enabled by corresponding PIB.

Remarks

In case an event is to be ignored, setting its corresponding callback function to NULL will lead to the event not being generated.