C
typedef struct { union { BYTE Val; struct { BYTE packetType : 2; BYTE broadcast : 1; BYTE secEn : 1; BYTE repeat : 1; BYTE ackReq : 1; BYTE destPrsnt : 1; BYTE sourcePrsnt : 1; } bits; } flags; BYTE * SourceAddress; BYTE * Payload; BYTE PayloadLen; BYTE RSSIValue; BYTE LQIValue; BOOL altSourceAddress; WORD_VAL SourcePANID; } MAC_RECEIVED_PACKET;
Description
Content of the Received Message
This structure contains all information of the received message
Members
Members |
Description |
BYTE packetType : 2; |
type of packet. Possible types are
|
BYTE broadcast : 1; |
1: broadcast, 0: unicast |
BYTE secEn : 1; |
1: secure the MAC payload, 0: send plain text |
BYTE repeat : 1; |
1: allow repeaters to forward the message, 0: send message directly |
BYTE ackReq : 1; |
1: acknowledgement required, 0: no acknowldgement |
BYTE destPrsnt : 1; |
1: destination address in the packet, 0: destination address not in the packet |
BYTE sourcePrsnt : 1; |
1: source address in the packet, 0: source address not in the packet |
BYTE * SourceAddress; |
Address of the Sender |
BYTE * Payload; |
Pointer to the payload |
BYTE PayloadLen; |
Payload size |
BYTE RSSIValue; |
RSSI value for the received packet |
BYTE LQIValue; |
LQI value for the received packet |
BOOL altSourceAddress; |
Source address is the alternative network address |
WORD_VAL SourcePANID; |
PAN ID of the sender |
Symbol Reference > Types > MAC_RECEIVED_PACKET Structure