📄 zglobals.lst
字号:
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 //uint16 zgConfigPANID = 0x0001;
139
140 // Device Logical Type
\ In segment XDATA_I, align 1, keep-with-next
141 uint8 zgDeviceLogicalType = DEVICE_LOGICAL_TYPE;
\ zgDeviceLogicalType:
\ 000000 DS 1
\ 000001 REQUIRE `?<Initializer for zgDeviceLogicalType>`
\ 000001 REQUIRE __INIT_XDATA_I
142
143 // Startup Delay
\ In segment XDATA_I, align 1, keep-with-next
144 uint8 zgStartDelay = START_DELAY;
\ zgStartDelay:
\ 000000 DS 1
\ 000001 REQUIRE `?<Initializer for zgStartDelay>`
\ 000001 REQUIRE __INIT_XDATA_I
145
146 /*********************************************************************
147 * NON-STANDARD GLOBAL VARIABLES
148 */
149
150 // Simple API Endpoint
\ In segment XDATA_I, align 1, keep-with-next
151 uint8 zgSapiEndpoint = SAPI_ENDPOINT;
\ zgSapiEndpoint:
\ 000000 DS 1
\ 000001 REQUIRE `?<Initializer for zgSapiEndpoint>`
\ 000001 REQUIRE __INIT_XDATA_I
152
153 /*********************************************************************
154 * LOCAl VARIABLES
155 */
156
157 /*********************************************************************
158 * ZGlobal Item Table
159 */
\ In segment CODE_C, align 1
160 static CONST zgItem_t zgItemTable[] =
\ ??zgItemTable:
\ 000000 00000000 DW 0, 0, 0H
\ 0000
161 {
162 #if defined ( NV_INIT )
163 {
164 ZCD_NV_LOGICAL_TYPE, sizeof(zgDeviceLogicalType), &zgDeviceLogicalType
165 },
166 {
167 ZCD_NV_POLL_RATE, sizeof(zgPollRate), &zgPollRate
168 },
169 {
170 ZCD_NV_QUEUED_POLL_RATE, sizeof(zgQueuedPollRate), &zgQueuedPollRate
171 },
172 {
173 ZCD_NV_RESPONSE_POLL_RATE, sizeof(zgResponsePollRate), &zgResponsePollRate
174 },
175 {
176 ZCD_NV_REJOIN_POLL_RATE, sizeof(zgRejoinPollRate), &zgRejoinPollRate
177 },
178 {
179 ZCD_NV_DATA_RETRIES, sizeof(zgMaxDataRetries), &zgMaxDataRetries
180 },
181 {
182 ZCD_NV_POLL_FAILURE_RETRIES, sizeof(zgMaxPollFailureRetries), &zgMaxPollFailureRetries
183 },
184 {
185 ZCD_NV_CHANLIST, sizeof(zgDefaultChannelList), &zgDefaultChannelList
186 }
187 ,
188 {
189 ZCD_NV_SCAN_DURATION, sizeof(zgDefaultStartingScanDuration), &zgDefaultStartingScanDuration
190 },
191 {
192 ZCD_NV_STACK_PROFILE, sizeof(zgStackProfile), &zgStackProfile
193 },
194 {
195 ZCD_NV_INDIRECT_MSG_TIMEOUT, sizeof(zgIndirectMsgTimeout), &zgIndirectMsgTimeout
196 },
197 {
198 ZCD_NV_ROUTE_EXPIRY_TIME, sizeof(zgRouteExpiryTime), &zgRouteExpiryTime
199 },
200 {
201 ZCD_NV_EXTENDED_PAN_ID, Z_EXTADDR_LEN, &zgExtendedPANID
202 },
203 {
204 ZCD_NV_BCAST_RETRIES, sizeof(zgMaxBcastRetires), &zgMaxBcastRetires
205 },
206 {
207 ZCD_NV_PASSIVE_ACK_TIMEOUT, sizeof(zgPassiveAckTimeout), &zgPassiveAckTimeout
208 },
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -