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

📄 zbtypes.h

📁 IEEE802.15.4标准下的基于ZIGBEE协议栈的物理及链路层的代码
💻 H
字号:
/*define zigbee stack data types */#ifndef __ZBTYPES_H__#define __ZBTYPES_H__typedef uint8_t mem_head_t;typedef uint8_t phy_error_t;typedef uint8_t mac_error_t;typedef uint8_t nwk_error_t;typedef uint8_t aps_error_t;//typedef nxle_uint64_t laddr_t;//typedef nxle_uint16_t saddr_t;#define saddr_t nxle_uint16_t#define panid_t nxle_uint16_ttypedef struct {	uint8_t bytes[8];} laddr_t;typedef union _addr_union_t {	laddr_t laddr;	saddr_t saddr;			uint16_t groupAddr;} addr_union_t;	/** * pan descriptor obtain from mac beacon frame when mac layer module scan channel, pan descriptor including mac  * superframe specification field and zigbee beacon payload field.  * * pan descriptor table is obtained and stored in mac layer module, submit to network layer module * by MlmeSap.positiveScanDone interface.  **/typedef struct _pan_descriptor_t {	nxle_uint16_t panId;	saddr_t shortAddr;	uint8_t logicalChannel;	uint8_t lqi;	struct {		unsigned int isPanCoord : 1;		unsigned int assocPermit : 1;		unsigned int routeCap : 1;		unsigned int endDeviceCap : 1;	} bits;		//zigbee beacon payload	uint8_t protocolId;	uint8_t stackProfile : 4;	uint8_t protocolVersion : 4;	uint8_t deviceDepth;	laddr_t extendedAddr;} pan_descriptor_t;#endif

⌨️ 快捷键说明

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