forked from edgexfoundry/app-rfid-llrp-inventory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathllrp_structs.go
2155 lines (1830 loc) · 68.5 KB
/
llrp_structs.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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by "generate_param_code.py -i messages.yaml -s generated_structs.go -t binary_test.go -m generated_marshal.go -u generated_unmarshal.go -e generated_encoder.go"; DO NOT EDIT.
package llrp
// DecibelMilliwatt16 is a 16-bit dBm value. In LLRP, it's used for maximum receive
// sensitivity.
type DecibelMilliwatt16 = int16
// DecibelMilliwatt8 is a 8-bit dBm value. In LLRP, it's used to represent (received
// signal strength indicator) RSSI.
type DecibelMilliwatt8 = int8
// MillibelIsotropic is dBi*100, i.e., 0.01dBi (decibel relative isotropic). In LLRP, it's
// used to represent antenna gain values. It's scaled by 100 to allow accurate
// representation at sub-dBm precision.
type MillibelIsotropic = int16
// MillibelMilliwatt is dBm*100, i.e. 0.01dBm or 1 millibel milliwatt. In LLRP, it's used
// to represent transmit power values. It's scaled by 100 to allow accurate representation
// at sub-dBm precision.
type MillibelMilliwatt = int16
// Decibel is 1/10 of a bel, which is the either the log10 of the ratio of a power
// quantity relative a reference, or 2*log10 of the ratio of an amplitude quantity
// relative a reference field.
//
// In LLRP, it's used for receive sensitivity values relative the device maximum
// sensitivity. Although in general dBm values may be negative, LLRP restricts the
// ReceiveSensitivityTable's values to 0 to 128, though they require them to be
// transmitted using 16 bits.
type Decibel = uint16
// Microsecs64 is a 64-bit number of microseconds.
//
// It's usually used to represent a time offset since a known reference, Unix Epoch or the
// reader's start.
type Microsecs64 = uint64
// Millisecs32 is a 32-bit number of milliseconds.
//
// It's used to represent a time offset since a known reference, usually Unix Epoch or a
// message receipt time. Other times, it's used as a time period or timeout, in which case
// 0 may mean "never timeout".
type Millisecs32 = uint32
// Millisecs16 is a 16-bit number of milliseconds.
//
// It's used to represent a timeouts or duration triggers.
type Millisecs16 = uint16
// Nanosecs32 is a 32-bit number of nanoseconds used for some Tari values.
type Nanosecs32 = uint32
// Nanosecs16 is a 16-bit number of nanoseconds as used for some Tari values.
type Nanosecs16 = uint16
// Kilohertz measure frequency in 1000s of cycles per second.
type Kilohertz = uint32
// BitsPerSec are used to describe backscatter data rates.
type BitsPerSec = uint32
// C1G2MemoryBankType selection.
type C1G2MemoryBankType = uint8
// C1G2ProtoConEPCMemLength indicates number of (valid) EPC bits in the EPC Memory (bank
// 1) of a Gen2 tag.
type C1G2ProtoConEPCMemLength = uint8
type C1G2BlockPermalockResultType uint8
const (
C1G2BPLockSuccess = C1G2BlockPermalockResultType(0)
C1G2BPLockInsufficientPower = C1G2BlockPermalockResultType(1)
C1G2BPLockNonSpecificTagError = C1G2BlockPermalockResultType(2)
C1G2BPLockNoResponseFromTag = C1G2BlockPermalockResultType(3)
C1G2BPLockNonSpecificReaderError = C1G2BlockPermalockResultType(4)
C1G2BPLockIncorrectPassword = C1G2BlockPermalockResultType(5)
C1G2BPLockMemoryOverrun = C1G2BlockPermalockResultType(6)
)
// AirProtocolIDType defines the air protocols LLRP supports for accessing tags.
//
// The air protocol determines how tags are sigulated and access operations performed,
// affects which parameters are permitted in certain contexts, and in theory can vary per
// antenna. In practice, however, there's only ever been a single one defined, and the
// standard hasn't been updated in ten years.
type AirProtocolIDType uint8
const (
AirProtoUnspecified = AirProtocolIDType(0)
AirProtoEPCGlobalClass1Gen2 = AirProtocolIDType(1)
)
// CountryCodeType is an ISO-3166 country code.
type CountryCodeType uint16
const Unspecified = CountryCodeType(0)
// CommStandardType enumerates communication standards known to LLRP.
type CommStandardType uint16
type ROSpecCurrentStateType uint8
const (
ROSpecStateDisabled = ROSpecCurrentStateType(0)
ROSpecStateInactive = ROSpecCurrentStateType(1)
ROSpecStateActive = ROSpecCurrentStateType(2)
)
type AccessSpecStopTriggerType uint8
const (
AccessSpecStopTriggerNone = AccessSpecStopTriggerType(0)
AccessSpecStopTriggerOperationCount = AccessSpecStopTriggerType(1)
)
type ReaderEventType uint16
const (
NotifyChannelHop = ReaderEventType(0)
NotifyGPI = ReaderEventType(1)
NotifyROSpec = ReaderEventType(2)
NotifyReportBuffFillWarn = ReaderEventType(3)
NotifyReaderException = ReaderEventType(4)
NotifyRFSurvey = ReaderEventType(5)
NotifyAISpec = ReaderEventType(6)
NotifyAISpecWithSingulation = ReaderEventType(7)
NotifyAntenna = ReaderEventType(8)
NotifySpecLoop = ReaderEventType(9)
)
type ROSpecEventType uint8
const (
ROSpecStarted = ROSpecEventType(0)
ROSpecEnded = ROSpecEventType(1)
ROSpecPreempted = ROSpecEventType(2)
)
type AISpecEventType uint8
const AISpecEnded = AISpecEventType(0)
type RFSurveyEventType uint8
const (
RFSurveyStarted = RFSurveyEventType(0)
RFSurveyEnded = RFSurveyEventType(1)
)
type AntennaEventType uint8
const (
AntennaDisconnected = AntennaEventType(0)
AntennaConnected = AntennaEventType(1)
)
type AccessReportTriggerType uint8
type ROReportTriggerType uint8
const (
None = ROReportTriggerType(0)
NTagsOrAIEnd = ROReportTriggerType(1)
NTagsOrROEnd = ROReportTriggerType(2)
NSecondsOrAIEnd = ROReportTriggerType(3)
NSecondsOrROEnd = ROReportTriggerType(4)
NMillisOrAIEnd = ROReportTriggerType(5)
NMillisOrROEnd = ROReportTriggerType(6)
)
type ConnectionAttemptEventType uint16
const (
ConnSuccess = ConnectionAttemptEventType(0)
ConnExistsReaderInitiated = ConnectionAttemptEventType(1)
ConnExistsClientInitiated = ConnectionAttemptEventType(2)
ConnFailedReasonUnknown = ConnectionAttemptEventType(3)
ConnAttemptedAgain = ConnectionAttemptEventType(4)
)
type KeepAliveTriggerType uint8
const (
KATriggerNone = KeepAliveTriggerType(0)
KATriggerPeriodic = KeepAliveTriggerType(1)
)
type ROSpecStartTriggerType uint8
const (
ROStartTriggerNone = ROSpecStartTriggerType(0)
ROStartTriggerImmediate = ROSpecStartTriggerType(1)
ROStartTriggerPeriodic = ROSpecStartTriggerType(2)
ROStartTriggerGPI = ROSpecStartTriggerType(3)
)
type ROSpecStopTriggerType uint8
const (
ROStopTriggerNone = ROSpecStopTriggerType(0)
ROStopTriggerDuration = ROSpecStopTriggerType(1)
ROStopTriggerGPI = ROSpecStopTriggerType(2)
)
type RFSurveySpecStopTriggerType uint8
const (
RFSurveyStopTriggerNone = RFSurveySpecStopTriggerType(0)
RFSurveyStopTriggerDuration = RFSurveySpecStopTriggerType(1)
RFSurveyStopTriggerNIteration = RFSurveySpecStopTriggerType(2)
)
// AISpecStopTriggerType specifies when an Antenna Operation should terminate.
type AISpecStopTriggerType uint8
const (
AIStopTriggerNone = AISpecStopTriggerType(0)
AIStopTriggerDuration = AISpecStopTriggerType(1)
AIStopTriggerGPI = AISpecStopTriggerType(2)
AIStopTriggerTagObservation = AISpecStopTriggerType(3)
)
type TagObservationTriggerType uint8
const (
TagObsTriggerNTagObservations = TagObservationTriggerType(0)
TagObsTriggerNoNewAfterT = TagObservationTriggerType(1)
TagObsTriggerNAttempts = TagObservationTriggerType(2)
TagObsTriggerNUniqueObservations = TagObservationTriggerType(3)
TagObsTriggerNoUniqueAfterT = TagObservationTriggerType(4)
)
type SpectralMaskType uint8
const (
SpectralMaskUnknown = SpectralMaskType(0)
SpectralMaskSingleInterrogator = SpectralMaskType(1)
SpectralMaskMultiInterrogator = SpectralMaskType(2)
SpectralMaskDenseInterrogator = SpectralMaskType(3)
)
type IDType uint8
const (
ID_MAC_EUI64 = IDType(0)
ID_EPC = IDType(1)
)
// FwdLinkMod enumerates the RF carrier modulation options for a C1G2 Interrogator.
type FwdLinkMod uint8
const (
DoubleSidebandASK = FwdLinkMod(0)
SingleSidebandASK = FwdLinkMod(1)
PhaseReversalASK = FwdLinkMod(2)
)
// BackscatterMod enumerates the C1G2 sub-carrier modulation types.
type BackscatterMod uint8
const (
FM0 = BackscatterMod(0)
Miller2 = BackscatterMod(1)
Miller4 = BackscatterMod(2)
Miller8 = BackscatterMod(3)
)
// DivideRatio is used by a tag to determine BLF in C1G2. See UHFC1G2RFModeTable.
type DivideRatio uint8
const (
DREightToOne = DivideRatio(0)
DRSixtyFourToThree = DivideRatio(1)
)
type GPIStateType uint8
const (
GPIStateLow = GPIStateType(0)
GPIStateHigh = GPIStateType(1)
GPIStateUnknown = GPIStateType(2)
)
type LockPrivilegeType uint8
const (
LockPrivRW = LockPrivilegeType(0)
LockPrivPermalock = LockPrivilegeType(1)
LockPrivPermaunlock = LockPrivilegeType(2)
LockPrivUnlock = LockPrivilegeType(3)
)
type LockDataType uint8
const (
LockDataKillPwd = LockDataType(0)
LockDataAccessPwd = LockDataType(1)
LockDataEPCMemory = LockDataType(2)
LockDataTIDMemory = LockDataType(3)
LockDataUserMemory = LockDataType(4)
)
// MessageType corresponds to the LLRP binary encoding for message headers.
type MessageType uint16
// ParamType is an 8 or 10 bit value identifying both the encoding and content of an LLRP
// Parameter.
type ParamType uint16
// VersionNum corresponds to an LLRP version number.
//
// The version number is 3 bits and embedded in each message sent between a Reader and
// Client.
//
// By default, this package will attempt to establish connection with Readers using the
// higher version it knows, but you can explicitly override it when creating a connection.
// In either case, for versions greater than 1.0.1, the Client will negotiate versions
// with the Reader and downgrade if necessary.
type VersionNum uint8
const (
versionUnknown = VersionNum(0)
Version1_0_1 = VersionNum(1)
Version1_1 = VersionNum(2)
)
// StatusCode matches LLRP's Status Codes.
//
// These are described in Section 14 of the Low Level Reader Protocol v1.0.1 and in
// Section 15 of Low Level Reader Protocol v1.1.
type StatusCode uint16
const (
StatusSuccess = StatusCode(0)
StatusMsgParamError = StatusCode(100)
StatusMsgFieldError = StatusCode(101)
StatusMsgParamUnexpected = StatusCode(102)
StatusMsgParamMissing = StatusCode(103)
StatusMsgParamDuplicate = StatusCode(104)
StatusMsgParamOverflow = StatusCode(105)
StatusMsgFieldOverflow = StatusCode(106)
StatusMsgParamUnknown = StatusCode(107)
StatusMsgFieldUnknown = StatusCode(108)
StatusMsgMsgUnsupported = StatusCode(109)
StatusMsgVerUnsupported = StatusCode(110)
StatusMsgParamUnsupported = StatusCode(111)
StatusMsgMsgUnexpected = StatusCode(112)
StatusParamParamError = StatusCode(200)
StatusParamFieldError = StatusCode(201)
StatusParamParamUnexpected = StatusCode(202)
StatusParamParamMissing = StatusCode(203)
StatusParamParamDuplicate = StatusCode(204)
StatusParamParamOverflow = StatusCode(205)
StatusParamFieldOverflow = StatusCode(206)
StatusParamParamUnknown = StatusCode(207)
StatusParamFieldUnknown = StatusCode(208)
StatusParamParamUnsupported = StatusCode(209)
StatusFieldInvalid = StatusCode(300)
StatusFieldOutOfRange = StatusCode(301)
StatusDeviceError = StatusCode(401)
)
type ReaderCapability uint8
const (
ReaderCapAll = ReaderCapability(0)
ReaderCapGeneralDeviceCapabilities = ReaderCapability(1)
ReaderCapLLRPCapabilities = ReaderCapability(2)
ReaderCapRegulatoryCapabilities = ReaderCapability(3)
ReaderCapAirProtocolLLRPCapabilities = ReaderCapability(4)
)
type ReaderConfigRequestedDataType uint8
const (
ReaderConfReqAll = ReaderConfigRequestedDataType(0)
ReaderConfReqIdentification = ReaderConfigRequestedDataType(1)
ReaderConfReqAntennaProperties = ReaderConfigRequestedDataType(2)
ReaderConfReqAntennaConfig = ReaderConfigRequestedDataType(3)
ReaderConfReqROReportSpec = ReaderConfigRequestedDataType(4)
ReaderConfReqReaderEventNotifSpec = ReaderConfigRequestedDataType(5)
ReaderConfReqAccessReportSpec = ReaderConfigRequestedDataType(6)
ReaderConfReqLLRPConfStateVal = ReaderConfigRequestedDataType(7)
ReaderConfReqKeepAliveSpec = ReaderConfigRequestedDataType(8)
ReaderConfReqGPIPortCurState = ReaderConfigRequestedDataType(9)
ReaderConfReqGPOWriteData = ReaderConfigRequestedDataType(10)
ReaderConfReqEventsAndReports = ReaderConfigRequestedDataType(11)
)
type C1G2BlockEraseResultType uint8
type C1G2GetBlockPermalockStatusResultType uint8
type C1G2BlockWriteResultType uint8
type C1G2KillResultType uint8
type C1G2LockResultType uint8
type C1G2RecommissionResultType uint8
type C1G2WriteOpSpecResultType uint8
type C1G2ReadOpSpecResultType uint8
type C1G2TagInventoryTargetType uint8
const (
InvTargetSL = C1G2TagInventoryTargetType(0)
InvTargetInventoriedS0 = C1G2TagInventoryTargetType(1)
InvTargetInventoriedS1 = C1G2TagInventoryTargetType(2)
InvTargetInventoriedS2 = C1G2TagInventoryTargetType(3)
InvTargetInventoriedS3 = C1G2TagInventoryTargetType(4)
)
type C1G2FilterTruncateActionType uint8
const (
FilterActionUnspecified = C1G2FilterTruncateActionType(0)
FilterActionDoNotTruncate = C1G2FilterTruncateActionType(1)
FilterActionTruncate = C1G2FilterTruncateActionType(2)
)
type C1G2TagInventoryStateAwareFilterActionType uint8
const (
AwareSelectMSetUClear = C1G2TagInventoryStateAwareFilterActionType(0)
AwareSelectMSetUKeep = C1G2TagInventoryStateAwareFilterActionType(1)
AwareSelectMKeepUClear = C1G2TagInventoryStateAwareFilterActionType(2)
AwareSelectMFlipUKeep = C1G2TagInventoryStateAwareFilterActionType(3)
AwareSelectMClearUSet = C1G2TagInventoryStateAwareFilterActionType(4)
AwareSelectMClearUKeep = C1G2TagInventoryStateAwareFilterActionType(5)
AwareSelectMKeepUSet = C1G2TagInventoryStateAwareFilterActionType(6)
AwareSelectMKeepUFlip = C1G2TagInventoryStateAwareFilterActionType(7)
)
type SessionState uint8
const (
SessionStateA = SessionState(0)
SessionStateB = SessionState(1)
)
type SLState uint8
const (
SLStateAsserted = SLState(0)
SLStateDeasserted = SLState(1)
)
type C1G2TagInventoryStateUnawareFilterActionType uint8
const (
UnawareSelectMSetUClear = C1G2TagInventoryStateUnawareFilterActionType(0)
UnawareSelectMSetUKeep = C1G2TagInventoryStateUnawareFilterActionType(1)
UnawareSelectMKeepUClear = C1G2TagInventoryStateUnawareFilterActionType(2)
UnawareSelectMClearUSet = C1G2TagInventoryStateUnawareFilterActionType(3)
UnawareSelectMClearUKeep = C1G2TagInventoryStateUnawareFilterActionType(4)
UnawareSelectMKeepUSet = C1G2TagInventoryStateUnawareFilterActionType(5)
)
type C1G2SingulationSession = uint8
type C1G2RecommissionFlags uint8
const (
MsgGetSupportedVersion = MessageType(46)
MsgGetSupportedVersionResponse = MessageType(56)
MsgSetProtocolVersion = MessageType(47)
MsgSetProtocolVersionResponse = MessageType(57)
MsgGetReaderCapabilities = MessageType(1)
MsgGetReaderCapabilitiesResponse = MessageType(11)
MsgAddROSpec = MessageType(20)
MsgAddROSpecResponse = MessageType(30)
MsgDeleteROSpec = MessageType(21)
MsgDeleteROSpecResponse = MessageType(31)
MsgStartROSpec = MessageType(22)
MsgStartROSpecResponse = MessageType(32)
MsgStopROSpec = MessageType(23)
MsgStopROSpecResponse = MessageType(33)
MsgEnableROSpec = MessageType(24)
MsgEnableROSpecResponse = MessageType(34)
MsgDisableROSpec = MessageType(25)
MsgDisableROSpecResponse = MessageType(35)
MsgGetROSpecs = MessageType(26)
MsgGetROSpecsResponse = MessageType(36)
MsgAddAccessSpec = MessageType(40)
MsgAddAccessSpecResponse = MessageType(50)
MsgDeleteAccessSpec = MessageType(41)
MsgDeleteAccessSpecResponse = MessageType(51)
MsgEnableAccessSpec = MessageType(42)
MsgEnableAccessSpecResponse = MessageType(52)
MsgDisableAccessSpec = MessageType(43)
MsgDisableAccessSpecResponse = MessageType(53)
MsgGetAccessSpecs = MessageType(44)
MsgGetAccessSpecsResponse = MessageType(54)
MsgClientRequestOp = MessageType(45)
MsgClientRequestOpResponse = MessageType(55)
MsgGetReport = MessageType(60)
MsgROAccessReport = MessageType(61)
MsgKeepAlive = MessageType(62)
MsgKeepAliveAck = MessageType(72)
MsgReaderEventNotification = MessageType(63)
MsgEnableEventsAndReports = MessageType(64)
MsgErrorMessage = MessageType(100)
MsgGetReaderConfig = MessageType(2)
MsgGetReaderConfigResponse = MessageType(12)
MsgSetReaderConfig = MessageType(3)
MsgSetReaderConfigResponse = MessageType(13)
MsgCloseConnection = MessageType(14)
MsgCloseConnectionResponse = MessageType(4)
MsgCustomMessage = MessageType(1023)
)
// GetSupportedVersion is Message 46, GetSupportedVersion.
type GetSupportedVersion struct{}
// Type returns this message's MessageType
func (*GetSupportedVersion) Type() MessageType {
return MsgGetSupportedVersion
}
// GetSupportedVersionResponse is Message 56, GetSupportedVersionResponse.
type GetSupportedVersionResponse struct {
CurrentVersion VersionNum
MaxSupportedVersion VersionNum
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*GetSupportedVersionResponse) Type() MessageType {
return MsgGetSupportedVersionResponse
}
// Status returns this message's LLRPStatus
func (m *GetSupportedVersionResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// SetProtocolVersion is Message 47, SetProtocolVersion.
type SetProtocolVersion struct {
TargetVersion VersionNum
}
// Type returns this message's MessageType
func (*SetProtocolVersion) Type() MessageType {
return MsgSetProtocolVersion
}
// SetProtocolVersionResponse is Message 57, SetProtocolVersionResponse.
type SetProtocolVersionResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*SetProtocolVersionResponse) Type() MessageType {
return MsgSetProtocolVersionResponse
}
// Status returns this message's LLRPStatus
func (m *SetProtocolVersionResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// GetReaderCapabilities is Message 1, GetReaderCapabilities.
type GetReaderCapabilities struct {
ReaderCapabilitiesRequestedData ReaderCapability
Custom []Custom
}
// Type returns this message's MessageType
func (*GetReaderCapabilities) Type() MessageType {
return MsgGetReaderCapabilities
}
// GetReaderCapabilitiesResponse is Message 11, GetReaderCapabilitiesResponse.
type GetReaderCapabilitiesResponse struct {
LLRPStatus LLRPStatus
GeneralDeviceCapabilities *GeneralDeviceCapabilities
LLRPCapabilities *LLRPCapabilities
RegulatoryCapabilities *RegulatoryCapabilities
C1G2LLRPCapabilities *C1G2LLRPCapabilities
Custom []Custom
}
// Type returns this message's MessageType
func (*GetReaderCapabilitiesResponse) Type() MessageType {
return MsgGetReaderCapabilitiesResponse
}
// Status returns this message's LLRPStatus
func (m *GetReaderCapabilitiesResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// AddROSpec is Message 20, AddROSpec.
//
// AddROSpec adds an Reader Operation Specification.
//
// ROSpecs must be added in the Disabled state, and it's up to the client to set the
// ROSpecID. That ID is used to reference the spec in other messages.
type AddROSpec struct {
ROSpec ROSpec
}
// Type returns this message's MessageType
func (*AddROSpec) Type() MessageType {
return MsgAddROSpec
}
// AddROSpecResponse is Message 30, AddROSpecResponse.
type AddROSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*AddROSpecResponse) Type() MessageType {
return MsgAddROSpecResponse
}
// Status returns this message's LLRPStatus
func (m *AddROSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// DeleteROSpec is Message 21, DeleteROSpec.
type DeleteROSpec struct {
ROSpecID uint32
}
// Type returns this message's MessageType
func (*DeleteROSpec) Type() MessageType {
return MsgDeleteROSpec
}
// DeleteROSpecResponse is Message 31, DeleteROSpecResponse.
type DeleteROSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*DeleteROSpecResponse) Type() MessageType {
return MsgDeleteROSpecResponse
}
// Status returns this message's LLRPStatus
func (m *DeleteROSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// StartROSpec is Message 22, StartROSpec.
type StartROSpec struct {
ROSpecID uint32
}
// Type returns this message's MessageType
func (*StartROSpec) Type() MessageType {
return MsgStartROSpec
}
// StartROSpecResponse is Message 32, StartROSpecResponse.
type StartROSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*StartROSpecResponse) Type() MessageType {
return MsgStartROSpecResponse
}
// Status returns this message's LLRPStatus
func (m *StartROSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// StopROSpec is Message 23, StopROSpec.
//
// StopROSpec stops a spec if it's currently executing, overriding all other priorities
// and moving it to Inactive.
type StopROSpec struct {
ROSpecID uint32
}
// Type returns this message's MessageType
func (*StopROSpec) Type() MessageType {
return MsgStopROSpec
}
// StopROSpecResponse is Message 33, StopROSpecResponse.
type StopROSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*StopROSpecResponse) Type() MessageType {
return MsgStopROSpecResponse
}
// Status returns this message's LLRPStatus
func (m *StopROSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// EnableROSpec is Message 24, EnableROSpec.
//
// EnableROSpec moves and ROSpec from Disabled to Inactive.
//
// The SpecID may be 0, in which case all ROSpecs will be enabled. If the ROSpec has an
// Immediate start trigger, enabling it will also activate it, provided no other necessary
// prevent it from starting (e.g., its priority is lower than another enabled spec).
type EnableROSpec struct {
ROSpecID uint32
}
// Type returns this message's MessageType
func (*EnableROSpec) Type() MessageType {
return MsgEnableROSpec
}
// EnableROSpecResponse is Message 34, EnableROSpecResponse.
type EnableROSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*EnableROSpecResponse) Type() MessageType {
return MsgEnableROSpecResponse
}
// Status returns this message's LLRPStatus
func (m *EnableROSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// DisableROSpec is Message 25, DisableROSpec.
type DisableROSpec struct {
ROSpecID uint32
}
// Type returns this message's MessageType
func (*DisableROSpec) Type() MessageType {
return MsgDisableROSpec
}
// DisableROSpecResponse is Message 35, DisableROSpecResponse.
type DisableROSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*DisableROSpecResponse) Type() MessageType {
return MsgDisableROSpecResponse
}
// Status returns this message's LLRPStatus
func (m *DisableROSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// GetROSpecs is Message 26, GetROSpecs.
type GetROSpecs struct{}
// Type returns this message's MessageType
func (*GetROSpecs) Type() MessageType {
return MsgGetROSpecs
}
// GetROSpecsResponse is Message 36, GetROSpecsResponse.
type GetROSpecsResponse struct {
LLRPStatus LLRPStatus
ROSpecs []ROSpec
}
// Type returns this message's MessageType
func (*GetROSpecsResponse) Type() MessageType {
return MsgGetROSpecsResponse
}
// Status returns this message's LLRPStatus
func (m *GetROSpecsResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// AddAccessSpec is Message 40, AddAccessSpec.
type AddAccessSpec struct {
AccessSpec AccessSpec
}
// Type returns this message's MessageType
func (*AddAccessSpec) Type() MessageType {
return MsgAddAccessSpec
}
// AddAccessSpecResponse is Message 50, AddAccessSpecResponse.
type AddAccessSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*AddAccessSpecResponse) Type() MessageType {
return MsgAddAccessSpecResponse
}
// Status returns this message's LLRPStatus
func (m *AddAccessSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// DeleteAccessSpec is Message 41, DeleteAccessSpec.
type DeleteAccessSpec struct {
AccessSpecID uint32
}
// Type returns this message's MessageType
func (*DeleteAccessSpec) Type() MessageType {
return MsgDeleteAccessSpec
}
// DeleteAccessSpecResponse is Message 51, DeleteAccessSpecResponse.
type DeleteAccessSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*DeleteAccessSpecResponse) Type() MessageType {
return MsgDeleteAccessSpecResponse
}
// Status returns this message's LLRPStatus
func (m *DeleteAccessSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// EnableAccessSpec is Message 42, EnableAccessSpec.
type EnableAccessSpec struct {
AccessSpecID uint32
}
// Type returns this message's MessageType
func (*EnableAccessSpec) Type() MessageType {
return MsgEnableAccessSpec
}
// EnableAccessSpecResponse is Message 52, EnableAccessSpecResponse.
type EnableAccessSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*EnableAccessSpecResponse) Type() MessageType {
return MsgEnableAccessSpecResponse
}
// Status returns this message's LLRPStatus
func (m *EnableAccessSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// DisableAccessSpec is Message 43, DisableAccessSpec.
type DisableAccessSpec struct {
AccessSpecID uint32
}
// Type returns this message's MessageType
func (*DisableAccessSpec) Type() MessageType {
return MsgDisableAccessSpec
}
// DisableAccessSpecResponse is Message 53, DisableAccessSpecResponse.
type DisableAccessSpecResponse struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*DisableAccessSpecResponse) Type() MessageType {
return MsgDisableAccessSpecResponse
}
// Status returns this message's LLRPStatus
func (m *DisableAccessSpecResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// GetAccessSpecs is Message 44, GetAccessSpecs.
type GetAccessSpecs struct{}
// Type returns this message's MessageType
func (*GetAccessSpecs) Type() MessageType {
return MsgGetAccessSpecs
}
// GetAccessSpecsResponse is Message 54, GetAccessSpecsResponse.
type GetAccessSpecsResponse struct {
LLRPStatus LLRPStatus
AccessSpecs []AccessSpec
}
// Type returns this message's MessageType
func (*GetAccessSpecsResponse) Type() MessageType {
return MsgGetAccessSpecsResponse
}
// Status returns this message's LLRPStatus
func (m *GetAccessSpecsResponse) Status() LLRPStatus {
return m.LLRPStatus
}
// ClientRequestOp is Message 45, ClientRequestOp.
type ClientRequestOp struct {
TagReportData TagReportData
}
// Type returns this message's MessageType
func (*ClientRequestOp) Type() MessageType {
return MsgClientRequestOp
}
// ClientRequestOpResponse is Message 55, ClientRequestOpResponse.
type ClientRequestOpResponse struct {
ClientRequestResponse ClientRequestResponse
}
// Type returns this message's MessageType
func (*ClientRequestOpResponse) Type() MessageType {
return MsgClientRequestOpResponse
}
// GetReport is Message 60, GetReport.
type GetReport struct{}
// Type returns this message's MessageType
func (*GetReport) Type() MessageType {
return MsgGetReport
}
// ROAccessReport is Message 61, ROAccessReport.
type ROAccessReport struct {
TagReportData []TagReportData
RFSurveyReportData []RFSurveyReportData
Custom []Custom
}
// Type returns this message's MessageType
func (*ROAccessReport) Type() MessageType {
return MsgROAccessReport
}
// KeepAlive is Message 62, KeepAlive.
type KeepAlive struct{}
// Type returns this message's MessageType
func (*KeepAlive) Type() MessageType {
return MsgKeepAlive
}
// KeepAliveAck is Message 72, KeepAliveAck.
type KeepAliveAck struct{}
// Type returns this message's MessageType
func (*KeepAliveAck) Type() MessageType {
return MsgKeepAliveAck
}
// ReaderEventNotification is Message 63, ReaderEventNotification.
type ReaderEventNotification struct {
ReaderEventNotificationData ReaderEventNotificationData
}
// Type returns this message's MessageType
func (*ReaderEventNotification) Type() MessageType {
return MsgReaderEventNotification
}
// EnableEventsAndReports is Message 64, EnableEventsAndReports.
type EnableEventsAndReports struct{}
// Type returns this message's MessageType
func (*EnableEventsAndReports) Type() MessageType {
return MsgEnableEventsAndReports
}
// ErrorMessage is Message 100, ErrorMessage.
type ErrorMessage struct {
LLRPStatus LLRPStatus
}
// Type returns this message's MessageType
func (*ErrorMessage) Type() MessageType {
return MsgErrorMessage
}
// Status returns this message's LLRPStatus
func (m *ErrorMessage) Status() LLRPStatus {
return m.LLRPStatus
}
// GetReaderConfig is Message 2, GetReaderConfig.
type GetReaderConfig struct {
AntennaID AntennaID
RequestedData ReaderConfigRequestedDataType
GPIPortNum uint16
GPOPortNum uint16
Custom []Custom
}