nl-linux 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Rakefile +31 -5
  4. data/generated/nl/linux/binder.rb +96 -0
  5. data/generated/nl/linux/conntrack.rb +1227 -0
  6. data/generated/nl/linux/dev_energymodel.rb +235 -0
  7. data/generated/nl/linux/devlink.rb +5177 -0
  8. data/generated/nl/linux/dpll.rb +944 -0
  9. data/generated/nl/linux/ethtool.rb +7121 -0
  10. data/generated/nl/linux/fou.rb +332 -0
  11. data/generated/nl/linux/handshake.rb +238 -0
  12. data/generated/nl/linux/lockd.rb +99 -0
  13. data/generated/nl/linux/mptcp_pm.rb +607 -0
  14. data/generated/nl/linux/net_shaper.rb +731 -0
  15. data/generated/nl/linux/netdev.rb +1450 -0
  16. data/generated/nl/linux/nfsd.rb +500 -0
  17. data/generated/nl/linux/nftables.rb +2924 -0
  18. data/generated/nl/linux/nl80211.rb +3393 -0
  19. data/generated/nl/linux/nlctrl.rb +397 -0
  20. data/generated/nl/linux/ovpn.rb +964 -0
  21. data/generated/nl/linux/ovs_datapath.rb +321 -0
  22. data/generated/nl/linux/ovs_flow.rb +1447 -0
  23. data/generated/nl/linux/ovs_vport.rb +391 -0
  24. data/generated/nl/linux/psp.rb +463 -0
  25. data/generated/nl/linux/rt_addr.rb +448 -0
  26. data/generated/nl/linux/rt_link.rb +4613 -0
  27. data/generated/nl/linux/rt_neigh.rb +897 -0
  28. data/generated/nl/linux/rt_route.rb +1126 -0
  29. data/generated/nl/linux/rt_rule.rb +708 -0
  30. data/generated/nl/linux/tc.rb +7066 -0
  31. data/generated/nl/linux/tcp_metrics.rb +317 -0
  32. data/generated/nl/linux/team.rb +339 -0
  33. data/generated/nl/linux/wireguard.rb +430 -0
  34. data/generated/nl/linux.rb +35 -0
  35. data/lib/nl/linux/version.rb +1 -1
  36. data/lib/nl-linux.rb +1 -1
  37. metadata +37 -7
  38. data/lib/nl/linux.rb +0 -3
