ZPS_tsAfDataIndEvent
This structure is used in the ZPS_EVENT_APS_DATA_INDICATION event, which indicates the arrival of data on the local node.
The ZPS_tsAfDataIndEventstructure is detailed below.
typedef struct
{
uint8 u8DstAddrMode;
ZPS_tuAddress uDstAddress;
uint8 u8DstEndpoint;
uint8 u8SrcAddrMode;
ZPS_tuAddress uSrcAddress;
uint8 u8SrcEndpoint;
uint16 u16ProfileId;
uint16 u16ClusterId;
PDUM_thAPduInstance hAPduInst;
uint8 eStatus;
uint8 eSecurityStatus;
uint8 u8LinkQuality;
uint32 u32RxTime;
} ZPS_tsAfDataIndEvent;
where:
u8DstAddrModeindicates the type of destination address specified through the elementuDstAddress(see the Table below.)uDstAddressis the address of the destination node for the data packet (the type of address is specified using the elementu8DstAddrModeabove).u8DstEndpointis the number of the destination endpoint (in range 0-240).u8SrcAddrModeindicates the type of source address specified through the elementuSrcAddress(below) - this can be a 64-bit MAC/IEEE address or a 16-bit network address.uSrcAddressis the address of the source node for the data packet (the type of address is specified using the elementu8SrcAddrModeabove).u8SrcEndpointis the number of the source endpoint (in range 1-240).u16ProfileIdis the identifier of the ZigBee device profile of the device which can interpret the data.u16ClusterIdis the identifier of the cluster (which belongs to the device profile specified inu16ProfileId) which is capable of interpreting the data.hAPduInstis the handle of the APDU which contains the data.eStatusis one of the status codes from the NWK layer or MAC layer, detailed in Section 11.2.3 and Section 11.2.4.eSecurityStatusindicates the type of security with which the packet was sent. It can be: unsecured (0xAF), secured with network key (0xAC), or secured with link key (0xAB).u8LinkQualityis a measure of the signal strength of the radio link over which the data packet was sent (for the last hop).u32RxTimeis reserved for future use.
Addressing modes
u8DstAddrMode |
Code |
Description |
|---|---|---|
0x00 |
ZPS_E_ADDR_MODE_BOUND |
Bound endpoint |
0x01 |
ZPS_E_ADDR_MODE_GROUP |
16-bit Group address |
0x02 |
ZPS_E_ADDR_MODE_SHORT |
16-bit Network (Short) address |
0x03 |
ZPS_E_ADDR_MODE_IEEE |
64-bit IEEE/MAC address |
Parent topic:Event structures