tsBeaconFilterType
This structure contains the details of a beacon filter that can be introduced using the function ZPS_bAppAddBeaconFilter().
The tsBeaconFilterTypestructure is detailed below.
typedef struct
{
uint64 *pu64ExtendPanIdList;
uint16 u16Panid;
uint16 u16FilterMap;
uint8 u8ListSize;
uint8 u8Lqi;
uint8 u8Depth;
} tsBeaconFilterType;
where:
pu64ExtendPanIdListis a pointer to a list of 64-bit Extended PAN IDs (EPIDs) which acts as a blacklist or whitelist of networks, depending on the settings of bits 0 and 1 in theu8FilterMapbitmap:If this is a blacklist, beacons from networks with EPIDs in the list will not be accepted
If this is a whitelist, only beacons from networks with EPIDs in the list will be accepted
u16Panidis a 16-bit PAN ID on which beacons can be filteredu8ListSizeis the number of Extended PAN IDs in the list pointed to by
pu64ExtendPanIdList
u8Lqiis the minimum LQI value (in the range 0 to 255) of an acceptable beacon (any beacon with LQI value less than this minimum will be filtered out) - if required, this field must be enabled through bit 2 in theu8FilterMapbitmapu8Depthis the tree depth of the neighbor device. A value of 0x00 indicates that the device is the ZigBee coordinator for the network.u16FilterMapis an 16-bit bitmap detailing the filtering requirements, as follows:
Bit |
Enumeration |
Description |
|---|---|---|
0 |
BF_BITMAP_BLACKLIST(0x1) |
If set, field |
1 |
BF_BITMAP_WHITELIST (0x2) |
If set, field |
2 |
BF_BITMAP_LQI (0x4) |
If set, beacons must be filtered according to LQI value using the minimum in field |
3 |
BF_BITMAP_CAP_ENDDEVICE (0x8) |
If set, beacons from nodes with capacity for End Device children can be accepted. |
4 |
BF_BITMAP_CAP_ROUTER (0x10) |
If set, beacons from nodes with capacity for Router children can be accepted. |
5 |
BF_BITMAP_PERMIT_JOIN (0x20) |
If set, beacons from nodes with ‘permit join- ing’ enabled can be accepted. |
6 |
BF_BITMAP_SHORT_PAN (0x40) |
If set, beacons from nodes on a network with the PAN ID in |
7 |
- |
Reserved. |
8 |
BF_BITMAP_DEPTH |
If set, beacons from nodes on a network with the depth in u8Depth. if it is set to 0xff - filters out any beacon which is not from the coordinator. Any other value of u8Depth, filters out beacons with greater than or equal to |
Note: Bits 0 and 1 must not both be set.
Note: After each discovery or rejoin, the flags contained in the u16FilterMap field are cleared, while all other fields of this structure remain intact.
Parent topic:Other structures