zglobals.lst

来自「CC2430上开关控制灯和温度传感器采集两个例子」· LST 代码 · 共 1,276 行 · 第 1/5 页

LST
1,276
字号
   \                                 In segment XDATA_I, align 1, keep-with-next
     70          uint8 zgStackProfile = STACK_PROFILE_ID;
   \                     zgStackProfile:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgStackProfile>`
   \   000001                REQUIRE __INIT_XDATA_I
     71          
     72          // Default indirect message holding timeout

   \                                 In segment XDATA_I, align 1, keep-with-next
     73          uint8 zgIndirectMsgTimeout = NWK_INDIRECT_MSG_TIMEOUT;
   \                     zgIndirectMsgTimeout:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgIndirectMsgTimeout>`
   \   000001                REQUIRE __INIT_XDATA_I
     74          
     75          // Security level

   \                                 In segment XDATA_Z, align 1, keep-with-next
   \   000000                REQUIRE __INIT_XDATA_Z
     76          uint8 zgSecurityLevel = SECURITY_LEVEL;
   \                     zgSecurityLevel:
   \   000000                DS 1
     77          
     78          // Route expiry

   \                                 In segment XDATA_I, align 1, keep-with-next
     79          uint8 zgRouteExpiryTime = ROUTE_EXPIRY_TIME;
   \                     zgRouteExpiryTime:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgRouteExpiryTime>`
   \   000001                REQUIRE __INIT_XDATA_I
     80          
     81          // Extended PAN Id

   \                                 In segment XDATA_Z, align 1, keep-with-next
   \   000000                REQUIRE __INIT_XDATA_Z
     82          uint8 zgExtendedPANID[Z_EXTADDR_LEN];
   \                     zgExtendedPANID:
   \   000000                DS 8
     83          
     84          // Broadcast parameters

   \                                 In segment XDATA_I, align 1, keep-with-next
     85          uint8 zgMaxBcastRetires   = MAX_BCAST_RETRIES;
   \                     zgMaxBcastRetires:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgMaxBcastRetires>`
   \   000001                REQUIRE __INIT_XDATA_I

   \                                 In segment XDATA_I, align 1, keep-with-next
     86          uint8 zgPassiveAckTimeout = PASSIVE_ACK_TIMEOUT;
   \                     zgPassiveAckTimeout:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgPassiveAckTimeout>`
   \   000001                REQUIRE __INIT_XDATA_I

   \                                 In segment XDATA_I, align 1, keep-with-next
     87          uint8 zgBcastDeliveryTime = BCAST_DELIVERY_TIME;
   \                     zgBcastDeliveryTime:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgBcastDeliveryTime>`
   \   000001                REQUIRE __INIT_XDATA_I
     88          
     89          // Network mode

   \                                 In segment XDATA_I, align 1, keep-with-next
     90          uint8 zgNwkMode = NWK_MODE;
   \                     zgNwkMode:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgNwkMode>`
   \   000001                REQUIRE __INIT_XDATA_I
     91          
     92          // Many-to-one values

   \                                 In segment XDATA_Z, align 1, keep-with-next
   \   000000                REQUIRE __INIT_XDATA_Z
     93          uint8 zgConcentratorEnable = CONCENTRATOR_ENABLE;
   \                     zgConcentratorEnable:
   \   000000                DS 1

   \                                 In segment XDATA_Z, align 1, keep-with-next
   \   000000                REQUIRE __INIT_XDATA_Z
     94          uint8 zgConcentratorDiscoveryTime = CONCENTRATOR_DISCOVERY_TIME;
   \                     zgConcentratorDiscoveryTime:
   \   000000                DS 1

   \                                 In segment XDATA_I, align 1, keep-with-next
     95          uint8 zgConcentratorRadius = CONCENTRATOR_RADIUS;
   \                     zgConcentratorRadius:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgConcentratorRadius>`
   \   000001                REQUIRE __INIT_XDATA_I

   \                                 In segment XDATA_I, align 1, keep-with-next
     96          uint8 zgMaxSourceRoute = MAX_SOURCE_ROUTE;
   \                     zgMaxSourceRoute:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgMaxSourceRoute>`
   \   000001                REQUIRE __INIT_XDATA_I
     97          
     98          
     99          /*********************************************************************
    100           * APS GLOBAL VARIABLES
    101           */
    102          
    103          // The maximum number of retries allowed after a transmission failure

   \                                 In segment XDATA_I, align 1, keep-with-next
    104          uint8 zgApscMaxFrameRetries = APSC_MAX_FRAME_RETRIES;
   \                     zgApscMaxFrameRetries:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgApscMaxFrameRetries>`
   \   000001                REQUIRE __INIT_XDATA_I
    105          
    106          // The maximum number of seconds (milliseconds) to wait for an
    107          // acknowledgement to a transmitted frame.
    108          
    109          // This number is used by polled devices.

   \                                 In segment XDATA_I, align 1, keep-with-next
    110          uint16 zgApscAckWaitDurationPolled = APSC_ACK_WAIT_DURATION_POLLED;
   \                     zgApscAckWaitDurationPolled:
   \   000000                DS 2
   \   000002                REQUIRE `?<Initializer for zgApscAckWaitDurationPolled>`
   \   000002                REQUIRE __INIT_XDATA_I
    111          
    112          // This number is used by non-polled devices in the following formula:
    113          //   (100 mSec) * (_NIB.MaxDepth * zgApsAckWaitMultiplier)

   \                                 In segment XDATA_I, align 1, keep-with-next
    114          uint8 zgApsAckWaitMultiplier = 2;
   \                     zgApsAckWaitMultiplier:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgApsAckWaitMultiplier>`
   \   000001                REQUIRE __INIT_XDATA_I
    115          
    116          // The maximum number of milliseconds for the end device binding

   \                                 In segment XDATA_I, align 1, keep-with-next
    117          uint16 zgApsDefaultMaxBindingTime = APS_DEFAULT_MAXBINDING_TIME;
   \                     zgApsDefaultMaxBindingTime:
   \   000000                DS 2
   \   000002                REQUIRE `?<Initializer for zgApsDefaultMaxBindingTime>`
   \   000002                REQUIRE __INIT_XDATA_I
    118          
    119          /*********************************************************************
    120           * SECURITY GLOBAL VARIABLES
    121           */
    122          
    123          // This is the pre-configured key in use (from NV memory)

   \                                 In segment XDATA_Z, align 1, keep-with-next
   \   000000                REQUIRE __INIT_XDATA_Z
    124          uint8 zgPreConfigKey[SEC_KEY_LEN];
   \                     zgPreConfigKey:
   \   000000                DS 16
    125          
    126          // If true, preConfigKey should be configured on all devices on the network
    127          // If false, it is configured only on the coordinator and sent to other 
    128          // devices upon joining.

   \                                 In segment XDATA_Z, align 1, keep-with-next
   \   000000                REQUIRE __INIT_XDATA_Z
    129          uint8 zgPreConfigKeys = FALSE; //  TRUE;
   \                     zgPreConfigKeys:
   \   000000                DS 1
    130          
    131          
    132          /*********************************************************************
    133           * ZDO GLOBAL VARIABLES
    134           */
    135          
    136          // Configured PAN ID

   \                                 In segment XDATA_I, align 1, keep-with-next
    137          uint16 zgConfigPANID = ZDAPP_CONFIG_PAN_ID;
   \                     zgConfigPANID:
   \   000000                DS 2
   \   000002                REQUIRE `?<Initializer for zgConfigPANID>`
   \   000002                REQUIRE __INIT_XDATA_I
    138          
    139          // Device Logical Type

   \                                 In segment XDATA_I, align 1, keep-with-next
    140          uint8 zgDeviceLogicalType = DEVICE_LOGICAL_TYPE;
   \                     zgDeviceLogicalType:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgDeviceLogicalType>`
   \   000001                REQUIRE __INIT_XDATA_I
    141          
    142          // Startup Delay

   \                                 In segment XDATA_I, align 1, keep-with-next
    143          uint8 zgStartDelay = START_DELAY;
   \                     zgStartDelay:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgStartDelay>`
   \   000001                REQUIRE __INIT_XDATA_I
    144          
    145          /*********************************************************************
    146           * NON-STANDARD GLOBAL VARIABLES
    147           */
    148          
    149          // Simple API Endpoint

   \                                 In segment XDATA_I, align 1, keep-with-next
    150          uint8 zgSapiEndpoint = SAPI_ENDPOINT;
   \                     zgSapiEndpoint:
   \   000000                DS 1
   \   000001                REQUIRE `?<Initializer for zgSapiEndpoint>`
   \   000001                REQUIRE __INIT_XDATA_I
    151          
    152          /*********************************************************************
    153           * LOCAl VARIABLES
    154           */
    155          
    156          /*********************************************************************
    157           * ZGlobal Item Table
    158           */

   \                                 In segment CODE_C, align 1
    159          static CONST zgItem_t zgItemTable[] = 
   \                     ??zgItemTable:
   \   000000   87000100     DW 135, 1, zgDeviceLogicalType, 36, 2, zgPollRate, 37, 2
   \            ....2400
   \            0200....
   \            25000200
   \   000010   ....2600     DW zgQueuedPollRate, 38, 2, zgResponsePollRate, 39, 2, zgRejoinPollRate
   \            0200....
   \            27000200
   \            ....    
   \   00001E   28000100     DW 40, 1, zgMaxDataRetries, 41, 1, zgMaxPollFailureRetries, 132, 4
   \            ....2900
   \            0100....
   \            84000400
   \   00002E   ....8600     DW zgDefaultChannelList, 134, 1, zgDefaultStartingScanDuration, 42, 1
   \            0100....
   \            2A000100
   \   00003A   ....2B00     DW zgStackProfile, 43, 1, zgIndirectMsgTimeout, 44, 1
   \            0100....
   \            2C000100
   \   000046   ....2D00     DW zgRouteExpiryTime, 45, 8, zgExtendedPANID, 46, 1, zgMaxBcastRetires
   \            0800....
   \            2E000100
   \            ....    
   \   000054   2F000100     DW 47, 1, zgPassiveAckTimeout, 48, 1, zgBcastDeliveryTime, 49, 1
   \            ....3000
   \            0100....
   \            31000100
   \   000064   ....3200     DW zgNwkMode, 50, 1, zgConcentratorEnable, 51, 1
   \            0100....
   \            33000100
   \   000070   ....3400     DW zgConcentratorDiscoveryTime, 52, 1, zgConcentratorRadius, 53, 1
   \            0100....
   \            35000100

⌨️ 快捷键说明

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