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

📄 mldesap.nc

📁 IEEE802.15.4标准下的基于ZIGBEE协议栈的物理及链路层的代码
💻 NC
字号:
/**									 * this interface are MAC layer data service access point (send and receive) * */#include "ZBTYPES.h" interface MldeSap{/** *  currently just support data sending in the same pan. *  do not support GTS transmission,indirect transmission,security enabled transmission. *  source short address and pan id will automatically add by mac layer module. *  addrMode = 0x02 indicate short address, addrMode = 0x03 indicate long address. */command error_t send(uint8_t srcAddrMode, uint8_t dstAddrMode, addr_union_t destAddr, uint8_t length, mem_head_t* pmsdu, bool ackSend);  /** * *pmsdu are the packet just send. */event void sendDone(error_t error, mem_head_t* pmsdu);/** * addrMode = 0x02 indicate short address, addrMode = 0x03 indicate long address */event void receive(uint8_t srcAddrMode, addr_union_t srcAddr, uint8_t dstAddrMode, addr_union_t dstAddr, uint8_t length, mem_head_t* pmsdu, uint8_t lqi);/* command error_t sendByShortAddr(saddr_t destAddr, uint8_t length, mem_head_t* pmsdu, bool ackSend);command error_t sendByLongAddr(laddr_t destAddr, uint8_t length, mem_head_t* pmsdu, bool ackSend);*/}

⌨️ 快捷键说明

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