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

📄 zdconfig.s51

📁 CC2430上开关控制灯和温度传感器采集两个例子
💻 S51
📖 第 1 页 / 共 2 页
字号:
//    4     Revision:       $Revision: 11786 $
//    5 
//    6     Description:
//    7 
//    8       This file contains the configuration attributes for the
//    9       Zigbee Device Object.  These are references to Configuration
//   10       items that MUST be defined in ZDApp.c.  The names mustn't
//   11       change.
//   12 
//   13     Notes:
//   14 
//   15     Copyright (c) 2006 by Texas Instruments, Inc.
//   16     All Rights Reserved.  Permission to use, reproduce, copy, prepare
//   17     derivative works, modify, distribute, perform, display or sell this
//   18     software and/or its documentation for any purpose is prohibited
//   19     without the express written consent of Texas Instruments, Inc.
//   20 *********************************************************************/
//   21 
//   22 /*********************************************************************
//   23  * INCLUDES
//   24  */
//   25 #include "ZComdef.h"
//   26 #include "AF.h"
//   27 #include "ZDObject.h"
//   28 #include "ZDConfig.h"
//   29 #include "ZDCache.h"
//   30 
//   31  /*********************************************************************
//   32  * MACROS
//   33  */
//   34 
//   35 /*********************************************************************
//   36  * CONSTANTS
//   37  */
//   38 
//   39 /*********************************************************************
//   40  * TYPEDEFS
//   41  */
//   42 
//   43 /*********************************************************************
//   44  * GLOBAL VARIABLES
//   45  */
//   46 
//   47 /*********************************************************************
//   48  * EXTERNAL VARIABLES
//   49  */
//   50 
//   51 /*********************************************************************
//   52  * EXTERNAL FUNCTIONS
//   53  */
//   54 
//   55 /*********************************************************************
//   56  * LOCAL FUNCTIONS
//   57  */
//   58 
//   59 /*********************************************************************
//   60  * LOCAL VARIABLES
//   61  */
//   62 

        RSEG XDATA_I:XDATA:NOROOT(0)
//   63 NodeDescriptorFormat_t ZDO_Config_Node_Descriptor =
ZDO_Config_Node_Descriptor:
        DS 10
        REQUIRE `?<Initializer for ZDO_Config_Node_Descriptor>`
        REQUIRE __INIT_XDATA_I
//   64 {
//   65 #if defined( ZDO_COORDINATOR ) && !defined( SOFT_START )
//   66   NODETYPE_COORDINATOR,
//   67 #elif defined (RTR_NWK)
//   68 	NODETYPE_ROUTER,
//   69 #else
//   70   NODETYPE_DEVICE,          // Logical Type
//   71 #endif
//   72   0,                        // User Descriptor Available is set later.
//   73   0,                        // Complex Descriptor Available is set later.
//   74   0,			              		// Reserved
//   75   0,	        	            // NO APS flags
//   76   NODEFREQ_2400,            // Frequency Band
//   77   // MAC Capabilities
//   78 #if defined (RTR_NWK)
//   79   (
//   80   #if defined( ZDO_COORDINATOR ) || defined( SOFT_START )
//   81     CAPINFO_ALTPANCOORD |
//   82   #endif
//   83     CAPINFO_DEVICETYPE_FFD |
//   84     CAPINFO_POWER_AC |
//   85     CAPINFO_RCVR_ON_IDLE ),
//   86 #else
//   87   CAPINFO_DEVICETYPE_RFD
//   88   #if ( RFD_RCVC_ALWAYS_ON == TRUE)
//   89     | CAPINFO_RCVR_ON_IDLE
//   90   #endif
//   91   ,
//   92 #endif
//   93   { 0x00, 0x00 },           // Manfacturer Code - *YOU FILL IN*
//   94   MAX_BUFFER_SIZE,          // Maximum Buffer Size.
//   95   // The maximum transfer size field isn't used and spec says to set to 0.
//   96   {0, 0},
//   97   ( 0
//   98 #if defined( ZDO_COORDINATOR ) && ( SECURE != 0 )    
//   99     | PRIM_TRUST_CENTER
//  100 #endif      
//  101 #if defined( ZDO_CACHE ) && ( CACHE_DEV_MAX > 0 )
//  102     | PRIM_DISC_TABLE
//  103 #endif
//  104   )
//  105 };
//  106 

        RSEG XDATA_I:XDATA:NOROOT(0)
//  107 NodePowerDescriptorFormat_t ZDO_Config_Power_Descriptor =
ZDO_Config_Power_Descriptor:
        DS 2
        REQUIRE `?<Initializer for ZDO_Config_Power_Descriptor>`
        REQUIRE __INIT_XDATA_I

        RSEG XDATA_ID:CODE:NOROOT(0)
`?<Initializer for ZDO_Config_Node_Descriptor>`:
        DB 1, 64, 15, 0, 0, 80, 0, 0
        DW 0

        RSEG XDATA_ID:CODE:NOROOT(0)
`?<Initializer for ZDO_Config_Power_Descriptor>`:
        DW 49424

        END
//  108 {
//  109 #if defined ( RTR_NWK )
//  110   NODECURPWR_RCVR_ALWAYS_ON,
//  111   NODEAVAILPWR_MAINS,       // available power sources
//  112   NODEAVAILPWR_MAINS,       // current power source
//  113   NODEPOWER_LEVEL_100       // Power Level
//  114 #else
//  115   // Assume End Device
//  116 #if defined ( NWK_AUTO_POLL )
//  117   NODECURPWR_RCVR_AUTO,
//  118 #else
//  119   NODECURPWR_RCVR_STIM,
//  120 #endif
//  121   NODEAVAILPWR_RECHARGE,    // available power sources
//  122   NODEAVAILPWR_RECHARGE,    // current power source
//  123   NODEPOWER_LEVEL_66        // Power Level
//  124 #endif
//  125 };
//  126 
//  127 /*********************************************************************
//  128 *********************************************************************/
//  129 
//  130 
// 
// 12 bytes in segment XDATA_I
// 12 bytes in segment XDATA_ID
// 
// 12 bytes of CODE  memory
// 12 bytes of XDATA memory
//
//Errors: none
//Warnings: none

⌨️ 快捷键说明

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