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

📄 nwk_support.h

📁 ucos在NEC平台下的移植
💻 H
字号:
#ifndef NWK_SUPPORT_H
#define  NWK_SUPPORT_H

//-------------------------------------------------------------------------------------------------------
//  nsupPrepareHeader(NWK_TX_PACKET *nPacket, BYTE type, BYTE addrModes, WORD srcPanId, ADDRESS ...)
//
//  DESCRIPTION:
//      Packet header assembly function, used for data and command frames.
//      The NWK header includes:frame control field,destination address field,
//                                            source assress field,radius field,
//                                            sequence number field.
//
//  PARAMETERS:
//      NWK_TX_PACKET *nPacket
//          The packet structure to update (this function affects the header part) 
//      BYTE type
//          FRAME_TYPE_NWK_DATA or FRAME_TYPE_NWK_COMMAND
//      BYTE addrModes
//          Address mode for source and destination
//          (SRC_ADDR_SHORT, SRC_ADDR_EXT or 0) | (DEST_ADDR_SHORT, DEST_ADDR_EXT or 0)
//      ADDRESS *pSrcAddr
//          Pointer to the source address (short or extended)
//      ADDRESS *pDestAddr, 
//          Pointer to the destination address (short or extended)
//-----------------------------------------------------------------------------------------------------
void nsupPrepareHeader(NWK_TX_PACKET *nPacket, ADDRESS *pDestAddr);
#endif

⌨️ 快捷键说明

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