mac_setup.h

来自「zigbee location examples」· C头文件 代码 · 共 93 行

H
93
字号
/*******************************************************************************************************
 *                                                                                                     *
 *        **********                                                                                   *
 *       ************                                                                                  *
 *      ***        ***                                                                                 *
 *      ***   +++   ***                                                                                *
 *      ***   + +   ***                                                                                *
 *      ***   +                         CHIPCON CC2430 INTEGRATED 802.15.4 MAC AND PHY                 *
 *      ***   + +   ***                            MAC Parameter Setup File                            *
 *      ***   +++   ***                                                                                *
 *      ***        ***                                                                                 *
 *       ************                                                                                  *
 *        **********                                                                                   *
 *                                                                                                     *
 *******************************************************************************************************
 * CONFIDENTIAL                                                                                        *
 * The use of this file is restricted by the signed MAC software license agreement.                    *
 *                                                                                                     *
 * Copyright Chipcon AS, 2005                                                                          *
 *******************************************************************************************************
 * This file contains the MAC setup parameters which may be set differently for different applications *
 * or devices. These parameters can also be set in the make file.                                      *
 *******************************************************************************************************/
#ifndef MAC_SETUP_H
#define MAC_SETUP_H


//-------------------------------------------------------------------------------------------------------
// Is the current device a FFD or RFD?
// Currently only FFD has been tested.
// Setting MAC_OPT_FFD to 0 will reduce code and RAM sizes
#ifndef MAC_OPT_FFD
    #define MAC_OPT_FFD 1
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The maximum number of devices in the ACL
// If set to 0, ACL is not implemented.
// If MAC_OPT_SECURITY is set, MAC_OPT_ACL_SIZE must be >= 1
#ifndef MAC_OPT_ACL_SIZE
    #define MAC_OPT_ACL_SIZE 0
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// Is security implemented?
// 0 : No
// 1 : Yes
#ifndef MAC_OPT_SECURITY
    #define MAC_OPT_SECURITY 0
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// If security is implemented, are optional sequential freshness included?
#ifndef MAC_OPT_SEQUENTIAL_FRESHNESS
    #define MAC_OPT_SEQUENTIAL_FRESHNESS 0
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The maximum number of PAN descriptors returned from a passive or active scan. This memory space
// is set up by a layer above the MAC
#ifndef MAC_OPT_MAX_PAN_DESCRIPTORS
    #define MAC_OPT_MAX_PAN_DESCRIPTORS 4
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The number of packets in the RX pool (at least 1)
#ifndef MAC_OPT_RX_POOL_SIZE
    #define MAC_OPT_RX_POOL_SIZE 4
#endif
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
// The number of packets in the TX pool (at least 1, 2 when transmitting beacons)
#ifndef MAC_OPT_TX_POOL_SIZE
    #define MAC_OPT_TX_POOL_SIZE 6
#endif
//-------------------------------------------------------------------------------------------------------


#endif

⌨️ 快捷键说明

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