@@ -0,0 +1,944 @@
1
+ # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2
+ #--
3
+ # frozen_string_literal: true
4
+ # rbs_inline: enabled
5
+ # This code is generated by Ynl::Generator. DO NOT EDIT.
6
+ require 'nl'
7
+ module Nl; module Linux
8
+ # DPLL subsystem.
9
+ class Dpll < ::Nl::Family
10
+ NAME = "dpll"
11
+ PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("dpll"))
12
+ module Structs
13
+ end
14
+ module AttributeSets
15
+ class Dpll < ::Nl::Protocols::Genl::AttributeSet
16
+ # Abstract class
17
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
18
+ end
19
+ class Id < Attribute
20
+ TYPE = 1
21
+ NAME = :"id"
22
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
23
+ end
24
+ class ModuleName < Attribute
25
+ TYPE = 2
26
+ NAME = :"module_name"
27
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
28
+ end
29
+ class Pad < Attribute
30
+ TYPE = 3
31
+ NAME = :"pad"
32
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Pad.new()
33
+ end
34
+ class ClockId < Attribute
35
+ TYPE = 4
36
+ NAME = :"clock_id"
37
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
38
+ end
39
+ class Mode < Attribute
40
+ TYPE = 5
41
+ NAME = :"mode"
42
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
43
+ end
44
+ class ModeSupported < Attribute
45
+ TYPE = 6
46
+ NAME = :"mode_supported"
47
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
48
+ end
49
+ class LockStatus < Attribute
50
+ TYPE = 7
51
+ NAME = :"lock_status"
52
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
53
+ end
54
+ class Temp < Attribute
55
+ TYPE = 8
56
+ NAME = :"temp"
57
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
58
+ end
59
+ class Type < Attribute
60
+ TYPE = 9
61
+ NAME = :"type"
62
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
63
+ end
64
+ class LockStatusError < Attribute
65
+ TYPE = 10
66
+ NAME = :"lock_status_error"
67
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
68
+ end
69
+ class ClockQualityLevel < Attribute
70
+ TYPE = 11
71
+ NAME = :"clock_quality_level"
72
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
73
+ end
74
+ class PhaseOffsetMonitor < Attribute
75
+ TYPE = 12
76
+ NAME = :"phase_offset_monitor"
77
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
78
+ end
79
+ class PhaseOffsetAvgFactor < Attribute
80
+ TYPE = 13
81
+ NAME = :"phase_offset_avg_factor"
82
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
83
+ end
84
+ # :nodoc:
85
+ BY_NAME = Ractor.make_shareable({:"id" => Id, :"module_name" => ModuleName, :"pad" => Pad, :"clock_id" => ClockId, :"mode" => Mode, :"mode_supported" => ModeSupported, :"lock_status" => LockStatus, :"temp" => Temp, :"type" => Type, :"lock_status_error" => LockStatusError, :"clock_quality_level" => ClockQualityLevel, :"phase_offset_monitor" => PhaseOffsetMonitor, :"phase_offset_avg_factor" => PhaseOffsetAvgFactor}) #: Hash[::Symbol, Attribute]
86
+ # :nodoc:
87
+ BY_TYPE = Ractor.make_shareable({1 => Id, 2 => ModuleName, 3 => Pad, 4 => ClockId, 5 => Mode, 6 => ModeSupported, 7 => LockStatus, 8 => Temp, 9 => Type, 10 => LockStatusError, 11 => ClockQualityLevel, 12 => PhaseOffsetMonitor, 13 => PhaseOffsetAvgFactor}) #: Hash[::Integer, Attribute]
88
+ class << self
89
+ # Looks up Attribute class by name.
90
+ #--
91
+ # @rbs name: Symbol
92
+ # @rbs return: Attribute
93
+ def by_name(name); BY_NAME.fetch(name); end
94
+ # Looks up Attribute class by type value.
95
+ #--
96
+ # @rbs type: Integer
97
+ # @rbs return: Attribute
98
+ def by_type(type); BY_TYPE.fetch(type); end
99
+ end
100
+ end
101
+ class Pin < ::Nl::Protocols::Genl::AttributeSet
102
+ # Abstract class
103
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
104
+ end
105
+ class Id < Attribute
106
+ TYPE = 1
107
+ NAME = :"id"
108
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
109
+ end
110
+ class ParentId < Attribute
111
+ TYPE = 2
112
+ NAME = :"parent_id"
113
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
114
+ end
115
+ class ModuleName < Attribute
116
+ TYPE = 3
117
+ NAME = :"module_name"
118
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
119
+ end
120
+ class Pad < Attribute
121
+ TYPE = 4
122
+ NAME = :"pad"
123
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Pad.new()
124
+ end
125
+ class ClockId < Attribute
126
+ TYPE = 5
127
+ NAME = :"clock_id"
128
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
129
+ end
130
+ class BoardLabel < Attribute
131
+ TYPE = 6
132
+ NAME = :"board_label"
133
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
134
+ end
135
+ class PanelLabel < Attribute
136
+ TYPE = 7
137
+ NAME = :"panel_label"
138
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
139
+ end
140
+ class PackageLabel < Attribute
141
+ TYPE = 8
142
+ NAME = :"package_label"
143
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::String.new(check: nil)
144
+ end
145
+ class Type < Attribute
146
+ TYPE = 9
147
+ NAME = :"type"
148
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
149
+ end
150
+ class Direction < Attribute
151
+ TYPE = 10
152
+ NAME = :"direction"
153
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
154
+ end
155
+ class Frequency < Attribute
156
+ TYPE = 11
157
+ NAME = :"frequency"
158
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
159
+ end
160
+ class FrequencySupported < Attribute
161
+ TYPE = 12
162
+ NAME = :"frequency_supported"
163
+ end
164
+ class FrequencyMin < Attribute
165
+ TYPE = 13
166
+ NAME = :"frequency_min"
167
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
168
+ end
169
+ class FrequencyMax < Attribute
170
+ TYPE = 14
171
+ NAME = :"frequency_max"
172
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
173
+ end
174
+ class Prio < Attribute
175
+ TYPE = 15
176
+ NAME = :"prio"
177
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
178
+ end
179
+ class State < Attribute
180
+ TYPE = 16
181
+ NAME = :"state"
182
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
183
+ end
184
+ class Capabilities < Attribute
185
+ TYPE = 17
186
+ NAME = :"capabilities"
187
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
188
+ end
189
+ class ParentDevice < Attribute
190
+ TYPE = 18
191
+ NAME = :"parent_device"
192
+ end
193
+ class ParentPin < Attribute
194
+ TYPE = 19
195
+ NAME = :"parent_pin"
196
+ end
197
+ class PhaseAdjustMin < Attribute
198
+ TYPE = 20
199
+ NAME = :"phase_adjust_min"
200
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
201
+ end
202
+ class PhaseAdjustMax < Attribute
203
+ TYPE = 21
204
+ NAME = :"phase_adjust_max"
205
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
206
+ end
207
+ class PhaseAdjust < Attribute
208
+ TYPE = 22
209
+ NAME = :"phase_adjust"
210
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
211
+ end
212
+ class PhaseOffset < Attribute
213
+ TYPE = 23
214
+ NAME = :"phase_offset"
215
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::S64, check: nil)
216
+ end
217
+ class FractionalFrequencyOffset < Attribute
218
+ TYPE = 24
219
+ NAME = :"fractional_frequency_offset"
220
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::SINT, check: nil)
221
+ end
222
+ class EsyncFrequency < Attribute
223
+ TYPE = 25
224
+ NAME = :"esync_frequency"
225
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
226
+ end
227
+ class EsyncFrequencySupported < Attribute
228
+ TYPE = 26
229
+ NAME = :"esync_frequency_supported"
230
+ end
231
+ class EsyncPulse < Attribute
232
+ TYPE = 27
233
+ NAME = :"esync_pulse"
234
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
235
+ end
236
+ class ReferenceSync < Attribute
237
+ TYPE = 28
238
+ NAME = :"reference_sync"
239
+ end
240
+ class PhaseAdjustGran < Attribute
241
+ TYPE = 29
242
+ NAME = :"phase_adjust_gran"
243
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
244
+ end
245
+ # :nodoc:
246
+ BY_NAME = Ractor.make_shareable({:"id" => Id, :"parent_id" => ParentId, :"module_name" => ModuleName, :"pad" => Pad, :"clock_id" => ClockId, :"board_label" => BoardLabel, :"panel_label" => PanelLabel, :"package_label" => PackageLabel, :"type" => Type, :"direction" => Direction, :"frequency" => Frequency, :"frequency_supported" => FrequencySupported, :"frequency_min" => FrequencyMin, :"frequency_max" => FrequencyMax, :"prio" => Prio, :"state" => State, :"capabilities" => Capabilities, :"parent_device" => ParentDevice, :"parent_pin" => ParentPin, :"phase_adjust_min" => PhaseAdjustMin, :"phase_adjust_max" => PhaseAdjustMax, :"phase_adjust" => PhaseAdjust, :"phase_offset" => PhaseOffset, :"fractional_frequency_offset" => FractionalFrequencyOffset, :"esync_frequency" => EsyncFrequency, :"esync_frequency_supported" => EsyncFrequencySupported, :"esync_pulse" => EsyncPulse, :"reference_sync" => ReferenceSync, :"phase_adjust_gran" => PhaseAdjustGran}) #: Hash[::Symbol, Attribute]
247
+ # :nodoc:
248
+ BY_TYPE = Ractor.make_shareable({1 => Id, 2 => ParentId, 3 => ModuleName, 4 => Pad, 5 => ClockId, 6 => BoardLabel, 7 => PanelLabel, 8 => PackageLabel, 9 => Type, 10 => Direction, 11 => Frequency, 12 => FrequencySupported, 13 => FrequencyMin, 14 => FrequencyMax, 15 => Prio, 16 => State, 17 => Capabilities, 18 => ParentDevice, 19 => ParentPin, 20 => PhaseAdjustMin, 21 => PhaseAdjustMax, 22 => PhaseAdjust, 23 => PhaseOffset, 24 => FractionalFrequencyOffset, 25 => EsyncFrequency, 26 => EsyncFrequencySupported, 27 => EsyncPulse, 28 => ReferenceSync, 29 => PhaseAdjustGran}) #: Hash[::Integer, Attribute]
249
+ class << self
250
+ # Looks up Attribute class by name.
251
+ #--
252
+ # @rbs name: Symbol
253
+ # @rbs return: Attribute
254
+ def by_name(name); BY_NAME.fetch(name); end
255
+ # Looks up Attribute class by type value.
256
+ #--
257
+ # @rbs type: Integer
258
+ # @rbs return: Attribute
259
+ def by_type(type); BY_TYPE.fetch(type); end
260
+ end
261
+ end
262
+ class PinParentDevice < ::Nl::Protocols::Genl::AttributeSet
263
+ # Abstract class
264
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
265
+ end
266
+ class ParentId < Attribute
267
+ TYPE = 2
268
+ NAME = :"parent_id"
269
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
270
+ end
271
+ class Direction < Attribute
272
+ TYPE = 10
273
+ NAME = :"direction"
274
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
275
+ end
276
+ class Prio < Attribute
277
+ TYPE = 15
278
+ NAME = :"prio"
279
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
280
+ end
281
+ class State < Attribute
282
+ TYPE = 16
283
+ NAME = :"state"
284
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
285
+ end
286
+ class PhaseOffset < Attribute
287
+ TYPE = 23
288
+ NAME = :"phase_offset"
289
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::S64, check: nil)
290
+ end
291
+ # :nodoc:
292
+ BY_NAME = Ractor.make_shareable({:"parent_id" => ParentId, :"direction" => Direction, :"prio" => Prio, :"state" => State, :"phase_offset" => PhaseOffset}) #: Hash[::Symbol, Attribute]
293
+ # :nodoc:
294
+ BY_TYPE = Ractor.make_shareable({2 => ParentId, 10 => Direction, 15 => Prio, 16 => State, 23 => PhaseOffset}) #: Hash[::Integer, Attribute]
295
+ class << self
296
+ # Looks up Attribute class by name.
297
+ #--
298
+ # @rbs name: Symbol
299
+ # @rbs return: Attribute
300
+ def by_name(name); BY_NAME.fetch(name); end
301
+ # Looks up Attribute class by type value.
302
+ #--
303
+ # @rbs type: Integer
304
+ # @rbs return: Attribute
305
+ def by_type(type); BY_TYPE.fetch(type); end
306
+ end
307
+ end
308
+ class PinParentPin < ::Nl::Protocols::Genl::AttributeSet
309
+ # Abstract class
310
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
311
+ end
312
+ class ParentId < Attribute
313
+ TYPE = 2
314
+ NAME = :"parent_id"
315
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
316
+ end
317
+ class State < Attribute
318
+ TYPE = 16
319
+ NAME = :"state"
320
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
321
+ end
322
+ # :nodoc:
323
+ BY_NAME = Ractor.make_shareable({:"parent_id" => ParentId, :"state" => State}) #: Hash[::Symbol, Attribute]
324
+ # :nodoc:
325
+ BY_TYPE = Ractor.make_shareable({2 => ParentId, 16 => State}) #: Hash[::Integer, Attribute]
326
+ class << self
327
+ # Looks up Attribute class by name.
328
+ #--
329
+ # @rbs name: Symbol
330
+ # @rbs return: Attribute
331
+ def by_name(name); BY_NAME.fetch(name); end
332
+ # Looks up Attribute class by type value.
333
+ #--
334
+ # @rbs type: Integer
335
+ # @rbs return: Attribute
336
+ def by_type(type); BY_TYPE.fetch(type); end
337
+ end
338
+ end
339
+ class FrequencyRange < ::Nl::Protocols::Genl::AttributeSet
340
+ # Abstract class
341
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
342
+ end
343
+ class FrequencyMin < Attribute
344
+ TYPE = 13
345
+ NAME = :"frequency_min"
346
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
347
+ end
348
+ class FrequencyMax < Attribute
349
+ TYPE = 14
350
+ NAME = :"frequency_max"
351
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
352
+ end
353
+ # :nodoc:
354
+ BY_NAME = Ractor.make_shareable({:"frequency_min" => FrequencyMin, :"frequency_max" => FrequencyMax}) #: Hash[::Symbol, Attribute]
355
+ # :nodoc:
356
+ BY_TYPE = Ractor.make_shareable({13 => FrequencyMin, 14 => FrequencyMax}) #: Hash[::Integer, Attribute]
357
+ class << self
358
+ # Looks up Attribute class by name.
359
+ #--
360
+ # @rbs name: Symbol
361
+ # @rbs return: Attribute
362
+ def by_name(name); BY_NAME.fetch(name); end
363
+ # Looks up Attribute class by type value.
364
+ #--
365
+ # @rbs type: Integer
366
+ # @rbs return: Attribute
367
+ def by_type(type); BY_TYPE.fetch(type); end
368
+ end
369
+ end
370
+ class ReferenceSync < ::Nl::Protocols::Genl::AttributeSet
371
+ # Abstract class
372
+ class Attribute < ::Nl::Protocols::Genl::AttributeSet::Attribute
373
+ end
374
+ class Id < Attribute
375
+ TYPE = 1
376
+ NAME = :"id"
377
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
378
+ end
379
+ class State < Attribute
380
+ TYPE = 16
381
+ NAME = :"state"
382
+ DATATYPE = ::Nl::Protocols::Genl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
383
+ end
384
+ # :nodoc:
385
+ BY_NAME = Ractor.make_shareable({:"id" => Id, :"state" => State}) #: Hash[::Symbol, Attribute]
386
+ # :nodoc:
387
+ BY_TYPE = Ractor.make_shareable({1 => Id, 16 => State}) #: Hash[::Integer, Attribute]
388
+ class << self
389
+ # Looks up Attribute class by name.
390
+ #--
391
+ # @rbs name: Symbol
392
+ # @rbs return: Attribute
393
+ def by_name(name); BY_NAME.fetch(name); end
394
+ # Looks up Attribute class by type value.
395
+ #--
396
+ # @rbs type: Integer
397
+ # @rbs return: Attribute
398
+ def by_type(type); BY_TYPE.fetch(type); end
399
+ end
400
+ end
401
+ Pin::FrequencySupported::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(FrequencyRange)
402
+ Pin::ParentDevice::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(PinParentDevice)
403
+ Pin::ParentPin::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(PinParentPin)
404
+ Pin::EsyncFrequencySupported::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(FrequencyRange)
405
+ Pin::ReferenceSync::DATATYPE = ::Nl::Protocols::Genl::DataTypes::NestedAttributes.new(ReferenceSync)
406
+ end
407
+ module Messages
408
+ # Get id of dpll device that matches given attributes
409
+ class DoDeviceIdGetRequest < ::Nl::Protocols::Genl::Message
410
+ TYPE = 1
411
+ FIXED_HEADER = nil
412
+ ATTRIBUTE_SET = AttributeSets::Dpll
413
+ ATTRIBUTES = Ractor.make_shareable(%i[module_name clock_id type])
414
+ # Gets the value of `module-name` attribute in the message.
415
+ #--
416
+ # @rbs return: ::String
417
+ def module_name; attributes[:"module_name"]&.value; end
418
+ # Gets the value of `clock-id` attribute in the message.
419
+ #--
420
+ # @rbs return: ::Integer
421
+ def clock_id; attributes[:"clock_id"]&.value; end
422
+ # Gets the value of `type` attribute in the message.
423
+ #--
424
+ # @rbs return: ::Integer
425
+ def type; attributes[:"type"]&.value; end
426
+ end
427
+ # Get id of dpll device that matches given attributes
428
+ class DoDeviceIdGetReply < ::Nl::Protocols::Genl::Message
429
+ TYPE = 1
430
+ FIXED_HEADER = nil
431
+ ATTRIBUTE_SET = AttributeSets::Dpll
432
+ ATTRIBUTES = Ractor.make_shareable(%i[id])
433
+ # Gets the value of `id` attribute in the message.
434
+ #--
435
+ # @rbs return: ::Integer
436
+ def id; attributes[:"id"]&.value; end
437
+ end
438
+ # Get list of DPLL devices (dump) or attributes of a single dpll device
439
+ class DoDeviceGetRequest < ::Nl::Protocols::Genl::Message
440
+ TYPE = 2
441
+ FIXED_HEADER = nil
442
+ ATTRIBUTE_SET = AttributeSets::Dpll
443
+ ATTRIBUTES = Ractor.make_shareable(%i[id])
444
+ # Gets the value of `id` attribute in the message.
445
+ #--
446
+ # @rbs return: ::Integer
447
+ def id; attributes[:"id"]&.value; end
448
+ end
449
+ # Get list of DPLL devices (dump) or attributes of a single dpll device
450
+ class DoDeviceGetReply < ::Nl::Protocols::Genl::Message
451
+ TYPE = 2
452
+ FIXED_HEADER = nil
453
+ ATTRIBUTE_SET = AttributeSets::Dpll
454
+ ATTRIBUTES = Ractor.make_shareable(%i[id module_name clock_id mode mode_supported lock_status temp type lock_status_error phase_offset_monitor phase_offset_avg_factor])
455
+ # Gets the value of `id` attribute in the message.
456
+ #--
457
+ # @rbs return: ::Integer
458
+ def id; attributes[:"id"]&.value; end
459
+ # Gets the value of `module-name` attribute in the message.
460
+ #--
461
+ # @rbs return: ::String
462
+ def module_name; attributes[:"module_name"]&.value; end
463
+ # Gets the value of `clock-id` attribute in the message.
464
+ #--
465
+ # @rbs return: ::Integer
466
+ def clock_id; attributes[:"clock_id"]&.value; end
467
+ # Gets the value of `mode` attribute in the message.
468
+ #--
469
+ # @rbs return: ::Integer
470
+ def mode; attributes[:"mode"]&.value; end
471
+ # Gets the value of `mode-supported` attribute in the message.
472
+ #--
473
+ # @rbs return: ::Integer
474
+ def mode_supported; attributes[:"mode_supported"]&.value; end
475
+ # Gets the value of `lock-status` attribute in the message.
476
+ #--
477
+ # @rbs return: ::Integer
478
+ def lock_status; attributes[:"lock_status"]&.value; end
479
+ # Gets the value of `temp` attribute in the message.
480
+ #--
481
+ # @rbs return: ::Integer
482
+ def temp; attributes[:"temp"]&.value; end
483
+ # Gets the value of `type` attribute in the message.
484
+ #--
485
+ # @rbs return: ::Integer
486
+ def type; attributes[:"type"]&.value; end
487
+ # Gets the value of `lock-status-error` attribute in the message.
488
+ #--
489
+ # @rbs return: ::Integer
490
+ def lock_status_error; attributes[:"lock_status_error"]&.value; end
491
+ # Gets the value of `phase-offset-monitor` attribute in the message.
492
+ #--
493
+ # @rbs return: ::Integer
494
+ def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
495
+ # Gets the value of `phase-offset-avg-factor` attribute in the message.
496
+ #--
497
+ # @rbs return: ::Integer
498
+ def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
499
+ end
500
+ # Get list of DPLL devices (dump) or attributes of a single dpll device
501
+ class DumpDeviceGetReply < ::Nl::Protocols::Genl::Message
502
+ TYPE = 2
503
+ FIXED_HEADER = nil
504
+ ATTRIBUTE_SET = AttributeSets::Dpll
505
+ ATTRIBUTES = Ractor.make_shareable(%i[id module_name clock_id mode mode_supported lock_status temp type lock_status_error phase_offset_monitor phase_offset_avg_factor])
506
+ # Gets the value of `id` attribute in the message.
507
+ #--
508
+ # @rbs return: ::Integer
509
+ def id; attributes[:"id"]&.value; end
510
+ # Gets the value of `module-name` attribute in the message.
511
+ #--
512
+ # @rbs return: ::String
513
+ def module_name; attributes[:"module_name"]&.value; end
514
+ # Gets the value of `clock-id` attribute in the message.
515
+ #--
516
+ # @rbs return: ::Integer
517
+ def clock_id; attributes[:"clock_id"]&.value; end
518
+ # Gets the value of `mode` attribute in the message.
519
+ #--
520
+ # @rbs return: ::Integer
521
+ def mode; attributes[:"mode"]&.value; end
522
+ # Gets the value of `mode-supported` attribute in the message.
523
+ #--
524
+ # @rbs return: ::Integer
525
+ def mode_supported; attributes[:"mode_supported"]&.value; end
526
+ # Gets the value of `lock-status` attribute in the message.
527
+ #--
528
+ # @rbs return: ::Integer
529
+ def lock_status; attributes[:"lock_status"]&.value; end
530
+ # Gets the value of `temp` attribute in the message.
531
+ #--
532
+ # @rbs return: ::Integer
533
+ def temp; attributes[:"temp"]&.value; end
534
+ # Gets the value of `type` attribute in the message.
535
+ #--
536
+ # @rbs return: ::Integer
537
+ def type; attributes[:"type"]&.value; end
538
+ # Gets the value of `lock-status-error` attribute in the message.
539
+ #--
540
+ # @rbs return: ::Integer
541
+ def lock_status_error; attributes[:"lock_status_error"]&.value; end
542
+ # Gets the value of `phase-offset-monitor` attribute in the message.
543
+ #--
544
+ # @rbs return: ::Integer
545
+ def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
546
+ # Gets the value of `phase-offset-avg-factor` attribute in the message.
547
+ #--
548
+ # @rbs return: ::Integer
549
+ def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
550
+ end
551
+ # Set attributes for a DPLL device
552
+ class DoDeviceSetRequest < ::Nl::Protocols::Genl::Message
553
+ TYPE = 3
554
+ FIXED_HEADER = nil
555
+ ATTRIBUTE_SET = AttributeSets::Dpll
556
+ ATTRIBUTES = Ractor.make_shareable(%i[id phase_offset_monitor phase_offset_avg_factor])
557
+ # Gets the value of `id` attribute in the message.
558
+ #--
559
+ # @rbs return: ::Integer
560
+ def id; attributes[:"id"]&.value; end
561
+ # Gets the value of `phase-offset-monitor` attribute in the message.
562
+ #--
563
+ # @rbs return: ::Integer
564
+ def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
565
+ # Gets the value of `phase-offset-avg-factor` attribute in the message.
566
+ #--
567
+ # @rbs return: ::Integer
568
+ def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
569
+ end
570
+ # Get id of a pin that matches given attributes
571
+ class DoPinIdGetRequest < ::Nl::Protocols::Genl::Message
572
+ TYPE = 7
573
+ FIXED_HEADER = nil
574
+ ATTRIBUTE_SET = AttributeSets::Pin
575
+ ATTRIBUTES = Ractor.make_shareable(%i[module_name clock_id board_label panel_label package_label type])
576
+ # Gets the value of `module-name` attribute in the message.
577
+ #--
578
+ # @rbs return: ::String
579
+ def module_name; attributes[:"module_name"]&.value; end
580
+ # Gets the value of `clock-id` attribute in the message.
581
+ #--
582
+ # @rbs return: ::Integer
583
+ def clock_id; attributes[:"clock_id"]&.value; end
584
+ # Gets the value of `board-label` attribute in the message.
585
+ #--
586
+ # @rbs return: ::String
587
+ def board_label; attributes[:"board_label"]&.value; end
588
+ # Gets the value of `panel-label` attribute in the message.
589
+ #--
590
+ # @rbs return: ::String
591
+ def panel_label; attributes[:"panel_label"]&.value; end
592
+ # Gets the value of `package-label` attribute in the message.
593
+ #--
594
+ # @rbs return: ::String
595
+ def package_label; attributes[:"package_label"]&.value; end
596
+ # Gets the value of `type` attribute in the message.
597
+ #--
598
+ # @rbs return: ::Integer
599
+ def type; attributes[:"type"]&.value; end
600
+ end
601
+ # Get id of a pin that matches given attributes
602
+ class DoPinIdGetReply < ::Nl::Protocols::Genl::Message
603
+ TYPE = 7
604
+ FIXED_HEADER = nil
605
+ ATTRIBUTE_SET = AttributeSets::Pin
606
+ ATTRIBUTES = Ractor.make_shareable(%i[id])
607
+ # Gets the value of `id` attribute in the message.
608
+ #--
609
+ # @rbs return: ::Integer
610
+ def id; attributes[:"id"]&.value; end
611
+ end
612
+ # Get list of pins and its attributes.
613
+ #
614
+ # - dump request without any attributes given - list all the pins in the
615
+ # system
616
+ # - dump request with target dpll - list all the pins registered with
617
+ # a given dpll device
618
+ # - do request with target dpll and target pin - single pin attributes
619
+ class DoPinGetRequest < ::Nl::Protocols::Genl::Message
620
+ TYPE = 8
621
+ FIXED_HEADER = nil
622
+ ATTRIBUTE_SET = AttributeSets::Pin
623
+ ATTRIBUTES = Ractor.make_shareable(%i[id])
624
+ # Gets the value of `id` attribute in the message.
625
+ #--
626
+ # @rbs return: ::Integer
627
+ def id; attributes[:"id"]&.value; end
628
+ end
629
+ # Get list of pins and its attributes.
630
+ #
631
+ # - dump request without any attributes given - list all the pins in the
632
+ # system
633
+ # - dump request with target dpll - list all the pins registered with
634
+ # a given dpll device
635
+ # - do request with target dpll and target pin - single pin attributes
636
+ class DoPinGetReply < ::Nl::Protocols::Genl::Message
637
+ TYPE = 8
638
+ FIXED_HEADER = nil
639
+ ATTRIBUTE_SET = AttributeSets::Pin
640
+ ATTRIBUTES = Ractor.make_shareable(%i[id module_name clock_id board_label panel_label package_label type frequency frequency_supported capabilities parent_device parent_pin phase_adjust_min phase_adjust_max phase_adjust fractional_frequency_offset esync_frequency esync_frequency_supported esync_pulse reference_sync phase_adjust_gran])
641
+ # Gets the value of `id` attribute in the message.
642
+ #--
643
+ # @rbs return: ::Integer
644
+ def id; attributes[:"id"]&.value; end
645
+ # Gets the value of `module-name` attribute in the message.
646
+ #--
647
+ # @rbs return: ::String
648
+ def module_name; attributes[:"module_name"]&.value; end
649
+ # Gets the value of `clock-id` attribute in the message.
650
+ #--
651
+ # @rbs return: ::Integer
652
+ def clock_id; attributes[:"clock_id"]&.value; end
653
+ # Gets the value of `board-label` attribute in the message.
654
+ #--
655
+ # @rbs return: ::String
656
+ def board_label; attributes[:"board_label"]&.value; end
657
+ # Gets the value of `panel-label` attribute in the message.
658
+ #--
659
+ # @rbs return: ::String
660
+ def panel_label; attributes[:"panel_label"]&.value; end
661
+ # Gets the value of `package-label` attribute in the message.
662
+ #--
663
+ # @rbs return: ::String
664
+ def package_label; attributes[:"package_label"]&.value; end
665
+ # Gets the value of `type` attribute in the message.
666
+ #--
667
+ # @rbs return: ::Integer
668
+ def type; attributes[:"type"]&.value; end
669
+ # Gets the value of `frequency` attribute in the message.
670
+ #--
671
+ # @rbs return: ::Integer
672
+ def frequency; attributes[:"frequency"]&.value; end
673
+ # Gets the value of `frequency-supported` attribute in the message.
674
+ #--
675
+ # @rbs return: AttributeSets::FrequencyRange
676
+ def frequency_supported; attributes[:"frequency_supported"]&.value; end
677
+ # Gets the value of `capabilities` attribute in the message.
678
+ #--
679
+ # @rbs return: ::Integer
680
+ def capabilities; attributes[:"capabilities"]&.value; end
681
+ # Gets the value of `parent-device` attribute in the message.
682
+ #--
683
+ # @rbs return: AttributeSets::PinParentDevice
684
+ def parent_device; attributes[:"parent_device"]&.value; end
685
+ # Gets the value of `parent-pin` attribute in the message.
686
+ #--
687
+ # @rbs return: AttributeSets::PinParentPin
688
+ def parent_pin; attributes[:"parent_pin"]&.value; end
689
+ # Gets the value of `phase-adjust-min` attribute in the message.
690
+ #--
691
+ # @rbs return: ::Integer
692
+ def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end
693
+ # Gets the value of `phase-adjust-max` attribute in the message.
694
+ #--
695
+ # @rbs return: ::Integer
696
+ def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end
697
+ # Gets the value of `phase-adjust` attribute in the message.
698
+ #--
699
+ # @rbs return: ::Integer
700
+ def phase_adjust; attributes[:"phase_adjust"]&.value; end
701
+ # Gets the value of `fractional-frequency-offset` attribute in the message.
702
+ #--
703
+ # @rbs return: ::Integer
704
+ def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end
705
+ # Gets the value of `esync-frequency` attribute in the message.
706
+ #--
707
+ # @rbs return: ::Integer
708
+ def esync_frequency; attributes[:"esync_frequency"]&.value; end
709
+ # Gets the value of `esync-frequency-supported` attribute in the message.
710
+ #--
711
+ # @rbs return: AttributeSets::FrequencyRange
712
+ def esync_frequency_supported; attributes[:"esync_frequency_supported"]&.value; end
713
+ # Gets the value of `esync-pulse` attribute in the message.
714
+ #--
715
+ # @rbs return: ::Integer
716
+ def esync_pulse; attributes[:"esync_pulse"]&.value; end
717
+ # Gets the value of `reference-sync` attribute in the message.
718
+ #--
719
+ # @rbs return: AttributeSets::ReferenceSync
720
+ def reference_sync; attributes[:"reference_sync"]&.value; end
721
+ # Gets the value of `phase-adjust-gran` attribute in the message.
722
+ #--
723
+ # @rbs return: ::Integer
724
+ def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end
725
+ end
726
+ # Get list of pins and its attributes.
727
+ #
728
+ # - dump request without any attributes given - list all the pins in the
729
+ # system
730
+ # - dump request with target dpll - list all the pins registered with
731
+ # a given dpll device
732
+ # - do request with target dpll and target pin - single pin attributes
733
+ class DumpPinGetRequest < ::Nl::Protocols::Genl::Message
734
+ TYPE = 8
735
+ FIXED_HEADER = nil
736
+ ATTRIBUTE_SET = AttributeSets::Pin
737
+ ATTRIBUTES = Ractor.make_shareable(%i[id])
738
+ # Gets the value of `id` attribute in the message.
739
+ #--
740
+ # @rbs return: ::Integer
741
+ def id; attributes[:"id"]&.value; end
742
+ end
743
+ # Get list of pins and its attributes.
744
+ #
745
+ # - dump request without any attributes given - list all the pins in the
746
+ # system
747
+ # - dump request with target dpll - list all the pins registered with
748
+ # a given dpll device
749
+ # - do request with target dpll and target pin - single pin attributes
750
+ class DumpPinGetReply < ::Nl::Protocols::Genl::Message
751
+ TYPE = 8
752
+ FIXED_HEADER = nil
753
+ ATTRIBUTE_SET = AttributeSets::Pin
754
+ ATTRIBUTES = Ractor.make_shareable(%i[id module_name clock_id board_label panel_label package_label type frequency frequency_supported capabilities parent_device parent_pin phase_adjust_min phase_adjust_max phase_adjust fractional_frequency_offset esync_frequency esync_frequency_supported esync_pulse reference_sync phase_adjust_gran])
755
+ # Gets the value of `id` attribute in the message.
756
+ #--
757
+ # @rbs return: ::Integer
758
+ def id; attributes[:"id"]&.value; end
759
+ # Gets the value of `module-name` attribute in the message.
760
+ #--
761
+ # @rbs return: ::String
762
+ def module_name; attributes[:"module_name"]&.value; end
763
+ # Gets the value of `clock-id` attribute in the message.
764
+ #--
765
+ # @rbs return: ::Integer
766
+ def clock_id; attributes[:"clock_id"]&.value; end
767
+ # Gets the value of `board-label` attribute in the message.
768
+ #--
769
+ # @rbs return: ::String
770
+ def board_label; attributes[:"board_label"]&.value; end
771
+ # Gets the value of `panel-label` attribute in the message.
772
+ #--
773
+ # @rbs return: ::String
774
+ def panel_label; attributes[:"panel_label"]&.value; end
775
+ # Gets the value of `package-label` attribute in the message.
776
+ #--
777
+ # @rbs return: ::String
778
+ def package_label; attributes[:"package_label"]&.value; end
779
+ # Gets the value of `type` attribute in the message.
780
+ #--
781
+ # @rbs return: ::Integer
782
+ def type; attributes[:"type"]&.value; end
783
+ # Gets the value of `frequency` attribute in the message.
784
+ #--
785
+ # @rbs return: ::Integer
786
+ def frequency; attributes[:"frequency"]&.value; end
787
+ # Gets the value of `frequency-supported` attribute in the message.
788
+ #--
789
+ # @rbs return: AttributeSets::FrequencyRange
790
+ def frequency_supported; attributes[:"frequency_supported"]&.value; end
791
+ # Gets the value of `capabilities` attribute in the message.
792
+ #--
793
+ # @rbs return: ::Integer
794
+ def capabilities; attributes[:"capabilities"]&.value; end
795
+ # Gets the value of `parent-device` attribute in the message.
796
+ #--
797
+ # @rbs return: AttributeSets::PinParentDevice
798
+ def parent_device; attributes[:"parent_device"]&.value; end
799
+ # Gets the value of `parent-pin` attribute in the message.
800
+ #--
801
+ # @rbs return: AttributeSets::PinParentPin
802
+ def parent_pin; attributes[:"parent_pin"]&.value; end
803
+ # Gets the value of `phase-adjust-min` attribute in the message.
804
+ #--
805
+ # @rbs return: ::Integer
806
+ def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end
807
+ # Gets the value of `phase-adjust-max` attribute in the message.
808
+ #--
809
+ # @rbs return: ::Integer
810
+ def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end
811
+ # Gets the value of `phase-adjust` attribute in the message.
812
+ #--
813
+ # @rbs return: ::Integer
814
+ def phase_adjust; attributes[:"phase_adjust"]&.value; end
815
+ # Gets the value of `fractional-frequency-offset` attribute in the message.
816
+ #--
817
+ # @rbs return: ::Integer
818
+ def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end
819
+ # Gets the value of `esync-frequency` attribute in the message.
820
+ #--
821
+ # @rbs return: ::Integer
822
+ def esync_frequency; attributes[:"esync_frequency"]&.value; end
823
+ # Gets the value of `esync-frequency-supported` attribute in the message.
824
+ #--
825
+ # @rbs return: AttributeSets::FrequencyRange
826
+ def esync_frequency_supported; attributes[:"esync_frequency_supported"]&.value; end
827
+ # Gets the value of `esync-pulse` attribute in the message.
828
+ #--
829
+ # @rbs return: ::Integer
830
+ def esync_pulse; attributes[:"esync_pulse"]&.value; end
831
+ # Gets the value of `reference-sync` attribute in the message.
832
+ #--
833
+ # @rbs return: AttributeSets::ReferenceSync
834
+ def reference_sync; attributes[:"reference_sync"]&.value; end
835
+ # Gets the value of `phase-adjust-gran` attribute in the message.
836
+ #--
837
+ # @rbs return: ::Integer
838
+ def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end
839
+ end
840
+ # Set attributes of a target pin
841
+ class DoPinSetRequest < ::Nl::Protocols::Genl::Message
842
+ TYPE = 9
843
+ FIXED_HEADER = nil
844
+ ATTRIBUTE_SET = AttributeSets::Pin
845
+ ATTRIBUTES = Ractor.make_shareable(%i[id direction frequency prio state parent_device parent_pin phase_adjust esync_frequency reference_sync])
846
+ # Gets the value of `id` attribute in the message.
847
+ #--
848
+ # @rbs return: ::Integer
849
+ def id; attributes[:"id"]&.value; end
850
+ # Gets the value of `direction` attribute in the message.
851
+ #--
852
+ # @rbs return: ::Integer
853
+ def direction; attributes[:"direction"]&.value; end
854
+ # Gets the value of `frequency` attribute in the message.
855
+ #--
856
+ # @rbs return: ::Integer
857
+ def frequency; attributes[:"frequency"]&.value; end
858
+ # Gets the value of `prio` attribute in the message.
859
+ #--
860
+ # @rbs return: ::Integer
861
+ def prio; attributes[:"prio"]&.value; end
862
+ # Gets the value of `state` attribute in the message.
863
+ #--
864
+ # @rbs return: ::Integer
865
+ def state; attributes[:"state"]&.value; end
866
+ # Gets the value of `parent-device` attribute in the message.
867
+ #--
868
+ # @rbs return: AttributeSets::PinParentDevice
869
+ def parent_device; attributes[:"parent_device"]&.value; end
870
+ # Gets the value of `parent-pin` attribute in the message.
871
+ #--
872
+ # @rbs return: AttributeSets::PinParentPin
873
+ def parent_pin; attributes[:"parent_pin"]&.value; end
874
+ # Gets the value of `phase-adjust` attribute in the message.
875
+ #--
876
+ # @rbs return: ::Integer
877
+ def phase_adjust; attributes[:"phase_adjust"]&.value; end
878
+ # Gets the value of `esync-frequency` attribute in the message.
879
+ #--
880
+ # @rbs return: ::Integer
881
+ def esync_frequency; attributes[:"esync_frequency"]&.value; end
882
+ # Gets the value of `reference-sync` attribute in the message.
883
+ #--
884
+ # @rbs return: AttributeSets::ReferenceSync
885
+ def reference_sync; attributes[:"reference_sync"]&.value; end
886
+ end
887
+ end
888
+ # Get id of dpll device that matches given attributes
889
+ #--
890
+ # @rbs (?module_name: ::String, ?clock_id: ::Integer, ?type: ::Integer) -> Messages::DoDeviceIdGetReply
891
+ def do_device_id_get(**args)
892
+ exchange_message(:"do", Messages::DoDeviceIdGetRequest, Messages::DoDeviceIdGetReply, args)
893
+ end
894
+ # Get list of DPLL devices (dump) or attributes of a single dpll device
895
+ #--
896
+ # @rbs (?id: ::Integer) -> Messages::DoDeviceGetReply
897
+ def do_device_get(**args)
898
+ exchange_message(:"do", Messages::DoDeviceGetRequest, Messages::DoDeviceGetReply, args)
899
+ end
900
+ # Set attributes for a DPLL device
901
+ #--
902
+ # @rbs (?id: ::Integer, ?phase_offset_monitor: ::Integer, ?phase_offset_avg_factor: ::Integer) -> void
903
+ def do_device_set(**args)
904
+ exchange_message(:"do", Messages::DoDeviceSetRequest, nil, args)
905
+ end
906
+ # Get id of a pin that matches given attributes
907
+ #--
908
+ # @rbs (?module_name: ::String, ?clock_id: ::Integer, ?board_label: ::String, ?panel_label: ::String, ?package_label: ::String, ?type: ::Integer) -> Messages::DoPinIdGetReply
909
+ def do_pin_id_get(**args)
910
+ exchange_message(:"do", Messages::DoPinIdGetRequest, Messages::DoPinIdGetReply, args)
911
+ end
912
+ # Get list of pins and its attributes.
913
+ #
914
+ # - dump request without any attributes given - list all the pins in the
915
+ # system
916
+ # - dump request with target dpll - list all the pins registered with
917
+ # a given dpll device
918
+ # - do request with target dpll and target pin - single pin attributes
919
+ #--
920
+ # @rbs (?id: ::Integer) -> Messages::DoPinGetReply
921
+ def do_pin_get(**args)
922
+ exchange_message(:"do", Messages::DoPinGetRequest, Messages::DoPinGetReply, args)
923
+ end
924
+ # Get list of pins and its attributes.
925
+ #
926
+ # - dump request without any attributes given - list all the pins in the
927
+ # system
928
+ # - dump request with target dpll - list all the pins registered with
929
+ # a given dpll device
930
+ # - do request with target dpll and target pin - single pin attributes
931
+ #--
932
+ # @rbs (?id: ::Integer) -> Enumerable[Messages::DumpPinGetReply]
933
+ # | (?id: ::Integer) { (Messages::DumpPinGetReply) -> void } -> void
934
+ def dump_pin_get(**args, &block)
935
+ exchange_message(:"dump", Messages::DumpPinGetRequest, Messages::DumpPinGetReply, args, &block)
936
+ end
937
+ # Set attributes of a target pin
938
+ #--
939
+ # @rbs (?id: ::Integer, ?direction: ::Integer, ?frequency: ::Integer, ?prio: ::Integer, ?state: ::Integer, ?parent_device: AttributeSets::PinParentDevice, ?parent_pin: AttributeSets::PinParentPin, ?phase_adjust: ::Integer, ?esync_frequency: ::Integer, ?reference_sync: AttributeSets::ReferenceSync) -> void
940
+ def do_pin_set(**args)
941
+ exchange_message(:"do", Messages::DoPinSetRequest, nil, args)
942
+ end
943
+ end
944
+ end; end