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

📄 nldesap.nc

📁 IEEE802.15.4标准下的基于ZIGBEE协议栈的物理及链路层的代码
💻 NC
字号:
/**									 * this interface are NETWORK layer data service access point (send and receive) * */#include "ZBTYPES.h" interface NldeSap{/** *  * dstAddrMode = 0x01 indicate multicast group address; dstAddrMode = 0x02 indicate NWK address of a device * or broadcast address. * radius indicate the distance, in hops, that this frame will be allowed to travel through the network. * when dstAddrMode = 0x01, nonmemberRadius indicate the distance, in hops, that a multicast frame will be  * relayed by nodes not a member of the group; A value of 0x07 is treated as infinity. * discoverRoute = 0x00 indicate suppress route discovery; discoverRoute = 0x01 indicate enable route discovery. * */command error_t send(uint8_t dstAddrMode, saddr_t destAddr, uint8_t length, mem_head_t* pnsdu, uint8_t radius,				uint8_t nonmemberRadius, uint8_t discoverRoute);  /** * *pnsdu are the packet just send. */event void sendDone(error_t error, mem_head_t* pnsdu);/** * dstAddrMode = 0x01 indicate multicast group address; dstAddrMode = 0x02 indicate NWK address of this node  * or broadcast address. */event void receive(uint8_t dstAddrMode, saddr_t destAddr, saddr_t srcAddr, uint8_t length, mem_head_t* pnsdu, uint8_t lqi);}

⌨️ 快捷键说明

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