mldesap.nc
来自「IEEE802.15.4标准下的基于ZIGBEE协议栈的物理及链路层的代码」· NC 代码 · 共 45 行
NC
45 行
/** * 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 + =
减小字号Ctrl + -
显示快捷键?