1.3.2.3.29 MAC_WRP_COMM_STATUS_INDICATION_PARAMS Struct
C
typedef struct { /* The PAN identifier from which the frame/event was received */ MAC_WRP_PAN_ID panId; /* The address of the device which sent the frame */ MAC_WRP_ADDRESS srcAddress; /* The address of the device intended to receive the frame */ MAC_WRP_ADDRESS destAddress; /* Type of event detected */ MAC_WRP_STATUS status; /* Security level of the received frame: 0x00 unecrypted, 0x05 encrypted */ MAC_WRP_SECURITY_LEVEL securityLevel; /* The index of the key used for decryption */ uint8_t keyIndex; /* The Comm Status Indication Media Type */ MAC_WRP_MEDIA_TYPE_INDICATION mediaType; } MAC_WRP_COMM_STATUS_INDICATION_PARAMS;
Summary
Defines the Parameters for the MAC Comm Status Indication event handler function.
Description
The structure contains the fields reported by the MAC Comm Status Indication event handler function. This function reports network events such as other PAN detection or security errors, as defined in IEEE 802.15.4 standard.
Field description:
panId. The PAN identifier from which the frame/event was received.
srcAddress. The address of the device which sent the frame.
destAddress. The address of the device intended to receive the frame.
status. Type of event detected.
securityLevel. Security level of the received frame: 0x00 unecrypted, 0x05 encrypted.
keyIndex. The index of the key used for decryption.
mediaType. The Comm Status Indication Media Type.
Remarks
mediaType field is only relevant if both MAC layers are used, otherwise it is fixed to the available MAC.