-
Notifications
You must be signed in to change notification settings - Fork 5
/
const_strings.go
438 lines (359 loc) · 16.3 KB
/
const_strings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
// Code generated by "stringer -type Status,LatencyReq,DeviceState -output const_strings.go"; DO NOT EDIT.
package znp
import "strconv"
const _Latency_name = "LatencyNoLatencyLatencyFastBeaconsLatencySlowBeacons"
var _Latency_index = [...]uint8{0, 16, 34, 52}
func (i Latency) String() string {
if i >= Latency(len(_Latency_index)-1) {
return "Latency(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Latency_name[_Latency_index[i]:_Latency_index[i+1]]
}
const _StartupFromAppStatus_name = "StartupFromAppStatusRestoredNetworkStateStartupFromAppStatusNewNetworkStateStartupFromAppStatusLeaveAndNotStarted"
var _StartupFromAppStatus_index = [...]uint8{0, 40, 75, 113}
func (i StartupFromAppStatus) String() string {
if i >= StartupFromAppStatus(len(_StartupFromAppStatus_index)-1) {
return "StartupFromAppStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _StartupFromAppStatus_name[_StartupFromAppStatus_index[i]:_StartupFromAppStatus_index[i+1]]
}
const _Status_name = "StatusSuccessStatusFailureStatusInvalidParameterStatusItemCreatedAndInitializedStatusInitializationFailedStatusBadLengthStatusMemErrorStatusBufferFullStatusUnsupportedModeStatusMacMemErrorStatusSapiInProgressStatusSapiTimeoutStatusSapiInitStatusNotAuthorizedStatusMalformedCmdStatusUnsupClusterCmdStatusZdpInvalidEpStatusZdpNotActiveStatusZdpNotSupportedStatusZdpTimeoutStatusZdpNoMatchStatusZdpNoEntryStatusZdpNoDescriptorStatusZdpInsufficientSpaceStatusZdpNotPermittedStatusZdpTableFullStatusZdpNotAuthorizedStatusZdpBindingTableFullStatusOtaAbortStatusOtaImageInvalidStatusOtaWaitForDataStatusOtaNoImageAvailableStatusOtaRequireMoreImageStatusSecNoKeyStatusSecOldFrmCountStatusSecMaxFrmCountStatusSecCcmFailStatusSecFailureStatusApsFailStatusApsTableFullStatusApsIllegalRequestStatusApsInvalidBindingStatusApsUnsupportedAttribStatusApsNotSupportedStatusApsNoAckStatusApsDuplicateEntryStatusApsNoBoundDeviceStatusApsNotAllowedStatusApsNotAuthenticatedStatusNwkInvalidParamStatusNwkInvalidRequestStatusNwkNotPermittedStatusNwkStartupFailureStatusNwkAlreadyPresentStatusNwkSyncFailureStatusNwkTableFullStatusNwkUnknownDeviceStatusNwkUnsupportedAttributeStatusNwkNoNetworksStatusNwkLeaveUnconfirmedStatusNwkNoAckStatusNwkNoRouteStatusMacBeaconLossStatusMacChannelAccessFailureStatusMacDeniedStatusMacDisableTrxFailureStatusMacFailedSecurityCheckStatusMacFrameTooLongStatusMacInvalidGTSStatusMacInvalidHandleStatusMacInvalidParameterStatusMacNoACKStatusMacNoBeaconStatusMacNoDataStatusMacNoShortAddrStatusMacOutOfCapStatusMacPANIDConflictStatusMacRealignmentStatusMacTransactionExpiredStatusMacTransactionOverFlowStatusMacTxActiveStatusMacUnAvailableKeyStatusMacUnsupportedAttributeStatusMacUnsupportedStatusMacSrcMatchInvalidIndex"
var _Status_map = map[Status]string{
0: _Status_name[0:13],
1: _Status_name[13:26],
2: _Status_name[26:48],
9: _Status_name[48:79],
10: _Status_name[79:105],
12: _Status_name[105:120],
16: _Status_name[120:134],
17: _Status_name[134:150],
18: _Status_name[150:171],
19: _Status_name[171:188],
32: _Status_name[188:208],
33: _Status_name[208:225],
34: _Status_name[225:239],
126: _Status_name[239:258],
128: _Status_name[258:276],
129: _Status_name[276:297],
130: _Status_name[297:315],
131: _Status_name[315:333],
132: _Status_name[333:354],
133: _Status_name[354:370],
134: _Status_name[370:386],
136: _Status_name[386:402],
137: _Status_name[402:423],
138: _Status_name[423:449],
139: _Status_name[449:470],
140: _Status_name[470:488],
141: _Status_name[488:510],
142: _Status_name[510:535],
149: _Status_name[535:549],
150: _Status_name[549:570],
151: _Status_name[570:590],
152: _Status_name[590:615],
153: _Status_name[615:640],
161: _Status_name[640:654],
162: _Status_name[654:674],
163: _Status_name[674:694],
164: _Status_name[694:710],
173: _Status_name[710:726],
177: _Status_name[726:739],
178: _Status_name[739:757],
179: _Status_name[757:780],
180: _Status_name[780:803],
181: _Status_name[803:829],
182: _Status_name[829:850],
183: _Status_name[850:864],
184: _Status_name[864:887],
185: _Status_name[887:909],
186: _Status_name[909:928],
187: _Status_name[928:953],
193: _Status_name[953:974],
194: _Status_name[974:997],
195: _Status_name[997:1018],
196: _Status_name[1018:1041],
197: _Status_name[1041:1064],
198: _Status_name[1064:1084],
199: _Status_name[1084:1102],
200: _Status_name[1102:1124],
201: _Status_name[1124:1153],
202: _Status_name[1153:1172],
203: _Status_name[1172:1197],
204: _Status_name[1197:1211],
205: _Status_name[1211:1227],
224: _Status_name[1227:1246],
225: _Status_name[1246:1275],
226: _Status_name[1275:1290],
227: _Status_name[1290:1316],
228: _Status_name[1316:1344],
229: _Status_name[1344:1365],
230: _Status_name[1365:1384],
231: _Status_name[1384:1406],
232: _Status_name[1406:1431],
233: _Status_name[1431:1445],
234: _Status_name[1445:1462],
235: _Status_name[1462:1477],
236: _Status_name[1477:1497],
237: _Status_name[1497:1514],
238: _Status_name[1514:1536],
239: _Status_name[1536:1556],
240: _Status_name[1556:1583],
241: _Status_name[1583:1611],
242: _Status_name[1611:1628],
243: _Status_name[1628:1651],
244: _Status_name[1651:1680],
245: _Status_name[1680:1700],
255: _Status_name[1700:1729],
}
func (i Status) String() string {
if str, ok := _Status_map[i]; ok {
return str
}
return "Status(" + strconv.FormatInt(int64(i), 10) + ")"
}
const (
_AddrMode_name_0 = "AddrModeAddrNotPresentAddrModeAddrGroupAddrModeAddr16BitAddrModeAddr64Bit"
_AddrMode_name_1 = "AddrModeAddrBroadcast"
)
var (
_AddrMode_index_0 = [...]uint8{0, 22, 39, 56, 73}
)
func (i AddrMode) String() string {
switch {
case 0 <= i && i <= 3:
return _AddrMode_name_0[_AddrMode_index_0[i]:_AddrMode_index_0[i+1]]
case i == 15:
return _AddrMode_name_1
default:
return "AddrMode(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
const _InterPanCommand_name = "InterPanCommandInterPanClrInterPanCommandInterPanSetInterPanCommandInterPanRegInterPanCommandInterPanChk"
var _InterPanCommand_index = [...]uint8{0, 26, 52, 78, 104}
func (i InterPanCommand) String() string {
if i >= InterPanCommand(len(_InterPanCommand_index)-1) {
return "InterPanCommand(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _InterPanCommand_name[_InterPanCommand_index[i]:_InterPanCommand_index[i+1]]
}
const (
_Channel_name_0 = "ChannelAIN0ChannelAIN1ChannelAIN2ChannelAIN3ChannelAIN4ChannelAIN5ChannelAIN6ChannelAIN7"
_Channel_name_1 = "ChannelTemperatureSensorChannelVoltageReading"
)
var (
_Channel_index_0 = [...]uint8{0, 11, 22, 33, 44, 55, 66, 77, 88}
_Channel_index_1 = [...]uint8{0, 24, 45}
)
func (i Channel) String() string {
switch {
case 0 <= i && i <= 7:
return _Channel_name_0[_Channel_index_0[i]:_Channel_index_0[i+1]]
case 22 <= i && i <= 23:
i -= 22
return _Channel_name_1[_Channel_index_1[i]:_Channel_index_1[i+1]]
default:
return "Channel(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
const _Resolution_name = "Resolution8BitResolution10BitResolution12BitResolution14Bit"
var _Resolution_index = [...]uint8{0, 14, 29, 44, 59}
func (i Resolution) String() string {
if i >= Resolution(len(_Resolution_index)-1) {
return "Resolution(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Resolution_name[_Resolution_index[i]:_Resolution_index[i+1]]
}
const _Operation_name = "OperationSetDirectionOperationSetInputModeOperationSetOperationClearOperationToggleOperationRead"
var _Operation_index = [...]uint8{0, 21, 42, 54, 68, 83, 96}
func (i Operation) String() string {
if i >= Operation(len(_Operation_index)-1) {
return "Operation(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
}
const _Reason_name = "ReasonPowerUpReasonExternalReasonWatchDog"
var _Reason_index = [...]uint8{0, 13, 27, 41}
func (i Reason) String() string {
if i >= Reason(len(_Reason_index)-1) {
return "Reason(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Reason_name[_Reason_index[i]:_Reason_index[i+1]]
}
const _DeviceState_name = "DeviceStateInitializedNotStartedAutomaticallyDeviceStateInitializedNotConnectedToAnythingDeviceStateDiscoveringPANsToJoinDeviceStateJoiningPANDeviceStateRejoiningPANDeviceStateJoinedButNotAuthenticatedDeviceStateStartedAsDeviceAfterAuthenticationDeviceStateDeviceJoinedAuthenticatedAndIsRouterDeviceStateStartingAsZigBeeCoordinatorDeviceStateStartedAsZigBeeCoordinatorDeviceStateDeviceHasLostInformationAboutItsParentDeviceStateDeviceSendingKeepAliveToParentDeviceStateDeviceWaitingBeforeRejoinDeviceStateReJoiningPANInSecureModeScanningAllChannelsDeviceStateReJoiningPANInTrustCenterModeScanningCurrentChannelDeviceStateReJoiningPANInTrustCenterModeScanningAllChannels"
var _DeviceState_index = [...]uint16{0, 45, 89, 121, 142, 165, 201, 246, 293, 331, 368, 417, 458, 494, 548, 610, 669}
func (i DeviceState) String() string {
if i >= DeviceState(len(_DeviceState_index)-1) {
return "DeviceState(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _DeviceState_name[_DeviceState_index[i]:_DeviceState_index[i+1]]
}
const (
_SubsystemId_name_0 = "SubsystemIdSys"
_SubsystemId_name_1 = "SubsystemIdMac"
_SubsystemId_name_2 = "SubsystemIdNwk"
_SubsystemId_name_3 = "SubsystemIdAf"
_SubsystemId_name_4 = "SubsystemIdZdo"
_SubsystemId_name_5 = "SubsystemIdSapi"
_SubsystemId_name_6 = "SubsystemIdUtil"
_SubsystemId_name_7 = "SubsystemIdDebug"
_SubsystemId_name_8 = "SubsystemIdApp"
_SubsystemId_name_9 = "SubsystemIdAllSubsystems"
)
func (i SubsystemId) String() string {
switch {
case i == 256:
return _SubsystemId_name_0
case i == 512:
return _SubsystemId_name_1
case i == 768:
return _SubsystemId_name_2
case i == 1024:
return _SubsystemId_name_3
case i == 1280:
return _SubsystemId_name_4
case i == 1536:
return _SubsystemId_name_5
case i == 1792:
return _SubsystemId_name_6
case i == 2048:
return _SubsystemId_name_7
case i == 2304:
return _SubsystemId_name_8
case i == 65535:
return _SubsystemId_name_9
default:
return "SubsystemId(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
const _Action_name = "ActionDisableActionEnable"
var _Action_index = [...]uint8{0, 13, 25}
func (i Action) String() string {
if i >= Action(len(_Action_index)-1) {
return "Action(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Action_name[_Action_index[i]:_Action_index[i+1]]
}
const _Shift_name = "ShiftNoShiftShiftYesShift"
var _Shift_index = [...]uint8{0, 12, 25}
func (i Shift) String() string {
if i >= Shift(len(_Shift_index)-1) {
return "Shift(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Shift_name[_Shift_index[i]:_Shift_index[i+1]]
}
const _Mode_name = "ModeOFFModeON"
var _Mode_index = [...]uint8{0, 7, 13}
func (i Mode) String() string {
if i >= Mode(len(_Mode_index)-1) {
return "Mode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Mode_name[_Mode_index[i]:_Mode_index[i+1]]
}
const _Relation_name = "RelationParentRelationChildRfdRelationChildRfdRxIdleRelationChildFfdRelationChildFfdRxIdleRelationNeighborRelationOther"
var _Relation_index = [...]uint8{0, 14, 30, 52, 68, 90, 106, 119}
func (i Relation) String() string {
if i >= Relation(len(_Relation_index)-1) {
return "Relation(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Relation_name[_Relation_index[i]:_Relation_index[i+1]]
}
const _ReqType_name = "ReqTypeSingleDeviceResponseReqTypeAssociatedDevicesResponse"
var _ReqType_index = [...]uint8{0, 27, 59}
func (i ReqType) String() string {
if i >= ReqType(len(_ReqType_index)-1) {
return "ReqType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _ReqType_name[_ReqType_index[i]:_ReqType_index[i+1]]
}
const _RouteStatus_name = "RouteStatusActiveRouteStatusDiscoveryUnderwayRouteStatusDiscoveryFailedRouteStatusInactive"
var _RouteStatus_index = [...]uint8{0, 17, 45, 71, 90}
func (i RouteStatus) String() string {
if i >= RouteStatus(len(_RouteStatus_index)-1) {
return "RouteStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _RouteStatus_name[_RouteStatus_index[i]:_RouteStatus_index[i+1]]
}
const _Timeout_name = "Timeout10SecondsTimeout2MinutesTimeout4MinutesTimeout8MinutesTimeout16MinutesTimeout32MinutesTimeout64MinutesTimeout128MinutesTimeout256MinutesTimeout512MinutesTimeout1024MinutesTimeout2048MinutesTimeout4096MinutesTimeout8192MinutesTimeout16384Minutes"
var _Timeout_index = [...]uint8{0, 16, 31, 46, 61, 77, 93, 109, 126, 143, 160, 178, 196, 214, 232, 251}
func (i Timeout) String() string {
if i >= Timeout(len(_Timeout_index)-1) {
return "Timeout(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Timeout_name[_Timeout_index[i]:_Timeout_index[i+1]]
}
const _InstallCodeFormat_name = "InstallCodeFormatCodePlusCrcInstallCodeFormatKeyDerivedFromInstallCode"
var _InstallCodeFormat_index = [...]uint8{0, 28, 70}
func (i InstallCodeFormat) String() string {
if i >= InstallCodeFormat(len(_InstallCodeFormat_index)-1) {
return "InstallCodeFormat(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _InstallCodeFormat_name[_InstallCodeFormat_index[i]:_InstallCodeFormat_index[i+1]]
}
const _CommissioningStatus_name = "CommissioningStatusSuccessCommissioningStatusInProgressCommissioningStatusNoNetworkCommissioningStatusTlTargetFailureCommissioningStatusTlNotAaCapableCommissioningStatusTlNoScanResponseCommissioningStatusTlNotPermittedCommissioningStatusTclkExFailureCommissioningStatusFormationFailureCommissioningStatusFbTargetInProgressCommissioningStatusFbInitiatorInProgressCommissioningStatusFbNoIdentifyQueryResponseCommissioningStatusFbBindingTableFullCommissioningStatusNetwork"
var _CommissioningStatus_index = [...]uint16{0, 26, 55, 83, 117, 150, 185, 218, 250, 285, 322, 362, 406, 443, 469}
func (i CommissioningStatus) String() string {
if i >= CommissioningStatus(len(_CommissioningStatus_index)-1) {
return "CommissioningStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _CommissioningStatus_name[_CommissioningStatus_index[i]:_CommissioningStatus_index[i+1]]
}
const (
_CommissioningMode_name_0 = "CommissioningModeInitializationCommissioningModeTouchLinkCommissioningModeNetworkSteering"
_CommissioningMode_name_1 = "CommissioningModeNetworkFormation"
_CommissioningMode_name_2 = "CommissioningModeFindingAndBinding"
)
var (
_CommissioningMode_index_0 = [...]uint8{0, 31, 57, 89}
)
func (i CommissioningMode) String() string {
switch {
case 0 <= i && i <= 2:
return _CommissioningMode_name_0[_CommissioningMode_index_0[i]:_CommissioningMode_index_0[i+1]]
case i == 4:
return _CommissioningMode_name_1
case i == 8:
return _CommissioningMode_name_2
default:
return "CommissioningMode(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
const _LqiDeviceType_name = "LqiDeviceTypeCoordinatorLqiDeviceTypeRouterLqiDeviceTypeEndDevice"
var _LqiDeviceType_index = [...]uint8{0, 24, 43, 65}
func (i LqiDeviceType) String() string {
if i >= LqiDeviceType(len(_LqiDeviceType_index)-1) {
return "LqiDeviceType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _LqiDeviceType_name[_LqiDeviceType_index[i]:_LqiDeviceType_index[i+1]]
}
const _GpAction_name = "GpActionAddGPDFIntoQueueGpActionRemoveGPDFFromQueue"
var _GpAction_index = [...]uint8{0, 24, 51}
func (i GpAction) String() string {
if i >= GpAction(len(_GpAction_index)-1) {
return "GpAction(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _GpAction_name[_GpAction_index[i]:_GpAction_index[i+1]]
}
const _GpStatus_name = "GpStatusDropFrameGpStatusMatchGpStatusPassUnprocessedGpStatusTxThenDropGpStatusError"
var _GpStatus_index = [...]uint8{0, 17, 30, 53, 71, 84}
func (i GpStatus) String() string {
if i >= GpStatus(len(_GpStatus_index)-1) {
return "GpStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _GpStatus_name[_GpStatus_index[i]:_GpStatus_index[i+1]]
}
const _GpDataIndStatus_name = "GpDataIndStatusSecuritySuccessGpDataIndStatusNoSecurityGpDataIndStatusCounterFailureGpDataIndStatusAuthFailureGpDataIndStatusUnprocessed"
var _GpDataIndStatus_index = [...]uint8{0, 30, 55, 84, 110, 136}
func (i GpDataIndStatus) String() string {
if i >= GpDataIndStatus(len(_GpDataIndStatus_index)-1) {
return "GpDataIndStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _GpDataIndStatus_name[_GpDataIndStatus_index[i]:_GpDataIndStatus_index[i+1]]
}
const _LogicalType_name = "LogicalTypeCoordinatorLogicalTypeRouterLogicalTypeeEndDevice"
var _LogicalType_index = [...]uint8{0, 22, 39, 60}
func (i LogicalType) String() string {
if i >= LogicalType(len(_LogicalType_index)-1) {
return "LogicalType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _LogicalType_name[_LogicalType_index[i]:_LogicalType_index[i+1]]
}