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

📄 mac_security.h

📁 ucos在NEC平台下的移植
💻 H
字号:
/*******************************************************************************************************
 *                                                                                                     *
 *        **********                                                                                   *
 *       ************                                                                                  *
 *      ***        ***                                                                                 *
 *      ***   +++   ***                                                                                *
 *      ***   + +   ***                                                                                *
 *      ***   +                        CHIPCON CC2420 INTEGRATED 802.15.4 MAC AND PHY                  *
 *      ***   + +   ***                MAC Security Support                                            *
 *      ***   +++   ***                                                                                *
 *      ***        ***                                                                                 *
 *       ************                                                                                  *
 *        **********                                                                                   *
 *                                                                                                     *
 *******************************************************************************************************
 * CONFIDENTIAL                                                                                        *
 * The use of this file is restricted by the signed MAC software license agreement.                    *
 *                                                                                                     *
 * Copyright Chipcon AS, 2004                                                                          *
 *******************************************************************************************************
 * This file implements the MAC security support functions, used internally in the MAC sublayer        *
 *******************************************************************************************************
 * Compiler: AVR-GCC                                                                                   *
 * Target platform: CC2420DB, CC2420 + any ATMEGA MCU                                                  *
 *******************************************************************************************************
 * The revision history is located at the bottom of this file                                          *
 *******************************************************************************************************/

#ifndef MAC_SECURITY_H
#define MAC_SECURITY_H

typedef struct {
    BYTE secFlags2420;
    BYTE secMode2420;
    BYTE micLength;
    BYTE clearTextLength;
} MSEC_SETUP_INFO;

// msecFindSecurityMaterial function prototype moved to mac_tx_pool.h because of 
// type definition conflicts between these files and function headers
// BYTE msecFindSecurityMaterial(MAC_TX_PACKET *pPacket, ZBOOL securityEnable, BYTE addrMode, WORD panId, ADDRESS *pAddr);

void msecDecodeSecuritySuite(MSEC_SETUP_INFO *pMSI, BYTE securitySuite);
void msecSetupCC2420KeyAndNonce(ZBOOL isTx, MSEC_SETUP_INFO *pMSI, KEY pKey, BYTE* pCounters);
void msecSetupCC2420Regs(MSEC_SETUP_INFO *pMSI);

#endif

/*******************************************************************************************************
 * Revision history:
 *
 * $Log: mac_security.h,v $
 * Revision 1.4  2004/08/13 13:04:44  jol
 * CC2420 MAC Release v0.7
 *
 *
 *******************************************************************************************************/

⌨️ 快捷键说明

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