⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zbconstant.h

📁 IEEE802.15.4标准下的基于ZIGBEE协议栈的物理及链路层的代码
💻 H
字号:
/** * define zigbee constant */#ifndef __ZBCONSTANT_H__#define __ZBCONSTANT_H__/** * define the size of panDescriptorTable **/ #define MAX_PAN_DESCRIPTOR_NUM	4/** * next are physical layer module define */#define aMaxPHYPacketSize 127   //bytes#define aTurnaroundTime 12     //symbol period,one symbol period time ==16us in 2.4G/** * next are mac layer module define **/#define aMaxBE 5		//use in physical layer module#define macMinBE 2	//use in physical layer module#define macMaxCSMABackoffs 4		//use in physical layer module#define aUnitBackoffPeriod 20		//symbol period#define aMaxBeaconOverhead 75		//#define aMaxBeaconPayloadLength (aMaxPHYPacketSize-aMaxBeaconOverhead)	//#define aMaxFrameOverhead 25		//#define aMaxMACFrameSize (aMaxPHYPacketSize-aMaxFrameOverhead)#define aMaxFrameRetries 3		//The maximum number of retries allowed after a transmission failure#define macAckWaitDuration 540	//symbol period,default is 54 symbol period in 2.4g's channel/** * next are network layer module define **/#define nwkcCoordinatorCapable 1		//set by user at build time#define nwkcDiscoveryRetryLimit 3		//The maximum number of times a route discovery will be retried#define nwkcMaxDepth 0x0f#define nwkcMinHeaderOverhead 8		//The minimum number of octets added by the NWK layer to a NSDU#define nwkcProtocolVersion 2/** * Time duration in milliseconds, on the originator of a multicast route request, * between receiving a route reply and sending a message to validate the route **/#define nwkcWaitBeforeValidation 0x500	/** * Maximum number of allowed communication errors after which the route repair mechanism is initiated **/#define nwkcRepairThreshold 3/** * Time duration in milliseconds until a route discovery expires **/#define nwkcRouteDiscoveryTime 0x2710 /** * The number of times the first broadcast transmission of a route request command frame is retried **/#define nwkcInitialRREQRetries 3 /** * The number of times the broadcast transmission of a route request command * frame is retried on relay by an intermediate ZigBee router or ZigBee coordinator */#define nwkcRREQRetries 2/** * The number of milliseconds between retries of a broadcast route request command frame **/#define nwkcRREQRetryInterval 0xfe/** * The minimum jitter, in 2 millisecond slots, for broadcast retransmission of a route request command frame **/#define nwkcMinRREQJitter 1/** * The maximum jitter, in 2 millisecond slots,for broadcast retransmission of a route request command frame **/#define nwkcMaxRREQJitter 0x40/** * The maximum time duration in seconds allowed for the parent and all child * devices to retransmit a broadcast message (passive acknowledgment time-out). * in second unit. **/#define nwkPassiveAckTimeout 3		/** * The maximum number of retries allowed after a broadcast transmission failure **/#define nwkMaxBroadcastRetries 3/** * Time duration in seconds that a broadcast message needs to encompass the entire network **/#define nwkNetworkBroadcastDeliveryTime (nwkPassiveAckTimeout * nwkBroadcastRetries)/** * If this is set to 0,the NWK layer shall calculate link cost from all neighbor nodes  * using the LQI values reported by the MAC layer; Otherwise,it shall report a constant value **/#define nwkReportConstantCost 0#define nwkStackProfile 0/** * next are aps layer module define **//** * The maximum number of Address Map entries **/#define apscMaxAddrMapEntries 10/** * The maximum number of octets contained in a non-complex descriptor **/#define apscMaxDescriptorSize 64/** * The maximum number of octets that can be returned through the discovery process **/#define apscMaxDiscoverySize 64/** * The maximum number of retries allowed after a transmission failure. **/#define apscMaxFrameRetries 3/** * The maximum number of seconds to wait for an acknowledgement to a transmitted frame. * default is the value of nwkcMaxDepth. **/#define apscAckWaitDuration 0x0f /** * The minimum required size of the APS duplicate rejection table. **/#define apscMinDuplicateRejectionTableSize 10#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -