nl-linux 0.4.1 → 0.5.0

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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/NLSPEC_VERSION +1 -1
  4. data/generated/nl/linux/binder.rb +103 -187
  5. data/generated/nl/linux/conntrack.rb +1053 -1649
  6. data/generated/nl/linux/dev_energymodel.rb +303 -265
  7. data/generated/nl/linux/devlink.rb +4904 -5576
  8. data/generated/nl/linux/dpll.rb +1097 -1467
  9. data/generated/nl/linux/drm_ras.rb +235 -195
  10. data/generated/nl/linux/ethtool.rb +6652 -7415
  11. data/generated/nl/linux/fou.rb +234 -255
  12. data/generated/nl/linux/handshake.rb +208 -280
  13. data/generated/nl/linux/lockd.rb +99 -73
  14. data/generated/nl/linux/mptcp_pm.rb +589 -687
  15. data/generated/nl/linux/net_shaper.rb +520 -615
  16. data/generated/nl/linux/netdev.rb +1640 -1987
  17. data/generated/nl/linux/nfsd.rb +1341 -1215
  18. data/generated/nl/linux/nftables.rb +5143 -4870
  19. data/generated/nl/linux/nl80211.rb +2542 -6316
  20. data/generated/nl/linux/nlctrl.rb +338 -483
  21. data/generated/nl/linux/ovpn.rb +1006 -1522
  22. data/generated/nl/linux/ovs_datapath.rb +291 -186
  23. data/generated/nl/linux/ovs_flow.rb +1393 -2065
  24. data/generated/nl/linux/ovs_packet.rb +186 -223
  25. data/generated/nl/linux/ovs_vport.rb +328 -285
  26. data/generated/nl/linux/psp.rb +812 -717
  27. data/generated/nl/linux/rt_addr.rb +513 -243
  28. data/generated/nl/linux/rt_link.rb +4504 -7238
  29. data/generated/nl/linux/rt_neigh.rb +935 -847
  30. data/generated/nl/linux/rt_route.rb +1198 -871
  31. data/generated/nl/linux/rt_rule.rb +680 -659
  32. data/generated/nl/linux/sunrpc_cache.rb +323 -321
  33. data/generated/nl/linux/tc.rb +9058 -10454
  34. data/generated/nl/linux/tcp_metrics.rb +258 -367
  35. data/generated/nl/linux/team.rb +327 -345
  36. data/generated/nl/linux/wireguard.rb +270 -434
  37. data/lib/nl/linux/nlctrl_resolver.rb +1 -1
  38. data/lib/nl/linux/version.rb +1 -1
  39. data/linux/conntrack.yaml +18 -3
  40. data/linux/devlink.yaml +26 -4
  41. data/linux/dpll.yaml +19 -0
  42. data/linux/netdev.yaml +21 -0
  43. data/linux/nfsd.yaml +111 -0
  44. data/linux/nl80211.yaml +2 -2
  45. data/linux/rt-addr.yaml +4 -0
  46. data/linux/rt-link.yaml +7 -0
  47. data/linux/rt-neigh.yaml +3 -0
  48. data/linux/rt-route.yaml +83 -2
  49. data/sig/generated/nl/linux/binder.rbs +77 -220
  50. data/sig/generated/nl/linux/conntrack.rbs +770 -1954
  51. data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
  52. data/sig/generated/nl/linux/devlink.rbs +3318 -6068
  53. data/sig/generated/nl/linux/dpll.rbs +791 -1589
  54. data/sig/generated/nl/linux/drm_ras.rbs +160 -208
  55. data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
  56. data/sig/generated/nl/linux/fou.rbs +139 -254
  57. data/sig/generated/nl/linux/handshake.rbs +144 -319
  58. data/sig/generated/nl/linux/lockd.rbs +64 -74
  59. data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
  60. data/sig/generated/nl/linux/net_shaper.rbs +351 -644
  61. data/sig/generated/nl/linux/netdev.rbs +1151 -2146
  62. data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
  63. data/sig/generated/nl/linux/nftables.rbs +2907 -5030
  64. data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
  65. data/sig/generated/nl/linux/nlctrl.rbs +220 -544
  66. data/sig/generated/nl/linux/ovpn.rbs +835 -1859
  67. data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
  68. data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
  69. data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
  70. data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
  71. data/sig/generated/nl/linux/psp.rbs +550 -741
  72. data/sig/generated/nl/linux/rt_addr.rbs +188 -226
  73. data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
  74. data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
  75. data/sig/generated/nl/linux/rt_route.rbs +632 -862
  76. data/sig/generated/nl/linux/rt_rule.rbs +217 -639
  77. data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
  78. data/sig/generated/nl/linux/tc.rbs +6199 -13391
  79. data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
  80. data/sig/generated/nl/linux/team.rbs +232 -391
  81. data/sig/generated/nl/linux/wireguard.rbs +197 -502
  82. metadata +6 -6
@@ -1,6 +1,6 @@
1
1
  # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2
2
  #
3
- # This file is based on Documentation/netlink/specs/dpll.yaml from Linux v7.2.
3
+ # This file is based on Documentation/netlink/specs/dpll.yaml from Linux v7.3.
4
4
  #--
5
5
  # frozen_string_literal: true
6
6
  # This code is generated by Ynl::Generator. DO NOT EDIT.
@@ -27,7 +27,7 @@ class Dpll < ::Nl::Genl::Family
27
27
  super
28
28
  end
29
29
  # @private
30
- MCAST_GROUPS = Ractor.make_shareable({:"monitor" => ::Nl::McastGroup.new("monitor", nil)}) #: Hash[::Symbol, ::Nl::McastGroup]
30
+ MCAST_GROUPS = {:"monitor" => ::Nl::McastGroup.new("monitor", nil)}.freeze #: Hash[::Symbol, ::Nl::McastGroup]
31
31
  module Constants
32
32
  # temperature divider allowing userspace to calculate the
33
33
  # temperature as float with three digit decimal precision.
@@ -146,6 +146,11 @@ class Dpll < ::Nl::Genl::Family
146
146
  IntOscillator = 4
147
147
  # GNSS recovered clock
148
148
  Gnss = 5
149
+ # Device internal numerically controlled oscillator.
150
+ # When connected as a DPLL input, the DPLL enters NCO mode
151
+ # where the output frequency is adjusted by the host via
152
+ # the PTP clock interface.
153
+ IntNco = 6
149
154
  end
150
155
  # defines possible direction of a pin, valid values for
151
156
  # DPLL_A_PIN_DIRECTION attribute
@@ -195,1341 +200,890 @@ class Dpll < ::Nl::Genl::Family
195
200
  PriorityCanChange = 2
196
201
  # pin state can be changed
197
202
  StateCanChange = 4
203
+ # pin state can be set to connected regardless of current
204
+ # DPLL device mode, overriding the active input selection.
205
+ # Requires state-can-change to be set as well.
206
+ StateConnectedOverride = 8
198
207
  end
199
208
  end
200
209
  module Structs
201
210
  end
202
211
  module AttributeSets
203
212
  class Dpll < ::Nl::AttributeSet
204
- # Abstract class
205
- class Attribute < ::Nl::AttributeSet::Attribute
213
+ module Definitions
214
+ # @rbs return: ::Integer
215
+ # @return [Integer]
216
+ def id; self[:"id"]; end
217
+ # @rbs return: ::String
218
+ # @return [String]
219
+ def module_name; self[:"module_name"]; end
220
+ # @rbs return: ::Integer
221
+ # @return [Integer]
222
+ def clock_id; self[:"clock_id"]; end
223
+ # Known enum values are defined in {Enums::Mode}.
224
+ # @rbs return: ::Integer
225
+ # @return [Integer]
226
+ def mode; self[:"mode"]; end
227
+ # Known enum values are defined in {Enums::Mode}.
228
+ # @rbs return: ::Array[::Integer]
229
+ # @return [Array<Integer>]
230
+ def mode_supported; self[:"mode_supported"]; end
231
+ # Known enum values are defined in {Enums::LockStatus}.
232
+ # @rbs return: ::Integer
233
+ # @return [Integer]
234
+ def lock_status; self[:"lock_status"]; end
235
+ # @rbs return: ::Integer
236
+ # @return [Integer]
237
+ def temp; self[:"temp"]; end
238
+ # Known enum values are defined in {Enums::Type}.
239
+ # @rbs return: ::Integer
240
+ # @return [Integer]
241
+ def type; self[:"type"]; end
242
+ # Known enum values are defined in {Enums::LockStatusError}.
243
+ # @rbs return: ::Integer
244
+ # @return [Integer]
245
+ def lock_status_error; self[:"lock_status_error"]; end
246
+ # Level of quality of a clock device. This mainly applies when
247
+ # the dpll lock-status is DPLL_LOCK_STATUS_HOLDOVER. This could
248
+ # be put to message multiple times to indicate possible parallel
249
+ # quality levels (e.g. one specified by ITU option 1 and another
250
+ # one specified by option 2).
251
+ #
252
+ #
253
+ # Known enum values are defined in {Enums::ClockQualityLevel}.
254
+ # @rbs return: ::Array[::Integer]
255
+ # @return [Array<Integer>]
256
+ def clock_quality_level; self[:"clock_quality_level"]; end
257
+ # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
258
+ #
259
+ # Known enum values are defined in {Enums::FeatureState}.
260
+ # @rbs return: ::Integer
261
+ # @return [Integer]
262
+ def phase_offset_monitor; self[:"phase_offset_monitor"]; end
263
+ # Averaging factor applied to calculation of reported phase offset.
264
+ # @rbs return: ::Integer
265
+ # @return [Integer]
266
+ def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]; end
267
+ # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
268
+ #
269
+ # Known enum values are defined in {Enums::FeatureState}.
270
+ # @rbs return: ::Integer
271
+ # @return [Integer]
272
+ def frequency_monitor; self[:"frequency_monitor"]; end
273
+ end
274
+ include Definitions
275
+ # Decodes attributes from the decoder into a new attribute set.
276
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
277
+ def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
278
+ super(decoder, BY_TYPE, 0, external_selectors)
206
279
  end
207
- class Id < Attribute
208
- TYPE = 1
209
- NAME = :"id"
210
- # @private
211
- ORDER = 0
212
- # @private
213
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
214
- end
215
- class ModuleName < Attribute
216
- TYPE = 2
217
- NAME = :"module_name"
218
- # @private
219
- ORDER = 1
220
- # @private
221
- DATATYPE = ::Nl::DataTypes::String.new(check: nil)
222
- end
223
- class Pad < Attribute
224
- TYPE = 3
225
- NAME = :"pad"
226
- # @private
227
- ORDER = 2
228
- # @private
229
- DATATYPE = ::Nl::DataTypes::Pad.new()
230
- end
231
- class ClockId < Attribute
232
- TYPE = 4
233
- NAME = :"clock_id"
234
- # @private
235
- ORDER = 3
236
- # @private
237
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
238
- end
239
- # Known enum values are defined in {Enums::Mode}.
240
- class Mode < Attribute
241
- TYPE = 5
242
- NAME = :"mode"
243
- # @private
244
- ORDER = 4
245
- # @private
246
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
247
- end
248
- # Known enum values are defined in {Enums::Mode}.
249
- class ModeSupported < Attribute
250
- TYPE = 6
251
- NAME = :"mode_supported"
252
- # @private
253
- MULTI = true
254
- # @private
255
- ORDER = 5
256
- # @private
257
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
258
- end
259
- # Known enum values are defined in {Enums::LockStatus}.
260
- class LockStatus < Attribute
261
- TYPE = 7
262
- NAME = :"lock_status"
263
- # @private
264
- ORDER = 6
265
- # @private
266
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
267
- end
268
- class Temp < Attribute
269
- TYPE = 8
270
- NAME = :"temp"
271
- # @private
272
- ORDER = 7
273
- # @private
274
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
275
- end
276
- # Known enum values are defined in {Enums::Type}.
277
- class Type < Attribute
278
- TYPE = 9
279
- NAME = :"type"
280
- # @private
281
- ORDER = 8
282
- # @private
283
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
284
- end
285
- # Known enum values are defined in {Enums::LockStatusError}.
286
- class LockStatusError < Attribute
287
- TYPE = 10
288
- NAME = :"lock_status_error"
289
- # @private
290
- ORDER = 9
291
- # @private
292
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
293
- end
294
- # Level of quality of a clock device. This mainly applies when
295
- # the dpll lock-status is DPLL_LOCK_STATUS_HOLDOVER. This could
296
- # be put to message multiple times to indicate possible parallel
297
- # quality levels (e.g. one specified by ITU option 1 and another
298
- # one specified by option 2).
299
- #
300
- #
301
- # Known enum values are defined in {Enums::ClockQualityLevel}.
302
- class ClockQualityLevel < Attribute
303
- TYPE = 11
304
- NAME = :"clock_quality_level"
305
- # @private
306
- MULTI = true
307
- # @private
308
- ORDER = 10
309
- # @private
310
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
311
- end
312
- # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
313
- #
314
- # Known enum values are defined in {Enums::FeatureState}.
315
- class PhaseOffsetMonitor < Attribute
316
- TYPE = 12
317
- NAME = :"phase_offset_monitor"
318
- # @private
319
- ORDER = 11
320
- # @private
321
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
322
- end
323
- # Averaging factor applied to calculation of reported phase offset.
324
- class PhaseOffsetAvgFactor < Attribute
325
- TYPE = 13
326
- NAME = :"phase_offset_avg_factor"
327
- # @private
328
- ORDER = 12
329
- # @private
330
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
331
- end
332
- # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
333
- #
334
- # Known enum values are defined in {Enums::FeatureState}.
335
- class FrequencyMonitor < Attribute
336
- TYPE = 14
337
- NAME = :"frequency_monitor"
338
- # @private
339
- ORDER = 13
340
- # @private
341
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
342
- end
343
- # @private
344
- 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, :"frequency_monitor" => FrequencyMonitor}) #: Hash[::Symbol, Attribute]
345
- # @private
346
- 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, 14 => FrequencyMonitor}) #: Hash[::Integer, Attribute]
347
- # @rbs return: ::Integer
348
- # @return [Integer]
349
- # @see Id
350
- def id; self[:"id"]&.value; end
351
- # @rbs return: ::String
352
- # @return [String]
353
- # @see ModuleName
354
- def module_name; self[:"module_name"]&.value; end
355
- # @rbs return: ::Integer
356
- # @return [Integer]
357
- # @see ClockId
358
- def clock_id; self[:"clock_id"]&.value; end
359
- # Known enum values are defined in {Enums::Mode}.
360
- # @rbs return: ::Integer
361
- # @return [Integer]
362
- # @see Mode
363
- def mode; self[:"mode"]&.value; end
364
- # Known enum values are defined in {Enums::Mode}.
365
- # @rbs return: ::Array[::Integer]
366
- # @return [Array<Integer>]
367
- # @see ModeSupported
368
- def mode_supported; self[:"mode_supported"].map(&:value); end
369
- # Known enum values are defined in {Enums::LockStatus}.
370
- # @rbs return: ::Integer
371
- # @return [Integer]
372
- # @see LockStatus
373
- def lock_status; self[:"lock_status"]&.value; end
374
- # @rbs return: ::Integer
375
- # @return [Integer]
376
- # @see Temp
377
- def temp; self[:"temp"]&.value; end
378
- # Known enum values are defined in {Enums::Type}.
379
- # @rbs return: ::Integer
380
- # @return [Integer]
381
- # @see Type
382
- def type; self[:"type"]&.value; end
383
- # Known enum values are defined in {Enums::LockStatusError}.
384
- # @rbs return: ::Integer
385
- # @return [Integer]
386
- # @see LockStatusError
387
- def lock_status_error; self[:"lock_status_error"]&.value; end
388
- # Level of quality of a clock device. This mainly applies when
389
- # the dpll lock-status is DPLL_LOCK_STATUS_HOLDOVER. This could
390
- # be put to message multiple times to indicate possible parallel
391
- # quality levels (e.g. one specified by ITU option 1 and another
392
- # one specified by option 2).
393
- #
394
- #
395
- # Known enum values are defined in {Enums::ClockQualityLevel}.
396
- # @rbs return: ::Array[::Integer]
397
- # @return [Array<Integer>]
398
- # @see ClockQualityLevel
399
- def clock_quality_level; self[:"clock_quality_level"].map(&:value); end
400
- # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
401
- #
402
- # Known enum values are defined in {Enums::FeatureState}.
403
- # @rbs return: ::Integer
404
- # @return [Integer]
405
- # @see PhaseOffsetMonitor
406
- def phase_offset_monitor; self[:"phase_offset_monitor"]&.value; end
407
- # Averaging factor applied to calculation of reported phase offset.
408
- # @rbs return: ::Integer
409
- # @return [Integer]
410
- # @see PhaseOffsetAvgFactor
411
- def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]&.value; end
412
- # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
413
- #
414
- # Known enum values are defined in {Enums::FeatureState}.
415
- # @rbs return: ::Integer
416
- # @return [Integer]
417
- # @see FrequencyMonitor
418
- def frequency_monitor; self[:"frequency_monitor"]&.value; end
419
- class << self
420
- # Looks up Attribute class by name.
421
- # @rbs name: Symbol
422
- # @rbs return: Attribute
423
- # @param [Symbol] name
424
- # @return [Attribute]
425
- def by_name(name); BY_NAME.fetch(name); end
426
- # Looks up Attribute class by type value.
427
- # @rbs type: Integer
428
- # @rbs return: Attribute
429
- # @param [Integer] type
430
- # @return [Attribute]
431
- def by_type(type); BY_TYPE.fetch(type); end
432
- end
433
- end
434
- class Pin < ::Nl::AttributeSet
435
- # Abstract class
436
- class Attribute < ::Nl::AttributeSet::Attribute
437
- end
438
- class Id < Attribute
439
- TYPE = 1
440
- NAME = :"id"
441
- # @private
442
- ORDER = 0
443
- # @private
444
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
445
- end
446
- class ParentId < Attribute
447
- TYPE = 2
448
- NAME = :"parent_id"
449
- # @private
450
- ORDER = 1
451
- # @private
452
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
453
- end
454
- class ModuleName < Attribute
455
- TYPE = 3
456
- NAME = :"module_name"
457
- # @private
458
- ORDER = 2
459
- # @private
460
- DATATYPE = ::Nl::DataTypes::String.new(check: nil)
461
- end
462
- class Pad < Attribute
463
- TYPE = 4
464
- NAME = :"pad"
465
- # @private
466
- ORDER = 3
467
- # @private
468
- DATATYPE = ::Nl::DataTypes::Pad.new()
469
- end
470
- class ClockId < Attribute
471
- TYPE = 5
472
- NAME = :"clock_id"
473
- # @private
474
- ORDER = 4
475
- # @private
476
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
477
- end
478
- class BoardLabel < Attribute
479
- TYPE = 6
480
- NAME = :"board_label"
481
- # @private
482
- ORDER = 5
483
- # @private
484
- DATATYPE = ::Nl::DataTypes::String.new(check: nil)
485
- end
486
- class PanelLabel < Attribute
487
- TYPE = 7
488
- NAME = :"panel_label"
489
- # @private
490
- ORDER = 6
491
- # @private
492
- DATATYPE = ::Nl::DataTypes::String.new(check: nil)
493
- end
494
- class PackageLabel < Attribute
495
- TYPE = 8
496
- NAME = :"package_label"
497
- # @private
498
- ORDER = 7
499
- # @private
500
- DATATYPE = ::Nl::DataTypes::String.new(check: nil)
501
- end
502
- # Known enum values are defined in {Enums::PinType}.
503
- class Type < Attribute
504
- TYPE = 9
505
- NAME = :"type"
506
- # @private
507
- ORDER = 8
508
- # @private
509
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
510
- end
511
- # Known enum values are defined in {Enums::PinDirection}.
512
- class Direction < Attribute
513
- TYPE = 10
514
- NAME = :"direction"
515
- # @private
516
- ORDER = 9
517
- # @private
518
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
519
- end
520
- class Frequency < Attribute
521
- TYPE = 11
522
- NAME = :"frequency"
523
- # @private
524
- ORDER = 10
525
- # @private
526
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
527
- end
528
- class FrequencySupported < Attribute
529
- TYPE = 12
530
- NAME = :"frequency_supported"
531
- # @private
532
- MULTI = true
533
- # @private
534
- ORDER = 11
535
- end
536
- class FrequencyMin < Attribute
537
- TYPE = 13
538
- NAME = :"frequency_min"
539
- # @private
540
- ORDER = 12
541
- # @private
542
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
543
- end
544
- class FrequencyMax < Attribute
545
- TYPE = 14
546
- NAME = :"frequency_max"
547
- # @private
548
- ORDER = 13
549
- # @private
550
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
551
- end
552
- class Prio < Attribute
553
- TYPE = 15
554
- NAME = :"prio"
555
- # @private
556
- ORDER = 14
557
- # @private
558
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
559
- end
560
- # Known enum values are defined in {Enums::PinState}.
561
- class State < Attribute
562
- TYPE = 16
563
- NAME = :"state"
564
- # @private
565
- ORDER = 15
566
- # @private
567
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
568
- end
569
- # Known flags are defined in {Flags::PinCapabilities}.
570
- class Capabilities < Attribute
571
- TYPE = 17
572
- NAME = :"capabilities"
573
- # @private
574
- ORDER = 16
575
- # @private
576
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
577
- end
578
- class ParentDevice < Attribute
579
- TYPE = 18
580
- NAME = :"parent_device"
581
- # @private
582
- MULTI = true
583
- # @private
584
- ORDER = 17
585
- end
586
- class ParentPin < Attribute
587
- TYPE = 19
588
- NAME = :"parent_pin"
589
- # @private
590
- MULTI = true
591
- # @private
592
- ORDER = 18
593
- end
594
- class PhaseAdjustMin < Attribute
595
- TYPE = 20
596
- NAME = :"phase_adjust_min"
597
- # @private
598
- ORDER = 19
599
- # @private
600
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
601
- end
602
- class PhaseAdjustMax < Attribute
603
- TYPE = 21
604
- NAME = :"phase_adjust_max"
605
- # @private
606
- ORDER = 20
607
- # @private
608
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
609
- end
610
- class PhaseAdjust < Attribute
611
- TYPE = 22
612
- NAME = :"phase_adjust"
613
- # @private
614
- ORDER = 21
615
- # @private
616
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)
617
- end
618
- class PhaseOffset < Attribute
619
- TYPE = 23
620
- NAME = :"phase_offset"
621
- # @private
622
- ORDER = 22
623
- # @private
624
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S64, check: nil)
625
- end
626
- # The FFO (Fractional Frequency Offset) of the pin.
627
- # At top level this represents the RX vs TX symbol rate
628
- # offset on the media associated with the pin. Inside
629
- # the pin-parent-device nest it represents the frequency
630
- # offset between the pin and its parent DPLL device.
631
- # Value is in PPM (parts per million).
632
- # This is a lower-precision version of
633
- # fractional-frequency-offset-ppt.
634
- class FractionalFrequencyOffset < Attribute
635
- TYPE = 24
636
- NAME = :"fractional_frequency_offset"
637
- # @private
638
- ORDER = 23
639
- # @private
640
- DATATYPE = ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true, check: nil)
641
- end
642
- # Frequency of Embedded SYNC signal. If provided, the pin is configured
643
- # with a SYNC signal embedded into its base clock frequency.
644
- class EsyncFrequency < Attribute
645
- TYPE = 25
646
- NAME = :"esync_frequency"
647
- # @private
648
- ORDER = 24
649
- # @private
650
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
651
- end
652
- # If provided a pin is capable of embedding a SYNC signal (within given
653
- # range) into its base frequency signal.
654
- class EsyncFrequencySupported < Attribute
655
- TYPE = 26
656
- NAME = :"esync_frequency_supported"
657
- # @private
658
- MULTI = true
659
- # @private
660
- ORDER = 25
661
- end
662
- # A ratio of high to low state of a SYNC signal pulse embedded
663
- # into base clock frequency. Value is in percents.
664
- class EsyncPulse < Attribute
665
- TYPE = 27
666
- NAME = :"esync_pulse"
667
- # @private
668
- ORDER = 26
669
- # @private
670
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
671
- end
672
- # Capable pin provides list of pins that can be bound to create a
673
- # reference-sync pin pair.
674
- class ReferenceSync < Attribute
675
- TYPE = 28
676
- NAME = :"reference_sync"
677
- # @private
678
- MULTI = true
679
- # @private
680
- ORDER = 27
681
- end
682
- # Granularity of phase adjustment, in picoseconds. The value of
683
- # phase adjustment must be a multiple of this granularity.
684
- class PhaseAdjustGran < Attribute
685
- TYPE = 29
686
- NAME = :"phase_adjust_gran"
687
- # @private
688
- ORDER = 28
689
- # @private
690
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
691
- end
692
- # The FFO (Fractional Frequency Offset) of the pin.
693
- # At top level this represents the RX vs TX symbol rate
694
- # offset on the media associated with the pin. Inside
695
- # the pin-parent-device nest it represents the frequency
696
- # offset between the pin and its parent DPLL device.
697
- # Value is in PPT (parts per trillion, 10^-12).
698
- # This is a higher-precision version of
699
- # fractional-frequency-offset.
700
- class FractionalFrequencyOffsetPpt < Attribute
701
- TYPE = 30
702
- NAME = :"fractional_frequency_offset_ppt"
703
- # @private
704
- ORDER = 29
705
- # @private
706
- DATATYPE = ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true, check: nil)
707
- end
708
- # The measured frequency of the input pin in millihertz (mHz).
709
- # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
710
- # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
711
- # of a measured frequency value.
712
- # Value of (DPLL_A_PIN_MEASURED_FREQUENCY %
713
- # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is a fractional part
714
- # of a measured frequency value.
715
- class MeasuredFrequency < Attribute
716
- TYPE = 31
717
- NAME = :"measured_frequency"
718
- # @private
719
- ORDER = 30
720
- # @private
721
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
722
- end
723
- # Operational state of the pin with respect to its parent DPLL
724
- # device. Unlike state (which reflects the administrative intent),
725
- # operstate reflects the actual hardware status.
726
- #
727
- #
728
- # Known enum values are defined in {Enums::PinOperstate}.
729
- class Operstate < Attribute
730
- TYPE = 32
731
- NAME = :"operstate"
732
- # @private
733
- ORDER = 31
734
- # @private
735
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
736
- end
737
- # @private
738
- 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, :"fractional_frequency_offset_ppt" => FractionalFrequencyOffsetPpt, :"measured_frequency" => MeasuredFrequency, :"operstate" => Operstate}) #: Hash[::Symbol, Attribute]
739
- # @private
740
- 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, 30 => FractionalFrequencyOffsetPpt, 31 => MeasuredFrequency, 32 => Operstate}) #: Hash[::Integer, Attribute]
741
- # @rbs return: ::Integer
742
- # @return [Integer]
743
- # @see Id
744
- def id; self[:"id"]&.value; end
745
- # @rbs return: ::Integer
746
- # @return [Integer]
747
- # @see ParentId
748
- def parent_id; self[:"parent_id"]&.value; end
749
- # @rbs return: ::String
750
- # @return [String]
751
- # @see ModuleName
752
- def module_name; self[:"module_name"]&.value; end
753
- # @rbs return: ::Integer
754
- # @return [Integer]
755
- # @see ClockId
756
- def clock_id; self[:"clock_id"]&.value; end
757
- # @rbs return: ::String
758
- # @return [String]
759
- # @see BoardLabel
760
- def board_label; self[:"board_label"]&.value; end
761
- # @rbs return: ::String
762
- # @return [String]
763
- # @see PanelLabel
764
- def panel_label; self[:"panel_label"]&.value; end
765
- # @rbs return: ::String
766
- # @return [String]
767
- # @see PackageLabel
768
- def package_label; self[:"package_label"]&.value; end
769
- # Known enum values are defined in {Enums::PinType}.
770
- # @rbs return: ::Integer
771
- # @return [Integer]
772
- # @see Type
773
- def type; self[:"type"]&.value; end
774
- # Known enum values are defined in {Enums::PinDirection}.
775
- # @rbs return: ::Integer
776
- # @return [Integer]
777
- # @see Direction
778
- def direction; self[:"direction"]&.value; end
779
- # @rbs return: ::Integer
780
- # @return [Integer]
781
- # @see Frequency
782
- def frequency; self[:"frequency"]&.value; end
783
- # @rbs return: ::Array[AttributeSets::FrequencyRange]
784
- # @return [Array<AttributeSets::FrequencyRange>]
785
- # @see FrequencySupported
786
- def frequency_supported; self[:"frequency_supported"].map(&:value); end
787
- # @rbs return: ::Integer
788
- # @return [Integer]
789
- # @see FrequencyMin
790
- def frequency_min; self[:"frequency_min"]&.value; end
791
- # @rbs return: ::Integer
792
- # @return [Integer]
793
- # @see FrequencyMax
794
- def frequency_max; self[:"frequency_max"]&.value; end
795
- # @rbs return: ::Integer
796
- # @return [Integer]
797
- # @see Prio
798
- def prio; self[:"prio"]&.value; end
799
- # Known enum values are defined in {Enums::PinState}.
800
- # @rbs return: ::Integer
801
- # @return [Integer]
802
- # @see State
803
- def state; self[:"state"]&.value; end
804
- # Known flags are defined in {Flags::PinCapabilities}.
805
- # @rbs return: ::Integer
806
- # @return [Integer]
807
- # @see Capabilities
808
- def capabilities; self[:"capabilities"]&.value; end
809
- # @rbs return: ::Array[AttributeSets::PinParentDevice]
810
- # @return [Array<AttributeSets::PinParentDevice>]
811
- # @see ParentDevice
812
- def parent_device; self[:"parent_device"].map(&:value); end
813
- # @rbs return: ::Array[AttributeSets::PinParentPin]
814
- # @return [Array<AttributeSets::PinParentPin>]
815
- # @see ParentPin
816
- def parent_pin; self[:"parent_pin"].map(&:value); end
817
- # @rbs return: ::Integer
818
- # @return [Integer]
819
- # @see PhaseAdjustMin
820
- def phase_adjust_min; self[:"phase_adjust_min"]&.value; end
821
- # @rbs return: ::Integer
822
- # @return [Integer]
823
- # @see PhaseAdjustMax
824
- def phase_adjust_max; self[:"phase_adjust_max"]&.value; end
825
- # @rbs return: ::Integer
826
- # @return [Integer]
827
- # @see PhaseAdjust
828
- def phase_adjust; self[:"phase_adjust"]&.value; end
829
- # @rbs return: ::Integer
830
- # @return [Integer]
831
- # @see PhaseOffset
832
- def phase_offset; self[:"phase_offset"]&.value; end
833
- # The FFO (Fractional Frequency Offset) of the pin.
834
- # At top level this represents the RX vs TX symbol rate
835
- # offset on the media associated with the pin. Inside
836
- # the pin-parent-device nest it represents the frequency
837
- # offset between the pin and its parent DPLL device.
838
- # Value is in PPM (parts per million).
839
- # This is a lower-precision version of
840
- # fractional-frequency-offset-ppt.
841
- # @rbs return: ::Integer
842
- # @return [Integer]
843
- # @see FractionalFrequencyOffset
844
- def fractional_frequency_offset; self[:"fractional_frequency_offset"]&.value; end
845
- # Frequency of Embedded SYNC signal. If provided, the pin is configured
846
- # with a SYNC signal embedded into its base clock frequency.
847
- # @rbs return: ::Integer
848
- # @return [Integer]
849
- # @see EsyncFrequency
850
- def esync_frequency; self[:"esync_frequency"]&.value; end
851
- # If provided a pin is capable of embedding a SYNC signal (within given
852
- # range) into its base frequency signal.
853
- # @rbs return: ::Array[AttributeSets::FrequencyRange]
854
- # @return [Array<AttributeSets::FrequencyRange>]
855
- # @see EsyncFrequencySupported
856
- def esync_frequency_supported; self[:"esync_frequency_supported"].map(&:value); end
857
- # A ratio of high to low state of a SYNC signal pulse embedded
858
- # into base clock frequency. Value is in percents.
859
- # @rbs return: ::Integer
860
- # @return [Integer]
861
- # @see EsyncPulse
862
- def esync_pulse; self[:"esync_pulse"]&.value; end
863
- # Capable pin provides list of pins that can be bound to create a
864
- # reference-sync pin pair.
865
- # @rbs return: ::Array[AttributeSets::ReferenceSync]
866
- # @return [Array<AttributeSets::ReferenceSync>]
867
- # @see ReferenceSync
868
- def reference_sync; self[:"reference_sync"].map(&:value); end
869
- # Granularity of phase adjustment, in picoseconds. The value of
870
- # phase adjustment must be a multiple of this granularity.
871
- # @rbs return: ::Integer
872
- # @return [Integer]
873
- # @see PhaseAdjustGran
874
- def phase_adjust_gran; self[:"phase_adjust_gran"]&.value; end
875
- # The FFO (Fractional Frequency Offset) of the pin.
876
- # At top level this represents the RX vs TX symbol rate
877
- # offset on the media associated with the pin. Inside
878
- # the pin-parent-device nest it represents the frequency
879
- # offset between the pin and its parent DPLL device.
880
- # Value is in PPT (parts per trillion, 10^-12).
881
- # This is a higher-precision version of
882
- # fractional-frequency-offset.
883
- # @rbs return: ::Integer
884
- # @return [Integer]
885
- # @see FractionalFrequencyOffsetPpt
886
- def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]&.value; end
887
- # The measured frequency of the input pin in millihertz (mHz).
888
- # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
889
- # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
890
- # of a measured frequency value.
891
- # Value of (DPLL_A_PIN_MEASURED_FREQUENCY %
892
- # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is a fractional part
893
- # of a measured frequency value.
894
- # @rbs return: ::Integer
895
- # @return [Integer]
896
- # @see MeasuredFrequency
897
- def measured_frequency; self[:"measured_frequency"]&.value; end
898
- # Operational state of the pin with respect to its parent DPLL
899
- # device. Unlike state (which reflects the administrative intent),
900
- # operstate reflects the actual hardware status.
901
- #
902
- #
903
- # Known enum values are defined in {Enums::PinOperstate}.
904
- # @rbs return: ::Integer
905
- # @return [Integer]
906
- # @see Operstate
907
- def operstate; self[:"operstate"]&.value; end
908
- class << self
909
- # Looks up Attribute class by name.
910
- # @rbs name: Symbol
911
- # @rbs return: Attribute
912
- # @param [Symbol] name
913
- # @return [Attribute]
914
- def by_name(name); BY_NAME.fetch(name); end
915
- # Looks up Attribute class by type value.
916
- # @rbs type: Integer
917
- # @rbs return: Attribute
918
- # @param [Integer] type
919
- # @return [Attribute]
920
- def by_type(type); BY_TYPE.fetch(type); end
280
+ end
281
+ class Pin < ::Nl::AttributeSet
282
+ module Definitions
283
+ # @rbs return: ::Integer
284
+ # @return [Integer]
285
+ def id; self[:"id"]; end
286
+ # @rbs return: ::Integer
287
+ # @return [Integer]
288
+ def parent_id; self[:"parent_id"]; end
289
+ # @rbs return: ::String
290
+ # @return [String]
291
+ def module_name; self[:"module_name"]; end
292
+ # @rbs return: ::Integer
293
+ # @return [Integer]
294
+ def clock_id; self[:"clock_id"]; end
295
+ # @rbs return: ::String
296
+ # @return [String]
297
+ def board_label; self[:"board_label"]; end
298
+ # @rbs return: ::String
299
+ # @return [String]
300
+ def panel_label; self[:"panel_label"]; end
301
+ # @rbs return: ::String
302
+ # @return [String]
303
+ def package_label; self[:"package_label"]; end
304
+ # Known enum values are defined in {Enums::PinType}.
305
+ # @rbs return: ::Integer
306
+ # @return [Integer]
307
+ def type; self[:"type"]; end
308
+ # Known enum values are defined in {Enums::PinDirection}.
309
+ # @rbs return: ::Integer
310
+ # @return [Integer]
311
+ def direction; self[:"direction"]; end
312
+ # @rbs return: ::Integer
313
+ # @return [Integer]
314
+ def frequency; self[:"frequency"]; end
315
+ # @rbs return: ::Array[AttributeSets::FrequencyRange]
316
+ # @return [Array<AttributeSets::FrequencyRange>]
317
+ def frequency_supported; self[:"frequency_supported"]; end
318
+ # @rbs return: ::Integer
319
+ # @return [Integer]
320
+ def frequency_min; self[:"frequency_min"]; end
321
+ # @rbs return: ::Integer
322
+ # @return [Integer]
323
+ def frequency_max; self[:"frequency_max"]; end
324
+ # @rbs return: ::Integer
325
+ # @return [Integer]
326
+ def prio; self[:"prio"]; end
327
+ # Known enum values are defined in {Enums::PinState}.
328
+ # @rbs return: ::Integer
329
+ # @return [Integer]
330
+ def state; self[:"state"]; end
331
+ # Known flags are defined in {Flags::PinCapabilities}.
332
+ # @rbs return: ::Integer
333
+ # @return [Integer]
334
+ def capabilities; self[:"capabilities"]; end
335
+ # @rbs return: ::Array[AttributeSets::PinParentDevice]
336
+ # @return [Array<AttributeSets::PinParentDevice>]
337
+ def parent_device; self[:"parent_device"]; end
338
+ # @rbs return: ::Array[AttributeSets::PinParentPin]
339
+ # @return [Array<AttributeSets::PinParentPin>]
340
+ def parent_pin; self[:"parent_pin"]; end
341
+ # @rbs return: ::Integer
342
+ # @return [Integer]
343
+ def phase_adjust_min; self[:"phase_adjust_min"]; end
344
+ # @rbs return: ::Integer
345
+ # @return [Integer]
346
+ def phase_adjust_max; self[:"phase_adjust_max"]; end
347
+ # @rbs return: ::Integer
348
+ # @return [Integer]
349
+ def phase_adjust; self[:"phase_adjust"]; end
350
+ # @rbs return: ::Integer
351
+ # @return [Integer]
352
+ def phase_offset; self[:"phase_offset"]; end
353
+ # The FFO (Fractional Frequency Offset) of the pin.
354
+ # At top level this represents the RX vs TX symbol rate
355
+ # offset on the media associated with the pin. Inside
356
+ # the pin-parent-device nest it represents the frequency
357
+ # offset between the pin and its parent DPLL device.
358
+ # For pins of type PIN_TYPE_INT_NCO this represents
359
+ # the DPLL's current output frequency offset from its
360
+ # nominal frequency.
361
+ # Value is in PPM (parts per million).
362
+ # This is a lower-precision version of
363
+ # fractional-frequency-offset-ppt.
364
+ # @rbs return: ::Integer
365
+ # @return [Integer]
366
+ def fractional_frequency_offset; self[:"fractional_frequency_offset"]; end
367
+ # Frequency of Embedded SYNC signal. If provided, the pin is configured
368
+ # with a SYNC signal embedded into its base clock frequency.
369
+ # @rbs return: ::Integer
370
+ # @return [Integer]
371
+ def esync_frequency; self[:"esync_frequency"]; end
372
+ # If provided a pin is capable of embedding a SYNC signal (within given
373
+ # range) into its base frequency signal.
374
+ # @rbs return: ::Array[AttributeSets::FrequencyRange]
375
+ # @return [Array<AttributeSets::FrequencyRange>]
376
+ def esync_frequency_supported; self[:"esync_frequency_supported"]; end
377
+ # A ratio of high to low state of a SYNC signal pulse embedded
378
+ # into base clock frequency. Value is in percents.
379
+ # @rbs return: ::Integer
380
+ # @return [Integer]
381
+ def esync_pulse; self[:"esync_pulse"]; end
382
+ # Capable pin provides list of pins that can be bound to create a
383
+ # reference-sync pin pair.
384
+ # @rbs return: ::Array[AttributeSets::ReferenceSync]
385
+ # @return [Array<AttributeSets::ReferenceSync>]
386
+ def reference_sync; self[:"reference_sync"]; end
387
+ # Granularity of phase adjustment, in picoseconds. The value of
388
+ # phase adjustment must be a multiple of this granularity.
389
+ # @rbs return: ::Integer
390
+ # @return [Integer]
391
+ def phase_adjust_gran; self[:"phase_adjust_gran"]; end
392
+ # The FFO (Fractional Frequency Offset) of the pin.
393
+ # At top level this represents the RX vs TX symbol rate
394
+ # offset on the media associated with the pin. Inside
395
+ # the pin-parent-device nest it represents the frequency
396
+ # offset between the pin and its parent DPLL device.
397
+ # For pins of type PIN_TYPE_INT_NCO this represents
398
+ # the DPLL's current output frequency offset from its
399
+ # nominal frequency.
400
+ # Value is in PPT (parts per trillion, 10^-12).
401
+ # This is a higher-precision version of
402
+ # fractional-frequency-offset.
403
+ # @rbs return: ::Integer
404
+ # @return [Integer]
405
+ def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]; end
406
+ # The measured frequency of the input pin in millihertz (mHz).
407
+ # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
408
+ # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
409
+ # of a measured frequency value.
410
+ # Value of (DPLL_A_PIN_MEASURED_FREQUENCY %
411
+ # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is a fractional part
412
+ # of a measured frequency value.
413
+ # @rbs return: ::Integer
414
+ # @return [Integer]
415
+ def measured_frequency; self[:"measured_frequency"]; end
416
+ # Operational state of the pin with respect to its parent DPLL
417
+ # device. Unlike state (which reflects the administrative intent),
418
+ # operstate reflects the actual hardware status.
419
+ #
420
+ #
421
+ # Known enum values are defined in {Enums::PinOperstate}.
422
+ # @rbs return: ::Integer
423
+ # @return [Integer]
424
+ def operstate; self[:"operstate"]; end
425
+ end
426
+ include Definitions
427
+ # Decodes attributes from the decoder into a new attribute set.
428
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
429
+ def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
430
+ super(decoder, BY_TYPE, 0, external_selectors)
921
431
  end
922
432
  end
923
433
  class PinParentDevice < ::Nl::AttributeSet
924
- # Abstract class
925
- class Attribute < ::Nl::AttributeSet::Attribute
926
- end
927
- class ParentId < Attribute
928
- TYPE = 2
929
- NAME = :"parent_id"
930
- # @private
931
- ORDER = 0
932
- # @private
933
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
934
- end
935
- # Known enum values are defined in {Enums::PinDirection}.
936
- class Direction < Attribute
937
- TYPE = 10
938
- NAME = :"direction"
939
- # @private
940
- ORDER = 1
941
- # @private
942
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
943
- end
944
- class Prio < Attribute
945
- TYPE = 15
946
- NAME = :"prio"
947
- # @private
948
- ORDER = 2
949
- # @private
950
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
951
- end
952
- # Known enum values are defined in {Enums::PinState}.
953
- class State < Attribute
954
- TYPE = 16
955
- NAME = :"state"
956
- # @private
957
- ORDER = 3
958
- # @private
959
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
960
- end
961
- # Operational state of the pin with respect to its parent DPLL
962
- # device. Unlike state (which reflects the administrative intent),
963
- # operstate reflects the actual hardware status.
964
- #
965
- #
966
- # Known enum values are defined in {Enums::PinOperstate}.
967
- class Operstate < Attribute
968
- TYPE = 32
969
- NAME = :"operstate"
970
- # @private
971
- ORDER = 4
972
- # @private
973
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
974
- end
975
- class PhaseOffset < Attribute
976
- TYPE = 23
977
- NAME = :"phase_offset"
978
- # @private
979
- ORDER = 5
980
- # @private
981
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S64, check: nil)
982
- end
983
- # The FFO (Fractional Frequency Offset) of the pin.
984
- # At top level this represents the RX vs TX symbol rate
985
- # offset on the media associated with the pin. Inside
986
- # the pin-parent-device nest it represents the frequency
987
- # offset between the pin and its parent DPLL device.
988
- # Value is in PPM (parts per million).
989
- # This is a lower-precision version of
990
- # fractional-frequency-offset-ppt.
991
- class FractionalFrequencyOffset < Attribute
992
- TYPE = 24
993
- NAME = :"fractional_frequency_offset"
994
- # @private
995
- ORDER = 6
996
- # @private
997
- DATATYPE = ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true, check: nil)
998
- end
999
- # The FFO (Fractional Frequency Offset) of the pin.
1000
- # At top level this represents the RX vs TX symbol rate
1001
- # offset on the media associated with the pin. Inside
1002
- # the pin-parent-device nest it represents the frequency
1003
- # offset between the pin and its parent DPLL device.
1004
- # Value is in PPT (parts per trillion, 10^-12).
1005
- # This is a higher-precision version of
1006
- # fractional-frequency-offset.
1007
- class FractionalFrequencyOffsetPpt < Attribute
1008
- TYPE = 30
1009
- NAME = :"fractional_frequency_offset_ppt"
1010
- # @private
1011
- ORDER = 7
1012
- # @private
1013
- DATATYPE = ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true, check: nil)
1014
- end
1015
- # @private
1016
- BY_NAME = Ractor.make_shareable({:"parent_id" => ParentId, :"direction" => Direction, :"prio" => Prio, :"state" => State, :"operstate" => Operstate, :"phase_offset" => PhaseOffset, :"fractional_frequency_offset" => FractionalFrequencyOffset, :"fractional_frequency_offset_ppt" => FractionalFrequencyOffsetPpt}) #: Hash[::Symbol, Attribute]
1017
- # @private
1018
- BY_TYPE = Ractor.make_shareable({2 => ParentId, 10 => Direction, 15 => Prio, 16 => State, 32 => Operstate, 23 => PhaseOffset, 24 => FractionalFrequencyOffset, 30 => FractionalFrequencyOffsetPpt}) #: Hash[::Integer, Attribute]
1019
- # @rbs return: ::Integer
1020
- # @return [Integer]
1021
- # @see ParentId
1022
- def parent_id; self[:"parent_id"]&.value; end
1023
- # Known enum values are defined in {Enums::PinDirection}.
1024
- # @rbs return: ::Integer
1025
- # @return [Integer]
1026
- # @see Direction
1027
- def direction; self[:"direction"]&.value; end
1028
- # @rbs return: ::Integer
1029
- # @return [Integer]
1030
- # @see Prio
1031
- def prio; self[:"prio"]&.value; end
1032
- # Known enum values are defined in {Enums::PinState}.
1033
- # @rbs return: ::Integer
1034
- # @return [Integer]
1035
- # @see State
1036
- def state; self[:"state"]&.value; end
1037
- # Operational state of the pin with respect to its parent DPLL
1038
- # device. Unlike state (which reflects the administrative intent),
1039
- # operstate reflects the actual hardware status.
1040
- #
1041
- #
1042
- # Known enum values are defined in {Enums::PinOperstate}.
1043
- # @rbs return: ::Integer
1044
- # @return [Integer]
1045
- # @see Operstate
1046
- def operstate; self[:"operstate"]&.value; end
1047
- # @rbs return: ::Integer
1048
- # @return [Integer]
1049
- # @see PhaseOffset
1050
- def phase_offset; self[:"phase_offset"]&.value; end
1051
- # The FFO (Fractional Frequency Offset) of the pin.
1052
- # At top level this represents the RX vs TX symbol rate
1053
- # offset on the media associated with the pin. Inside
1054
- # the pin-parent-device nest it represents the frequency
1055
- # offset between the pin and its parent DPLL device.
1056
- # Value is in PPM (parts per million).
1057
- # This is a lower-precision version of
1058
- # fractional-frequency-offset-ppt.
1059
- # @rbs return: ::Integer
1060
- # @return [Integer]
1061
- # @see FractionalFrequencyOffset
1062
- def fractional_frequency_offset; self[:"fractional_frequency_offset"]&.value; end
1063
- # The FFO (Fractional Frequency Offset) of the pin.
1064
- # At top level this represents the RX vs TX symbol rate
1065
- # offset on the media associated with the pin. Inside
1066
- # the pin-parent-device nest it represents the frequency
1067
- # offset between the pin and its parent DPLL device.
1068
- # Value is in PPT (parts per trillion, 10^-12).
1069
- # This is a higher-precision version of
1070
- # fractional-frequency-offset.
1071
- # @rbs return: ::Integer
1072
- # @return [Integer]
1073
- # @see FractionalFrequencyOffsetPpt
1074
- def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]&.value; end
1075
- class << self
1076
- # Looks up Attribute class by name.
1077
- # @rbs name: Symbol
1078
- # @rbs return: Attribute
1079
- # @param [Symbol] name
1080
- # @return [Attribute]
1081
- def by_name(name); BY_NAME.fetch(name); end
1082
- # Looks up Attribute class by type value.
1083
- # @rbs type: Integer
1084
- # @rbs return: Attribute
1085
- # @param [Integer] type
1086
- # @return [Attribute]
1087
- def by_type(type); BY_TYPE.fetch(type); end
434
+ module Definitions
435
+ # @rbs return: ::Integer
436
+ # @return [Integer]
437
+ def parent_id; self[:"parent_id"]; end
438
+ # Known enum values are defined in {Enums::PinDirection}.
439
+ # @rbs return: ::Integer
440
+ # @return [Integer]
441
+ def direction; self[:"direction"]; end
442
+ # @rbs return: ::Integer
443
+ # @return [Integer]
444
+ def prio; self[:"prio"]; end
445
+ # Known enum values are defined in {Enums::PinState}.
446
+ # @rbs return: ::Integer
447
+ # @return [Integer]
448
+ def state; self[:"state"]; end
449
+ # Operational state of the pin with respect to its parent DPLL
450
+ # device. Unlike state (which reflects the administrative intent),
451
+ # operstate reflects the actual hardware status.
452
+ #
453
+ #
454
+ # Known enum values are defined in {Enums::PinOperstate}.
455
+ # @rbs return: ::Integer
456
+ # @return [Integer]
457
+ def operstate; self[:"operstate"]; end
458
+ # @rbs return: ::Integer
459
+ # @return [Integer]
460
+ def phase_offset; self[:"phase_offset"]; end
461
+ # The FFO (Fractional Frequency Offset) of the pin.
462
+ # At top level this represents the RX vs TX symbol rate
463
+ # offset on the media associated with the pin. Inside
464
+ # the pin-parent-device nest it represents the frequency
465
+ # offset between the pin and its parent DPLL device.
466
+ # For pins of type PIN_TYPE_INT_NCO this represents
467
+ # the DPLL's current output frequency offset from its
468
+ # nominal frequency.
469
+ # Value is in PPM (parts per million).
470
+ # This is a lower-precision version of
471
+ # fractional-frequency-offset-ppt.
472
+ # @rbs return: ::Integer
473
+ # @return [Integer]
474
+ def fractional_frequency_offset; self[:"fractional_frequency_offset"]; end
475
+ # The FFO (Fractional Frequency Offset) of the pin.
476
+ # At top level this represents the RX vs TX symbol rate
477
+ # offset on the media associated with the pin. Inside
478
+ # the pin-parent-device nest it represents the frequency
479
+ # offset between the pin and its parent DPLL device.
480
+ # For pins of type PIN_TYPE_INT_NCO this represents
481
+ # the DPLL's current output frequency offset from its
482
+ # nominal frequency.
483
+ # Value is in PPT (parts per trillion, 10^-12).
484
+ # This is a higher-precision version of
485
+ # fractional-frequency-offset.
486
+ # @rbs return: ::Integer
487
+ # @return [Integer]
488
+ def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]; end
489
+ end
490
+ include Definitions
491
+ # Decodes attributes from the decoder into a new attribute set.
492
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
493
+ def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
494
+ super(decoder, BY_TYPE, 0, external_selectors)
1088
495
  end
1089
496
  end
1090
497
  class PinParentPin < ::Nl::AttributeSet
1091
- # Abstract class
1092
- class Attribute < ::Nl::AttributeSet::Attribute
498
+ module Definitions
499
+ # @rbs return: ::Integer
500
+ # @return [Integer]
501
+ def parent_id; self[:"parent_id"]; end
502
+ # Known enum values are defined in {Enums::PinState}.
503
+ # @rbs return: ::Integer
504
+ # @return [Integer]
505
+ def state; self[:"state"]; end
506
+ end
507
+ include Definitions
508
+ # Decodes attributes from the decoder into a new attribute set.
509
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
510
+ def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
511
+ super(decoder, BY_TYPE, 0, external_selectors)
1093
512
  end
1094
- class ParentId < Attribute
1095
- TYPE = 2
1096
- NAME = :"parent_id"
1097
- # @private
1098
- ORDER = 0
1099
- # @private
1100
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
513
+ end
514
+ class FrequencyRange < ::Nl::AttributeSet
515
+ module Definitions
516
+ # @rbs return: ::Integer
517
+ # @return [Integer]
518
+ def frequency_min; self[:"frequency_min"]; end
519
+ # @rbs return: ::Integer
520
+ # @return [Integer]
521
+ def frequency_max; self[:"frequency_max"]; end
522
+ end
523
+ include Definitions
524
+ # Decodes attributes from the decoder into a new attribute set.
525
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
526
+ def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
527
+ super(decoder, BY_TYPE, 0, external_selectors)
1101
528
  end
1102
- # Known enum values are defined in {Enums::PinState}.
1103
- class State < Attribute
1104
- TYPE = 16
1105
- NAME = :"state"
1106
- # @private
1107
- ORDER = 1
1108
- # @private
1109
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
529
+ end
530
+ class ReferenceSync < ::Nl::AttributeSet
531
+ module Definitions
532
+ # @rbs return: ::Integer
533
+ # @return [Integer]
534
+ def id; self[:"id"]; end
535
+ # Known enum values are defined in {Enums::PinState}.
536
+ # @rbs return: ::Integer
537
+ # @return [Integer]
538
+ def state; self[:"state"]; end
539
+ end
540
+ include Definitions
541
+ # Decodes attributes from the decoder into a new attribute set.
542
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
543
+ def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
544
+ super(decoder, BY_TYPE, 0, external_selectors)
1110
545
  end
1111
- # @private
1112
- BY_NAME = Ractor.make_shareable({:"parent_id" => ParentId, :"state" => State}) #: Hash[::Symbol, Attribute]
1113
- # @private
1114
- BY_TYPE = Ractor.make_shareable({2 => ParentId, 16 => State}) #: Hash[::Integer, Attribute]
1115
- # @rbs return: ::Integer
1116
- # @return [Integer]
1117
- # @see ParentId
1118
- def parent_id; self[:"parent_id"]&.value; end
1119
- # Known enum values are defined in {Enums::PinState}.
1120
- # @rbs return: ::Integer
1121
- # @return [Integer]
1122
- # @see State
1123
- def state; self[:"state"]&.value; end
1124
- class << self
1125
- # Looks up Attribute class by name.
1126
- # @rbs name: Symbol
1127
- # @rbs return: Attribute
1128
- # @param [Symbol] name
1129
- # @return [Attribute]
1130
- def by_name(name); BY_NAME.fetch(name); end
1131
- # Looks up Attribute class by type value.
1132
- # @rbs type: Integer
1133
- # @rbs return: Attribute
1134
- # @param [Integer] type
1135
- # @return [Attribute]
1136
- def by_type(type); BY_TYPE.fetch(type); end
546
+ end
547
+ end
548
+ module AttributeSets
549
+ class Dpll
550
+ module Definitions
551
+ # @private
552
+ BY_TYPE = ::Array.new(15).tap do |definitions|
553
+ definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
554
+ definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"module_name", datatype: ::Nl::DataTypes::String.new, multi: false, order: 1, selector_slot: nil)
555
+ definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"pad", datatype: ::Nl::DataTypes::Pad.new(), multi: false, order: 2, selector_slot: nil)
556
+ definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"clock_id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 3, selector_slot: nil)
557
+ definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"mode", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 4, selector_slot: nil)
558
+ definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"mode_supported", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: true, order: 5, selector_slot: nil)
559
+ definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"lock_status", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 6, selector_slot: nil)
560
+ definitions[8] = ::Nl::AttributeSet::Definition.new(id: 8, name: :"temp", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S32].new, multi: false, order: 7, selector_slot: nil)
561
+ definitions[9] = ::Nl::AttributeSet::Definition.new(id: 9, name: :"type", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 8, selector_slot: nil)
562
+ definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"lock_status_error", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 9, selector_slot: nil)
563
+ definitions[11] = ::Nl::AttributeSet::Definition.new(id: 11, name: :"clock_quality_level", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: true, order: 10, selector_slot: nil)
564
+ definitions[12] = ::Nl::AttributeSet::Definition.new(id: 12, name: :"phase_offset_monitor", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 11, selector_slot: nil)
565
+ definitions[13] = ::Nl::AttributeSet::Definition.new(id: 13, name: :"phase_offset_avg_factor", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 12, selector_slot: nil)
566
+ definitions[14] = ::Nl::AttributeSet::Definition.new(id: 14, name: :"frequency_monitor", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 13, selector_slot: nil)
567
+ end.freeze #: Array[::Nl::AttributeSet::Definition?]
568
+ Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
569
+ # @private
570
+ BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
1137
571
  end
1138
572
  end
1139
- class FrequencyRange < ::Nl::AttributeSet
1140
- # Abstract class
1141
- class Attribute < ::Nl::AttributeSet::Attribute
573
+ class Pin
574
+ module Definitions
575
+ # @private
576
+ BY_TYPE = ::Array.new(33).tap do |definitions|
577
+ definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
578
+ definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"parent_id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
579
+ definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"module_name", datatype: ::Nl::DataTypes::String.new, multi: false, order: 2, selector_slot: nil)
580
+ definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"pad", datatype: ::Nl::DataTypes::Pad.new(), multi: false, order: 3, selector_slot: nil)
581
+ definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"clock_id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 4, selector_slot: nil)
582
+ definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"board_label", datatype: ::Nl::DataTypes::String.new, multi: false, order: 5, selector_slot: nil)
583
+ definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"panel_label", datatype: ::Nl::DataTypes::String.new, multi: false, order: 6, selector_slot: nil)
584
+ definitions[8] = ::Nl::AttributeSet::Definition.new(id: 8, name: :"package_label", datatype: ::Nl::DataTypes::String.new, multi: false, order: 7, selector_slot: nil)
585
+ definitions[9] = ::Nl::AttributeSet::Definition.new(id: 9, name: :"type", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 8, selector_slot: nil)
586
+ definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"direction", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 9, selector_slot: nil)
587
+ definitions[11] = ::Nl::AttributeSet::Definition.new(id: 11, name: :"frequency", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 10, selector_slot: nil)
588
+ definitions[12] = ::Nl::AttributeSet::Definition.new(id: 12, name: :"frequency_supported", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::FrequencyRange, selector_bindings: []), multi: true, order: 11, selector_slot: nil)
589
+ definitions[13] = ::Nl::AttributeSet::Definition.new(id: 13, name: :"frequency_min", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 12, selector_slot: nil)
590
+ definitions[14] = ::Nl::AttributeSet::Definition.new(id: 14, name: :"frequency_max", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 13, selector_slot: nil)
591
+ definitions[15] = ::Nl::AttributeSet::Definition.new(id: 15, name: :"prio", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 14, selector_slot: nil)
592
+ definitions[16] = ::Nl::AttributeSet::Definition.new(id: 16, name: :"state", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 15, selector_slot: nil)
593
+ definitions[17] = ::Nl::AttributeSet::Definition.new(id: 17, name: :"capabilities", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 16, selector_slot: nil)
594
+ definitions[18] = ::Nl::AttributeSet::Definition.new(id: 18, name: :"parent_device", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::PinParentDevice, selector_bindings: []), multi: true, order: 17, selector_slot: nil)
595
+ definitions[19] = ::Nl::AttributeSet::Definition.new(id: 19, name: :"parent_pin", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::PinParentPin, selector_bindings: []), multi: true, order: 18, selector_slot: nil)
596
+ definitions[20] = ::Nl::AttributeSet::Definition.new(id: 20, name: :"phase_adjust_min", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S32].new, multi: false, order: 19, selector_slot: nil)
597
+ definitions[21] = ::Nl::AttributeSet::Definition.new(id: 21, name: :"phase_adjust_max", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S32].new, multi: false, order: 20, selector_slot: nil)
598
+ definitions[22] = ::Nl::AttributeSet::Definition.new(id: 22, name: :"phase_adjust", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S32].new, multi: false, order: 21, selector_slot: nil)
599
+ definitions[23] = ::Nl::AttributeSet::Definition.new(id: 23, name: :"phase_offset", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S64].new, multi: false, order: 22, selector_slot: nil)
600
+ definitions[24] = ::Nl::AttributeSet::Definition.new(id: 24, name: :"fractional_frequency_offset", datatype: ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true), multi: false, order: 23, selector_slot: nil)
601
+ definitions[25] = ::Nl::AttributeSet::Definition.new(id: 25, name: :"esync_frequency", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 24, selector_slot: nil)
602
+ definitions[26] = ::Nl::AttributeSet::Definition.new(id: 26, name: :"esync_frequency_supported", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::FrequencyRange, selector_bindings: []), multi: true, order: 25, selector_slot: nil)
603
+ definitions[27] = ::Nl::AttributeSet::Definition.new(id: 27, name: :"esync_pulse", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 26, selector_slot: nil)
604
+ definitions[28] = ::Nl::AttributeSet::Definition.new(id: 28, name: :"reference_sync", datatype: ::Nl::DataTypes::NestedAttributes.new(AttributeSets::ReferenceSync, selector_bindings: []), multi: true, order: 27, selector_slot: nil)
605
+ definitions[29] = ::Nl::AttributeSet::Definition.new(id: 29, name: :"phase_adjust_gran", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 28, selector_slot: nil)
606
+ definitions[30] = ::Nl::AttributeSet::Definition.new(id: 30, name: :"fractional_frequency_offset_ppt", datatype: ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true), multi: false, order: 29, selector_slot: nil)
607
+ definitions[31] = ::Nl::AttributeSet::Definition.new(id: 31, name: :"measured_frequency", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 30, selector_slot: nil)
608
+ definitions[32] = ::Nl::AttributeSet::Definition.new(id: 32, name: :"operstate", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 31, selector_slot: nil)
609
+ end.freeze #: Array[::Nl::AttributeSet::Definition?]
610
+ Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
611
+ # @private
612
+ BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
1142
613
  end
1143
- class FrequencyMin < Attribute
1144
- TYPE = 13
1145
- NAME = :"frequency_min"
1146
- # @private
1147
- ORDER = 0
1148
- # @private
1149
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
614
+ end
615
+ class PinParentDevice
616
+ module Definitions
617
+ # @private
618
+ BY_TYPE = ::Array.new(33).tap do |definitions|
619
+ definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"parent_id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
620
+ definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"direction", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
621
+ definitions[15] = ::Nl::AttributeSet::Definition.new(id: 15, name: :"prio", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 2, selector_slot: nil)
622
+ definitions[16] = ::Nl::AttributeSet::Definition.new(id: 16, name: :"state", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 3, selector_slot: nil)
623
+ definitions[32] = ::Nl::AttributeSet::Definition.new(id: 32, name: :"operstate", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 4, selector_slot: nil)
624
+ definitions[23] = ::Nl::AttributeSet::Definition.new(id: 23, name: :"phase_offset", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::S64].new, multi: false, order: 5, selector_slot: nil)
625
+ definitions[24] = ::Nl::AttributeSet::Definition.new(id: 24, name: :"fractional_frequency_offset", datatype: ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true), multi: false, order: 6, selector_slot: nil)
626
+ definitions[30] = ::Nl::AttributeSet::Definition.new(id: 30, name: :"fractional_frequency_offset_ppt", datatype: ::Nl::DataTypes::VariableInteger.new(::Nl::Endian::Host, signed: true), multi: false, order: 7, selector_slot: nil)
627
+ end.freeze #: Array[::Nl::AttributeSet::Definition?]
628
+ Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
629
+ # @private
630
+ BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
1150
631
  end
1151
- class FrequencyMax < Attribute
1152
- TYPE = 14
1153
- NAME = :"frequency_max"
632
+ end
633
+ class PinParentPin
634
+ module Definitions
1154
635
  # @private
1155
- ORDER = 1
636
+ BY_TYPE = ::Array.new(17).tap do |definitions|
637
+ definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"parent_id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
638
+ definitions[16] = ::Nl::AttributeSet::Definition.new(id: 16, name: :"state", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
639
+ end.freeze #: Array[::Nl::AttributeSet::Definition?]
640
+ Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
1156
641
  # @private
1157
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
1158
- end
1159
- # @private
1160
- BY_NAME = Ractor.make_shareable({:"frequency_min" => FrequencyMin, :"frequency_max" => FrequencyMax}) #: Hash[::Symbol, Attribute]
1161
- # @private
1162
- BY_TYPE = Ractor.make_shareable({13 => FrequencyMin, 14 => FrequencyMax}) #: Hash[::Integer, Attribute]
1163
- # @rbs return: ::Integer
1164
- # @return [Integer]
1165
- # @see FrequencyMin
1166
- def frequency_min; self[:"frequency_min"]&.value; end
1167
- # @rbs return: ::Integer
1168
- # @return [Integer]
1169
- # @see FrequencyMax
1170
- def frequency_max; self[:"frequency_max"]&.value; end
1171
- class << self
1172
- # Looks up Attribute class by name.
1173
- # @rbs name: Symbol
1174
- # @rbs return: Attribute
1175
- # @param [Symbol] name
1176
- # @return [Attribute]
1177
- def by_name(name); BY_NAME.fetch(name); end
1178
- # Looks up Attribute class by type value.
1179
- # @rbs type: Integer
1180
- # @rbs return: Attribute
1181
- # @param [Integer] type
1182
- # @return [Attribute]
1183
- def by_type(type); BY_TYPE.fetch(type); end
642
+ BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
1184
643
  end
1185
644
  end
1186
- class ReferenceSync < ::Nl::AttributeSet
1187
- # Abstract class
1188
- class Attribute < ::Nl::AttributeSet::Attribute
1189
- end
1190
- class Id < Attribute
1191
- TYPE = 1
1192
- NAME = :"id"
645
+ class FrequencyRange
646
+ module Definitions
1193
647
  # @private
1194
- ORDER = 0
648
+ BY_TYPE = ::Array.new(15).tap do |definitions|
649
+ definitions[13] = ::Nl::AttributeSet::Definition.new(id: 13, name: :"frequency_min", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 0, selector_slot: nil)
650
+ definitions[14] = ::Nl::AttributeSet::Definition.new(id: 14, name: :"frequency_max", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U64].new, multi: false, order: 1, selector_slot: nil)
651
+ end.freeze #: Array[::Nl::AttributeSet::Definition?]
652
+ Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
1195
653
  # @private
1196
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
654
+ BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
1197
655
  end
1198
- # Known enum values are defined in {Enums::PinState}.
1199
- class State < Attribute
1200
- TYPE = 16
1201
- NAME = :"state"
656
+ end
657
+ class ReferenceSync
658
+ module Definitions
1202
659
  # @private
1203
- ORDER = 1
660
+ BY_TYPE = ::Array.new(17).tap do |definitions|
661
+ definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"id", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
662
+ definitions[16] = ::Nl::AttributeSet::Definition.new(id: 16, name: :"state", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 1, selector_slot: nil)
663
+ end.freeze #: Array[::Nl::AttributeSet::Definition?]
664
+ Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
1204
665
  # @private
1205
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
1206
- end
1207
- # @private
1208
- BY_NAME = Ractor.make_shareable({:"id" => Id, :"state" => State}) #: Hash[::Symbol, Attribute]
1209
- # @private
1210
- BY_TYPE = Ractor.make_shareable({1 => Id, 16 => State}) #: Hash[::Integer, Attribute]
1211
- # @rbs return: ::Integer
1212
- # @return [Integer]
1213
- # @see Id
1214
- def id; self[:"id"]&.value; end
1215
- # Known enum values are defined in {Enums::PinState}.
1216
- # @rbs return: ::Integer
1217
- # @return [Integer]
1218
- # @see State
1219
- def state; self[:"state"]&.value; end
1220
- class << self
1221
- # Looks up Attribute class by name.
1222
- # @rbs name: Symbol
1223
- # @rbs return: Attribute
1224
- # @param [Symbol] name
1225
- # @return [Attribute]
1226
- def by_name(name); BY_NAME.fetch(name); end
1227
- # Looks up Attribute class by type value.
1228
- # @rbs type: Integer
1229
- # @rbs return: Attribute
1230
- # @param [Integer] type
1231
- # @return [Attribute]
1232
- def by_type(type); BY_TYPE.fetch(type); end
666
+ BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
1233
667
  end
1234
668
  end
1235
- # @private
1236
- Pin::FrequencySupported::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::FrequencyRange, selector_bindings: Ractor.make_shareable([]))
1237
- # @private
1238
- Pin::ParentDevice::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::PinParentDevice, selector_bindings: Ractor.make_shareable([]))
1239
- # @private
1240
- Pin::ParentPin::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::PinParentPin, selector_bindings: Ractor.make_shareable([]))
1241
- # @private
1242
- Pin::EsyncFrequencySupported::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::FrequencyRange, selector_bindings: Ractor.make_shareable([]))
1243
- # @private
1244
- Pin::ReferenceSync::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::ReferenceSync, selector_bindings: Ractor.make_shareable([]))
1245
669
  end
1246
670
  module Messages
1247
671
  # Get id of dpll device that matches given attributes
1248
672
  #
1249
673
  #
1250
674
  # Requires CAP_NET_ADMIN in the initial user namespace.
1251
- class DoDeviceIdGetRequest < ::Nl::Genl::Message
675
+ class DoDeviceIdGetRequest < ::Nl::Message
1252
676
  TYPE = 1
1253
677
  FIXED_HEADER = nil
1254
678
  ATTRIBUTE_SET = AttributeSets::Dpll
1255
- ATTRIBUTES = Ractor.make_shareable(%i[module_name clock_id type])
679
+ ATTRIBUTES = %i[module_name clock_id type].freeze
680
+ include ATTRIBUTE_SET::Definitions
681
+ def initialize(attributes = [])
682
+ @attributes = attributes
683
+ end
684
+ # @private
685
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
686
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
687
+ new(
688
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
689
+ )
690
+ end
691
+ # Decodes a message payload from the decoder into a new instance.
692
+ # @rbs (::Nl::Decoder decoder) -> instance
693
+ def self.decode(decoder)
694
+ new(decode_attributes(decoder, BY_TYPE, 0))
695
+ end
696
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
697
+ encode_attributes(encoder, external_selectors:)
698
+ end
1256
699
  # @rbs return: ::String
1257
700
  # @return [String]
1258
- # @see AttributeSets::Dpll::ModuleName
1259
- def module_name; attributes[:"module_name"]&.value; end
701
+ def module_name; self[:"module_name"]; end
1260
702
  # @rbs return: ::Integer
1261
703
  # @return [Integer]
1262
- # @see AttributeSets::Dpll::ClockId
1263
- def clock_id; attributes[:"clock_id"]&.value; end
704
+ def clock_id; self[:"clock_id"]; end
1264
705
  # Known enum values are defined in {Enums::Type}.
1265
706
  # @rbs return: ::Integer
1266
707
  # @return [Integer]
1267
- # @see AttributeSets::Dpll::Type
1268
- def type; attributes[:"type"]&.value; end
708
+ def type; self[:"type"]; end
1269
709
  end
1270
710
  # Get id of dpll device that matches given attributes
1271
711
  #
1272
712
  #
1273
713
  # Requires CAP_NET_ADMIN in the initial user namespace.
1274
- class DoDeviceIdGetReply < ::Nl::Genl::Message
714
+ class DoDeviceIdGetReply < ::Nl::Message
1275
715
  TYPE = 1
1276
716
  FIXED_HEADER = nil
1277
717
  ATTRIBUTE_SET = AttributeSets::Dpll
1278
- ATTRIBUTES = Ractor.make_shareable(%i[id])
718
+ ATTRIBUTES = %i[id].freeze
719
+ include ATTRIBUTE_SET::Definitions
720
+ def initialize(attributes = [])
721
+ @attributes = attributes
722
+ end
723
+ # @private
724
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
725
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
726
+ new(
727
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
728
+ )
729
+ end
730
+ # Decodes a message payload from the decoder into a new instance.
731
+ # @rbs (::Nl::Decoder decoder) -> instance
732
+ def self.decode(decoder)
733
+ new(decode_attributes(decoder, BY_TYPE, 0))
734
+ end
735
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
736
+ encode_attributes(encoder, external_selectors:)
737
+ end
1279
738
  # @rbs return: ::Integer
1280
739
  # @return [Integer]
1281
- # @see AttributeSets::Dpll::Id
1282
- def id; attributes[:"id"]&.value; end
740
+ def id; self[:"id"]; end
1283
741
  end
1284
742
  # Get list of DPLL devices (dump) or attributes of a single dpll device
1285
743
  #
1286
744
  #
1287
745
  # Requires CAP_NET_ADMIN in the initial user namespace.
1288
- class DoDeviceGetRequest < ::Nl::Genl::Message
746
+ class DoDeviceGetRequest < ::Nl::Message
1289
747
  TYPE = 2
1290
748
  FIXED_HEADER = nil
1291
749
  ATTRIBUTE_SET = AttributeSets::Dpll
1292
- ATTRIBUTES = Ractor.make_shareable(%i[id])
750
+ ATTRIBUTES = %i[id].freeze
751
+ include ATTRIBUTE_SET::Definitions
752
+ def initialize(attributes = [])
753
+ @attributes = attributes
754
+ end
755
+ # @private
756
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
757
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
758
+ new(
759
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
760
+ )
761
+ end
762
+ # Decodes a message payload from the decoder into a new instance.
763
+ # @rbs (::Nl::Decoder decoder) -> instance
764
+ def self.decode(decoder)
765
+ new(decode_attributes(decoder, BY_TYPE, 0))
766
+ end
767
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
768
+ encode_attributes(encoder, external_selectors:)
769
+ end
1293
770
  # @rbs return: ::Integer
1294
771
  # @return [Integer]
1295
- # @see AttributeSets::Dpll::Id
1296
- def id; attributes[:"id"]&.value; end
772
+ def id; self[:"id"]; end
1297
773
  end
1298
774
  # Get list of DPLL devices (dump) or attributes of a single dpll device
1299
775
  #
1300
776
  #
1301
777
  # Requires CAP_NET_ADMIN in the initial user namespace.
1302
- class DoDeviceGetReply < ::Nl::Genl::Message
778
+ class DoDeviceGetReply < ::Nl::Message
1303
779
  TYPE = 2
1304
780
  FIXED_HEADER = nil
1305
781
  ATTRIBUTE_SET = AttributeSets::Dpll
1306
- 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 frequency_monitor])
782
+ ATTRIBUTES = %i[id module_name clock_id mode mode_supported lock_status temp type lock_status_error phase_offset_monitor phase_offset_avg_factor frequency_monitor].freeze
783
+ include ATTRIBUTE_SET::Definitions
784
+ def initialize(attributes = [])
785
+ @attributes = attributes
786
+ end
787
+ # @private
788
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
789
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
790
+ new(
791
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
792
+ )
793
+ end
794
+ # Decodes a message payload from the decoder into a new instance.
795
+ # @rbs (::Nl::Decoder decoder) -> instance
796
+ def self.decode(decoder)
797
+ new(decode_attributes(decoder, BY_TYPE, 0))
798
+ end
799
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
800
+ encode_attributes(encoder, external_selectors:)
801
+ end
1307
802
  # @rbs return: ::Integer
1308
803
  # @return [Integer]
1309
- # @see AttributeSets::Dpll::Id
1310
- def id; attributes[:"id"]&.value; end
804
+ def id; self[:"id"]; end
1311
805
  # @rbs return: ::String
1312
806
  # @return [String]
1313
- # @see AttributeSets::Dpll::ModuleName
1314
- def module_name; attributes[:"module_name"]&.value; end
807
+ def module_name; self[:"module_name"]; end
1315
808
  # @rbs return: ::Integer
1316
809
  # @return [Integer]
1317
- # @see AttributeSets::Dpll::ClockId
1318
- def clock_id; attributes[:"clock_id"]&.value; end
810
+ def clock_id; self[:"clock_id"]; end
1319
811
  # Known enum values are defined in {Enums::Mode}.
1320
812
  # @rbs return: ::Integer
1321
813
  # @return [Integer]
1322
- # @see AttributeSets::Dpll::Mode
1323
- def mode; attributes[:"mode"]&.value; end
814
+ def mode; self[:"mode"]; end
1324
815
  # Known enum values are defined in {Enums::Mode}.
1325
816
  # @rbs return: ::Array[::Integer]
1326
817
  # @return [Array<Integer>]
1327
- # @see AttributeSets::Dpll::ModeSupported
1328
- def mode_supported; attributes[:"mode_supported"].map(&:value); end
818
+ def mode_supported; self[:"mode_supported"]; end
1329
819
  # Known enum values are defined in {Enums::LockStatus}.
1330
820
  # @rbs return: ::Integer
1331
821
  # @return [Integer]
1332
- # @see AttributeSets::Dpll::LockStatus
1333
- def lock_status; attributes[:"lock_status"]&.value; end
822
+ def lock_status; self[:"lock_status"]; end
1334
823
  # @rbs return: ::Integer
1335
824
  # @return [Integer]
1336
- # @see AttributeSets::Dpll::Temp
1337
- def temp; attributes[:"temp"]&.value; end
825
+ def temp; self[:"temp"]; end
1338
826
  # Known enum values are defined in {Enums::Type}.
1339
827
  # @rbs return: ::Integer
1340
828
  # @return [Integer]
1341
- # @see AttributeSets::Dpll::Type
1342
- def type; attributes[:"type"]&.value; end
829
+ def type; self[:"type"]; end
1343
830
  # Known enum values are defined in {Enums::LockStatusError}.
1344
831
  # @rbs return: ::Integer
1345
832
  # @return [Integer]
1346
- # @see AttributeSets::Dpll::LockStatusError
1347
- def lock_status_error; attributes[:"lock_status_error"]&.value; end
833
+ def lock_status_error; self[:"lock_status_error"]; end
1348
834
  # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
1349
835
  #
1350
836
  # Known enum values are defined in {Enums::FeatureState}.
1351
837
  # @rbs return: ::Integer
1352
838
  # @return [Integer]
1353
- # @see AttributeSets::Dpll::PhaseOffsetMonitor
1354
- def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
839
+ def phase_offset_monitor; self[:"phase_offset_monitor"]; end
1355
840
  # Averaging factor applied to calculation of reported phase offset.
1356
841
  # @rbs return: ::Integer
1357
842
  # @return [Integer]
1358
- # @see AttributeSets::Dpll::PhaseOffsetAvgFactor
1359
- def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
843
+ def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]; end
1360
844
  # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
1361
845
  #
1362
846
  # Known enum values are defined in {Enums::FeatureState}.
1363
847
  # @rbs return: ::Integer
1364
848
  # @return [Integer]
1365
- # @see AttributeSets::Dpll::FrequencyMonitor
1366
- def frequency_monitor; attributes[:"frequency_monitor"]&.value; end
849
+ def frequency_monitor; self[:"frequency_monitor"]; end
1367
850
  end
1368
851
  # Get list of DPLL devices (dump) or attributes of a single dpll device
1369
852
  #
1370
853
  #
1371
854
  # Requires CAP_NET_ADMIN in the initial user namespace.
1372
- class DumpDeviceGetRequest < ::Nl::Genl::Message
855
+ class DumpDeviceGetRequest < ::Nl::Message
1373
856
  TYPE = 2
1374
857
  FIXED_HEADER = nil
1375
858
  ATTRIBUTE_SET = AttributeSets::Dpll
1376
- ATTRIBUTES = Ractor.make_shareable(%i[])
859
+ ATTRIBUTES = %i[].freeze
860
+ include ATTRIBUTE_SET::Definitions
861
+ def initialize(attributes = [])
862
+ @attributes = attributes
863
+ end
864
+ # @private
865
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
866
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
867
+ new(
868
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
869
+ )
870
+ end
871
+ # Decodes a message payload from the decoder into a new instance.
872
+ # @rbs (::Nl::Decoder decoder) -> instance
873
+ def self.decode(decoder)
874
+ new(decode_attributes(decoder, BY_TYPE, 0))
875
+ end
876
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
877
+ encode_attributes(encoder, external_selectors:)
878
+ end
1377
879
  end
1378
880
  # Get list of DPLL devices (dump) or attributes of a single dpll device
1379
881
  #
1380
882
  #
1381
883
  # Requires CAP_NET_ADMIN in the initial user namespace.
1382
- class DumpDeviceGetReply < ::Nl::Genl::Message
884
+ class DumpDeviceGetReply < ::Nl::Message
1383
885
  TYPE = 2
1384
886
  FIXED_HEADER = nil
1385
887
  ATTRIBUTE_SET = AttributeSets::Dpll
1386
- 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 frequency_monitor])
888
+ ATTRIBUTES = %i[id module_name clock_id mode mode_supported lock_status temp type lock_status_error phase_offset_monitor phase_offset_avg_factor frequency_monitor].freeze
889
+ include ATTRIBUTE_SET::Definitions
890
+ def initialize(attributes = [])
891
+ @attributes = attributes
892
+ end
893
+ # @private
894
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
895
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
896
+ new(
897
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
898
+ )
899
+ end
900
+ # Decodes a message payload from the decoder into a new instance.
901
+ # @rbs (::Nl::Decoder decoder) -> instance
902
+ def self.decode(decoder)
903
+ new(decode_attributes(decoder, BY_TYPE, 0))
904
+ end
905
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
906
+ encode_attributes(encoder, external_selectors:)
907
+ end
1387
908
  # @rbs return: ::Integer
1388
909
  # @return [Integer]
1389
- # @see AttributeSets::Dpll::Id
1390
- def id; attributes[:"id"]&.value; end
910
+ def id; self[:"id"]; end
1391
911
  # @rbs return: ::String
1392
912
  # @return [String]
1393
- # @see AttributeSets::Dpll::ModuleName
1394
- def module_name; attributes[:"module_name"]&.value; end
913
+ def module_name; self[:"module_name"]; end
1395
914
  # @rbs return: ::Integer
1396
915
  # @return [Integer]
1397
- # @see AttributeSets::Dpll::ClockId
1398
- def clock_id; attributes[:"clock_id"]&.value; end
916
+ def clock_id; self[:"clock_id"]; end
1399
917
  # Known enum values are defined in {Enums::Mode}.
1400
918
  # @rbs return: ::Integer
1401
919
  # @return [Integer]
1402
- # @see AttributeSets::Dpll::Mode
1403
- def mode; attributes[:"mode"]&.value; end
920
+ def mode; self[:"mode"]; end
1404
921
  # Known enum values are defined in {Enums::Mode}.
1405
922
  # @rbs return: ::Array[::Integer]
1406
923
  # @return [Array<Integer>]
1407
- # @see AttributeSets::Dpll::ModeSupported
1408
- def mode_supported; attributes[:"mode_supported"].map(&:value); end
924
+ def mode_supported; self[:"mode_supported"]; end
1409
925
  # Known enum values are defined in {Enums::LockStatus}.
1410
926
  # @rbs return: ::Integer
1411
927
  # @return [Integer]
1412
- # @see AttributeSets::Dpll::LockStatus
1413
- def lock_status; attributes[:"lock_status"]&.value; end
928
+ def lock_status; self[:"lock_status"]; end
1414
929
  # @rbs return: ::Integer
1415
930
  # @return [Integer]
1416
- # @see AttributeSets::Dpll::Temp
1417
- def temp; attributes[:"temp"]&.value; end
931
+ def temp; self[:"temp"]; end
1418
932
  # Known enum values are defined in {Enums::Type}.
1419
933
  # @rbs return: ::Integer
1420
934
  # @return [Integer]
1421
- # @see AttributeSets::Dpll::Type
1422
- def type; attributes[:"type"]&.value; end
935
+ def type; self[:"type"]; end
1423
936
  # Known enum values are defined in {Enums::LockStatusError}.
1424
937
  # @rbs return: ::Integer
1425
938
  # @return [Integer]
1426
- # @see AttributeSets::Dpll::LockStatusError
1427
- def lock_status_error; attributes[:"lock_status_error"]&.value; end
939
+ def lock_status_error; self[:"lock_status_error"]; end
1428
940
  # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
1429
941
  #
1430
942
  # Known enum values are defined in {Enums::FeatureState}.
1431
943
  # @rbs return: ::Integer
1432
944
  # @return [Integer]
1433
- # @see AttributeSets::Dpll::PhaseOffsetMonitor
1434
- def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
945
+ def phase_offset_monitor; self[:"phase_offset_monitor"]; end
1435
946
  # Averaging factor applied to calculation of reported phase offset.
1436
947
  # @rbs return: ::Integer
1437
948
  # @return [Integer]
1438
- # @see AttributeSets::Dpll::PhaseOffsetAvgFactor
1439
- def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
949
+ def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]; end
1440
950
  # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
1441
951
  #
1442
952
  # Known enum values are defined in {Enums::FeatureState}.
1443
953
  # @rbs return: ::Integer
1444
954
  # @return [Integer]
1445
- # @see AttributeSets::Dpll::FrequencyMonitor
1446
- def frequency_monitor; attributes[:"frequency_monitor"]&.value; end
955
+ def frequency_monitor; self[:"frequency_monitor"]; end
1447
956
  end
1448
957
  # Set attributes for a DPLL device
1449
958
  #
1450
959
  # Requires CAP_NET_ADMIN in the initial user namespace.
1451
- class DoDeviceSetRequest < ::Nl::Genl::Message
960
+ class DoDeviceSetRequest < ::Nl::Message
1452
961
  TYPE = 3
1453
962
  FIXED_HEADER = nil
1454
963
  ATTRIBUTE_SET = AttributeSets::Dpll
1455
- ATTRIBUTES = Ractor.make_shareable(%i[id mode phase_offset_monitor phase_offset_avg_factor frequency_monitor])
964
+ ATTRIBUTES = %i[id mode phase_offset_monitor phase_offset_avg_factor frequency_monitor].freeze
965
+ include ATTRIBUTE_SET::Definitions
966
+ def initialize(attributes = [])
967
+ @attributes = attributes
968
+ end
969
+ # @private
970
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
971
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
972
+ new(
973
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
974
+ )
975
+ end
976
+ # Decodes a message payload from the decoder into a new instance.
977
+ # @rbs (::Nl::Decoder decoder) -> instance
978
+ def self.decode(decoder)
979
+ new(decode_attributes(decoder, BY_TYPE, 0))
980
+ end
981
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
982
+ encode_attributes(encoder, external_selectors:)
983
+ end
1456
984
  # @rbs return: ::Integer
1457
985
  # @return [Integer]
1458
- # @see AttributeSets::Dpll::Id
1459
- def id; attributes[:"id"]&.value; end
986
+ def id; self[:"id"]; end
1460
987
  # Known enum values are defined in {Enums::Mode}.
1461
988
  # @rbs return: ::Integer
1462
989
  # @return [Integer]
1463
- # @see AttributeSets::Dpll::Mode
1464
- def mode; attributes[:"mode"]&.value; end
990
+ def mode; self[:"mode"]; end
1465
991
  # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
1466
992
  #
1467
993
  # Known enum values are defined in {Enums::FeatureState}.
1468
994
  # @rbs return: ::Integer
1469
995
  # @return [Integer]
1470
- # @see AttributeSets::Dpll::PhaseOffsetMonitor
1471
- def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
996
+ def phase_offset_monitor; self[:"phase_offset_monitor"]; end
1472
997
  # Averaging factor applied to calculation of reported phase offset.
1473
998
  # @rbs return: ::Integer
1474
999
  # @return [Integer]
1475
- # @see AttributeSets::Dpll::PhaseOffsetAvgFactor
1476
- def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
1000
+ def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]; end
1477
1001
  # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
1478
1002
  #
1479
1003
  # Known enum values are defined in {Enums::FeatureState}.
1480
1004
  # @rbs return: ::Integer
1481
1005
  # @return [Integer]
1482
- # @see AttributeSets::Dpll::FrequencyMonitor
1483
- def frequency_monitor; attributes[:"frequency_monitor"]&.value; end
1006
+ def frequency_monitor; self[:"frequency_monitor"]; end
1484
1007
  end
1485
1008
  # Get id of a pin that matches given attributes
1486
1009
  #
1487
1010
  #
1488
1011
  # Requires CAP_NET_ADMIN in the initial user namespace.
1489
- class DoPinIdGetRequest < ::Nl::Genl::Message
1012
+ class DoPinIdGetRequest < ::Nl::Message
1490
1013
  TYPE = 7
1491
1014
  FIXED_HEADER = nil
1492
1015
  ATTRIBUTE_SET = AttributeSets::Pin
1493
- ATTRIBUTES = Ractor.make_shareable(%i[module_name clock_id board_label panel_label package_label type])
1016
+ ATTRIBUTES = %i[module_name clock_id board_label panel_label package_label type].freeze
1017
+ include ATTRIBUTE_SET::Definitions
1018
+ def initialize(attributes = [])
1019
+ @attributes = attributes
1020
+ end
1021
+ # @private
1022
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1023
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1024
+ new(
1025
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1026
+ )
1027
+ end
1028
+ # Decodes a message payload from the decoder into a new instance.
1029
+ # @rbs (::Nl::Decoder decoder) -> instance
1030
+ def self.decode(decoder)
1031
+ new(decode_attributes(decoder, BY_TYPE, 0))
1032
+ end
1033
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1034
+ encode_attributes(encoder, external_selectors:)
1035
+ end
1494
1036
  # @rbs return: ::String
1495
1037
  # @return [String]
1496
- # @see AttributeSets::Pin::ModuleName
1497
- def module_name; attributes[:"module_name"]&.value; end
1038
+ def module_name; self[:"module_name"]; end
1498
1039
  # @rbs return: ::Integer
1499
1040
  # @return [Integer]
1500
- # @see AttributeSets::Pin::ClockId
1501
- def clock_id; attributes[:"clock_id"]&.value; end
1041
+ def clock_id; self[:"clock_id"]; end
1502
1042
  # @rbs return: ::String
1503
1043
  # @return [String]
1504
- # @see AttributeSets::Pin::BoardLabel
1505
- def board_label; attributes[:"board_label"]&.value; end
1044
+ def board_label; self[:"board_label"]; end
1506
1045
  # @rbs return: ::String
1507
1046
  # @return [String]
1508
- # @see AttributeSets::Pin::PanelLabel
1509
- def panel_label; attributes[:"panel_label"]&.value; end
1047
+ def panel_label; self[:"panel_label"]; end
1510
1048
  # @rbs return: ::String
1511
1049
  # @return [String]
1512
- # @see AttributeSets::Pin::PackageLabel
1513
- def package_label; attributes[:"package_label"]&.value; end
1050
+ def package_label; self[:"package_label"]; end
1514
1051
  # Known enum values are defined in {Enums::PinType}.
1515
1052
  # @rbs return: ::Integer
1516
1053
  # @return [Integer]
1517
- # @see AttributeSets::Pin::Type
1518
- def type; attributes[:"type"]&.value; end
1054
+ def type; self[:"type"]; end
1519
1055
  end
1520
1056
  # Get id of a pin that matches given attributes
1521
1057
  #
1522
1058
  #
1523
1059
  # Requires CAP_NET_ADMIN in the initial user namespace.
1524
- class DoPinIdGetReply < ::Nl::Genl::Message
1060
+ class DoPinIdGetReply < ::Nl::Message
1525
1061
  TYPE = 7
1526
1062
  FIXED_HEADER = nil
1527
1063
  ATTRIBUTE_SET = AttributeSets::Pin
1528
- ATTRIBUTES = Ractor.make_shareable(%i[id])
1064
+ ATTRIBUTES = %i[id].freeze
1065
+ include ATTRIBUTE_SET::Definitions
1066
+ def initialize(attributes = [])
1067
+ @attributes = attributes
1068
+ end
1069
+ # @private
1070
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1071
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1072
+ new(
1073
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1074
+ )
1075
+ end
1076
+ # Decodes a message payload from the decoder into a new instance.
1077
+ # @rbs (::Nl::Decoder decoder) -> instance
1078
+ def self.decode(decoder)
1079
+ new(decode_attributes(decoder, BY_TYPE, 0))
1080
+ end
1081
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1082
+ encode_attributes(encoder, external_selectors:)
1083
+ end
1529
1084
  # @rbs return: ::Integer
1530
1085
  # @return [Integer]
1531
- # @see AttributeSets::Pin::Id
1532
- def id; attributes[:"id"]&.value; end
1086
+ def id; self[:"id"]; end
1533
1087
  end
1534
1088
  # Get list of pins and its attributes.
1535
1089
  #
@@ -1541,15 +1095,33 @@ class Dpll < ::Nl::Genl::Family
1541
1095
  #
1542
1096
  #
1543
1097
  # Requires CAP_NET_ADMIN in the initial user namespace.
1544
- class DoPinGetRequest < ::Nl::Genl::Message
1098
+ class DoPinGetRequest < ::Nl::Message
1545
1099
  TYPE = 8
1546
1100
  FIXED_HEADER = nil
1547
1101
  ATTRIBUTE_SET = AttributeSets::Pin
1548
- ATTRIBUTES = Ractor.make_shareable(%i[id])
1102
+ ATTRIBUTES = %i[id].freeze
1103
+ include ATTRIBUTE_SET::Definitions
1104
+ def initialize(attributes = [])
1105
+ @attributes = attributes
1106
+ end
1107
+ # @private
1108
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1109
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1110
+ new(
1111
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1112
+ )
1113
+ end
1114
+ # Decodes a message payload from the decoder into a new instance.
1115
+ # @rbs (::Nl::Decoder decoder) -> instance
1116
+ def self.decode(decoder)
1117
+ new(decode_attributes(decoder, BY_TYPE, 0))
1118
+ end
1119
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1120
+ encode_attributes(encoder, external_selectors:)
1121
+ end
1549
1122
  # @rbs return: ::Integer
1550
1123
  # @return [Integer]
1551
- # @see AttributeSets::Pin::Id
1552
- def id; attributes[:"id"]&.value; end
1124
+ def id; self[:"id"]; end
1553
1125
  end
1554
1126
  # Get list of pins and its attributes.
1555
1127
  #
@@ -1561,127 +1133,130 @@ class Dpll < ::Nl::Genl::Family
1561
1133
  #
1562
1134
  #
1563
1135
  # Requires CAP_NET_ADMIN in the initial user namespace.
1564
- class DoPinGetReply < ::Nl::Genl::Message
1136
+ class DoPinGetReply < ::Nl::Message
1565
1137
  TYPE = 8
1566
1138
  FIXED_HEADER = nil
1567
1139
  ATTRIBUTE_SET = AttributeSets::Pin
1568
- 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 fractional_frequency_offset_ppt measured_frequency])
1140
+ ATTRIBUTES = %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 fractional_frequency_offset_ppt measured_frequency].freeze
1141
+ include ATTRIBUTE_SET::Definitions
1142
+ def initialize(attributes = [])
1143
+ @attributes = attributes
1144
+ end
1145
+ # @private
1146
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1147
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1148
+ new(
1149
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1150
+ )
1151
+ end
1152
+ # Decodes a message payload from the decoder into a new instance.
1153
+ # @rbs (::Nl::Decoder decoder) -> instance
1154
+ def self.decode(decoder)
1155
+ new(decode_attributes(decoder, BY_TYPE, 0))
1156
+ end
1157
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1158
+ encode_attributes(encoder, external_selectors:)
1159
+ end
1569
1160
  # @rbs return: ::Integer
1570
1161
  # @return [Integer]
1571
- # @see AttributeSets::Pin::Id
1572
- def id; attributes[:"id"]&.value; end
1162
+ def id; self[:"id"]; end
1573
1163
  # @rbs return: ::String
1574
1164
  # @return [String]
1575
- # @see AttributeSets::Pin::ModuleName
1576
- def module_name; attributes[:"module_name"]&.value; end
1165
+ def module_name; self[:"module_name"]; end
1577
1166
  # @rbs return: ::Integer
1578
1167
  # @return [Integer]
1579
- # @see AttributeSets::Pin::ClockId
1580
- def clock_id; attributes[:"clock_id"]&.value; end
1168
+ def clock_id; self[:"clock_id"]; end
1581
1169
  # @rbs return: ::String
1582
1170
  # @return [String]
1583
- # @see AttributeSets::Pin::BoardLabel
1584
- def board_label; attributes[:"board_label"]&.value; end
1171
+ def board_label; self[:"board_label"]; end
1585
1172
  # @rbs return: ::String
1586
1173
  # @return [String]
1587
- # @see AttributeSets::Pin::PanelLabel
1588
- def panel_label; attributes[:"panel_label"]&.value; end
1174
+ def panel_label; self[:"panel_label"]; end
1589
1175
  # @rbs return: ::String
1590
1176
  # @return [String]
1591
- # @see AttributeSets::Pin::PackageLabel
1592
- def package_label; attributes[:"package_label"]&.value; end
1177
+ def package_label; self[:"package_label"]; end
1593
1178
  # Known enum values are defined in {Enums::PinType}.
1594
1179
  # @rbs return: ::Integer
1595
1180
  # @return [Integer]
1596
- # @see AttributeSets::Pin::Type
1597
- def type; attributes[:"type"]&.value; end
1181
+ def type; self[:"type"]; end
1598
1182
  # @rbs return: ::Integer
1599
1183
  # @return [Integer]
1600
- # @see AttributeSets::Pin::Frequency
1601
- def frequency; attributes[:"frequency"]&.value; end
1184
+ def frequency; self[:"frequency"]; end
1602
1185
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
1603
1186
  # @return [Array<AttributeSets::FrequencyRange>]
1604
- # @see AttributeSets::Pin::FrequencySupported
1605
- def frequency_supported; attributes[:"frequency_supported"].map(&:value); end
1187
+ def frequency_supported; self[:"frequency_supported"]; end
1606
1188
  # Known flags are defined in {Flags::PinCapabilities}.
1607
1189
  # @rbs return: ::Integer
1608
1190
  # @return [Integer]
1609
- # @see AttributeSets::Pin::Capabilities
1610
- def capabilities; attributes[:"capabilities"]&.value; end
1191
+ def capabilities; self[:"capabilities"]; end
1611
1192
  # @rbs return: ::Array[AttributeSets::PinParentDevice]
1612
1193
  # @return [Array<AttributeSets::PinParentDevice>]
1613
- # @see AttributeSets::Pin::ParentDevice
1614
- def parent_device; attributes[:"parent_device"].map(&:value); end
1194
+ def parent_device; self[:"parent_device"]; end
1615
1195
  # @rbs return: ::Array[AttributeSets::PinParentPin]
1616
1196
  # @return [Array<AttributeSets::PinParentPin>]
1617
- # @see AttributeSets::Pin::ParentPin
1618
- def parent_pin; attributes[:"parent_pin"].map(&:value); end
1197
+ def parent_pin; self[:"parent_pin"]; end
1619
1198
  # @rbs return: ::Integer
1620
1199
  # @return [Integer]
1621
- # @see AttributeSets::Pin::PhaseAdjustMin
1622
- def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end
1200
+ def phase_adjust_min; self[:"phase_adjust_min"]; end
1623
1201
  # @rbs return: ::Integer
1624
1202
  # @return [Integer]
1625
- # @see AttributeSets::Pin::PhaseAdjustMax
1626
- def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end
1203
+ def phase_adjust_max; self[:"phase_adjust_max"]; end
1627
1204
  # @rbs return: ::Integer
1628
1205
  # @return [Integer]
1629
- # @see AttributeSets::Pin::PhaseAdjust
1630
- def phase_adjust; attributes[:"phase_adjust"]&.value; end
1206
+ def phase_adjust; self[:"phase_adjust"]; end
1631
1207
  # The FFO (Fractional Frequency Offset) of the pin.
1632
1208
  # At top level this represents the RX vs TX symbol rate
1633
1209
  # offset on the media associated with the pin. Inside
1634
1210
  # the pin-parent-device nest it represents the frequency
1635
1211
  # offset between the pin and its parent DPLL device.
1212
+ # For pins of type PIN_TYPE_INT_NCO this represents
1213
+ # the DPLL's current output frequency offset from its
1214
+ # nominal frequency.
1636
1215
  # Value is in PPM (parts per million).
1637
1216
  # This is a lower-precision version of
1638
1217
  # fractional-frequency-offset-ppt.
1639
1218
  # @rbs return: ::Integer
1640
1219
  # @return [Integer]
1641
- # @see AttributeSets::Pin::FractionalFrequencyOffset
1642
- def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end
1220
+ def fractional_frequency_offset; self[:"fractional_frequency_offset"]; end
1643
1221
  # Frequency of Embedded SYNC signal. If provided, the pin is configured
1644
1222
  # with a SYNC signal embedded into its base clock frequency.
1645
1223
  # @rbs return: ::Integer
1646
1224
  # @return [Integer]
1647
- # @see AttributeSets::Pin::EsyncFrequency
1648
- def esync_frequency; attributes[:"esync_frequency"]&.value; end
1225
+ def esync_frequency; self[:"esync_frequency"]; end
1649
1226
  # If provided a pin is capable of embedding a SYNC signal (within given
1650
1227
  # range) into its base frequency signal.
1651
1228
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
1652
1229
  # @return [Array<AttributeSets::FrequencyRange>]
1653
- # @see AttributeSets::Pin::EsyncFrequencySupported
1654
- def esync_frequency_supported; attributes[:"esync_frequency_supported"].map(&:value); end
1230
+ def esync_frequency_supported; self[:"esync_frequency_supported"]; end
1655
1231
  # A ratio of high to low state of a SYNC signal pulse embedded
1656
1232
  # into base clock frequency. Value is in percents.
1657
1233
  # @rbs return: ::Integer
1658
1234
  # @return [Integer]
1659
- # @see AttributeSets::Pin::EsyncPulse
1660
- def esync_pulse; attributes[:"esync_pulse"]&.value; end
1235
+ def esync_pulse; self[:"esync_pulse"]; end
1661
1236
  # Capable pin provides list of pins that can be bound to create a
1662
1237
  # reference-sync pin pair.
1663
1238
  # @rbs return: ::Array[AttributeSets::ReferenceSync]
1664
1239
  # @return [Array<AttributeSets::ReferenceSync>]
1665
- # @see AttributeSets::Pin::ReferenceSync
1666
- def reference_sync; attributes[:"reference_sync"].map(&:value); end
1240
+ def reference_sync; self[:"reference_sync"]; end
1667
1241
  # Granularity of phase adjustment, in picoseconds. The value of
1668
1242
  # phase adjustment must be a multiple of this granularity.
1669
1243
  # @rbs return: ::Integer
1670
1244
  # @return [Integer]
1671
- # @see AttributeSets::Pin::PhaseAdjustGran
1672
- def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end
1245
+ def phase_adjust_gran; self[:"phase_adjust_gran"]; end
1673
1246
  # The FFO (Fractional Frequency Offset) of the pin.
1674
1247
  # At top level this represents the RX vs TX symbol rate
1675
1248
  # offset on the media associated with the pin. Inside
1676
1249
  # the pin-parent-device nest it represents the frequency
1677
1250
  # offset between the pin and its parent DPLL device.
1251
+ # For pins of type PIN_TYPE_INT_NCO this represents
1252
+ # the DPLL's current output frequency offset from its
1253
+ # nominal frequency.
1678
1254
  # Value is in PPT (parts per trillion, 10^-12).
1679
1255
  # This is a higher-precision version of
1680
1256
  # fractional-frequency-offset.
1681
1257
  # @rbs return: ::Integer
1682
1258
  # @return [Integer]
1683
- # @see AttributeSets::Pin::FractionalFrequencyOffsetPpt
1684
- def fractional_frequency_offset_ppt; attributes[:"fractional_frequency_offset_ppt"]&.value; end
1259
+ def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]; end
1685
1260
  # The measured frequency of the input pin in millihertz (mHz).
1686
1261
  # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
1687
1262
  # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
@@ -1691,8 +1266,7 @@ class Dpll < ::Nl::Genl::Family
1691
1266
  # of a measured frequency value.
1692
1267
  # @rbs return: ::Integer
1693
1268
  # @return [Integer]
1694
- # @see AttributeSets::Pin::MeasuredFrequency
1695
- def measured_frequency; attributes[:"measured_frequency"]&.value; end
1269
+ def measured_frequency; self[:"measured_frequency"]; end
1696
1270
  end
1697
1271
  # Get list of pins and its attributes.
1698
1272
  #
@@ -1704,15 +1278,33 @@ class Dpll < ::Nl::Genl::Family
1704
1278
  #
1705
1279
  #
1706
1280
  # Requires CAP_NET_ADMIN in the initial user namespace.
1707
- class DumpPinGetRequest < ::Nl::Genl::Message
1281
+ class DumpPinGetRequest < ::Nl::Message
1708
1282
  TYPE = 8
1709
1283
  FIXED_HEADER = nil
1710
1284
  ATTRIBUTE_SET = AttributeSets::Pin
1711
- ATTRIBUTES = Ractor.make_shareable(%i[id])
1285
+ ATTRIBUTES = %i[id].freeze
1286
+ include ATTRIBUTE_SET::Definitions
1287
+ def initialize(attributes = [])
1288
+ @attributes = attributes
1289
+ end
1290
+ # @private
1291
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1292
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1293
+ new(
1294
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1295
+ )
1296
+ end
1297
+ # Decodes a message payload from the decoder into a new instance.
1298
+ # @rbs (::Nl::Decoder decoder) -> instance
1299
+ def self.decode(decoder)
1300
+ new(decode_attributes(decoder, BY_TYPE, 0))
1301
+ end
1302
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1303
+ encode_attributes(encoder, external_selectors:)
1304
+ end
1712
1305
  # @rbs return: ::Integer
1713
1306
  # @return [Integer]
1714
- # @see AttributeSets::Pin::Id
1715
- def id; attributes[:"id"]&.value; end
1307
+ def id; self[:"id"]; end
1716
1308
  end
1717
1309
  # Get list of pins and its attributes.
1718
1310
  #
@@ -1724,127 +1316,130 @@ class Dpll < ::Nl::Genl::Family
1724
1316
  #
1725
1317
  #
1726
1318
  # Requires CAP_NET_ADMIN in the initial user namespace.
1727
- class DumpPinGetReply < ::Nl::Genl::Message
1319
+ class DumpPinGetReply < ::Nl::Message
1728
1320
  TYPE = 8
1729
1321
  FIXED_HEADER = nil
1730
1322
  ATTRIBUTE_SET = AttributeSets::Pin
1731
- 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 fractional_frequency_offset_ppt measured_frequency])
1323
+ ATTRIBUTES = %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 fractional_frequency_offset_ppt measured_frequency].freeze
1324
+ include ATTRIBUTE_SET::Definitions
1325
+ def initialize(attributes = [])
1326
+ @attributes = attributes
1327
+ end
1328
+ # @private
1329
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1330
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1331
+ new(
1332
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1333
+ )
1334
+ end
1335
+ # Decodes a message payload from the decoder into a new instance.
1336
+ # @rbs (::Nl::Decoder decoder) -> instance
1337
+ def self.decode(decoder)
1338
+ new(decode_attributes(decoder, BY_TYPE, 0))
1339
+ end
1340
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1341
+ encode_attributes(encoder, external_selectors:)
1342
+ end
1732
1343
  # @rbs return: ::Integer
1733
1344
  # @return [Integer]
1734
- # @see AttributeSets::Pin::Id
1735
- def id; attributes[:"id"]&.value; end
1345
+ def id; self[:"id"]; end
1736
1346
  # @rbs return: ::String
1737
1347
  # @return [String]
1738
- # @see AttributeSets::Pin::ModuleName
1739
- def module_name; attributes[:"module_name"]&.value; end
1348
+ def module_name; self[:"module_name"]; end
1740
1349
  # @rbs return: ::Integer
1741
1350
  # @return [Integer]
1742
- # @see AttributeSets::Pin::ClockId
1743
- def clock_id; attributes[:"clock_id"]&.value; end
1351
+ def clock_id; self[:"clock_id"]; end
1744
1352
  # @rbs return: ::String
1745
1353
  # @return [String]
1746
- # @see AttributeSets::Pin::BoardLabel
1747
- def board_label; attributes[:"board_label"]&.value; end
1354
+ def board_label; self[:"board_label"]; end
1748
1355
  # @rbs return: ::String
1749
1356
  # @return [String]
1750
- # @see AttributeSets::Pin::PanelLabel
1751
- def panel_label; attributes[:"panel_label"]&.value; end
1357
+ def panel_label; self[:"panel_label"]; end
1752
1358
  # @rbs return: ::String
1753
1359
  # @return [String]
1754
- # @see AttributeSets::Pin::PackageLabel
1755
- def package_label; attributes[:"package_label"]&.value; end
1360
+ def package_label; self[:"package_label"]; end
1756
1361
  # Known enum values are defined in {Enums::PinType}.
1757
1362
  # @rbs return: ::Integer
1758
1363
  # @return [Integer]
1759
- # @see AttributeSets::Pin::Type
1760
- def type; attributes[:"type"]&.value; end
1364
+ def type; self[:"type"]; end
1761
1365
  # @rbs return: ::Integer
1762
1366
  # @return [Integer]
1763
- # @see AttributeSets::Pin::Frequency
1764
- def frequency; attributes[:"frequency"]&.value; end
1367
+ def frequency; self[:"frequency"]; end
1765
1368
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
1766
1369
  # @return [Array<AttributeSets::FrequencyRange>]
1767
- # @see AttributeSets::Pin::FrequencySupported
1768
- def frequency_supported; attributes[:"frequency_supported"].map(&:value); end
1370
+ def frequency_supported; self[:"frequency_supported"]; end
1769
1371
  # Known flags are defined in {Flags::PinCapabilities}.
1770
1372
  # @rbs return: ::Integer
1771
1373
  # @return [Integer]
1772
- # @see AttributeSets::Pin::Capabilities
1773
- def capabilities; attributes[:"capabilities"]&.value; end
1374
+ def capabilities; self[:"capabilities"]; end
1774
1375
  # @rbs return: ::Array[AttributeSets::PinParentDevice]
1775
1376
  # @return [Array<AttributeSets::PinParentDevice>]
1776
- # @see AttributeSets::Pin::ParentDevice
1777
- def parent_device; attributes[:"parent_device"].map(&:value); end
1377
+ def parent_device; self[:"parent_device"]; end
1778
1378
  # @rbs return: ::Array[AttributeSets::PinParentPin]
1779
1379
  # @return [Array<AttributeSets::PinParentPin>]
1780
- # @see AttributeSets::Pin::ParentPin
1781
- def parent_pin; attributes[:"parent_pin"].map(&:value); end
1380
+ def parent_pin; self[:"parent_pin"]; end
1782
1381
  # @rbs return: ::Integer
1783
1382
  # @return [Integer]
1784
- # @see AttributeSets::Pin::PhaseAdjustMin
1785
- def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end
1383
+ def phase_adjust_min; self[:"phase_adjust_min"]; end
1786
1384
  # @rbs return: ::Integer
1787
1385
  # @return [Integer]
1788
- # @see AttributeSets::Pin::PhaseAdjustMax
1789
- def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end
1386
+ def phase_adjust_max; self[:"phase_adjust_max"]; end
1790
1387
  # @rbs return: ::Integer
1791
1388
  # @return [Integer]
1792
- # @see AttributeSets::Pin::PhaseAdjust
1793
- def phase_adjust; attributes[:"phase_adjust"]&.value; end
1389
+ def phase_adjust; self[:"phase_adjust"]; end
1794
1390
  # The FFO (Fractional Frequency Offset) of the pin.
1795
1391
  # At top level this represents the RX vs TX symbol rate
1796
1392
  # offset on the media associated with the pin. Inside
1797
1393
  # the pin-parent-device nest it represents the frequency
1798
1394
  # offset between the pin and its parent DPLL device.
1395
+ # For pins of type PIN_TYPE_INT_NCO this represents
1396
+ # the DPLL's current output frequency offset from its
1397
+ # nominal frequency.
1799
1398
  # Value is in PPM (parts per million).
1800
1399
  # This is a lower-precision version of
1801
1400
  # fractional-frequency-offset-ppt.
1802
1401
  # @rbs return: ::Integer
1803
1402
  # @return [Integer]
1804
- # @see AttributeSets::Pin::FractionalFrequencyOffset
1805
- def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end
1403
+ def fractional_frequency_offset; self[:"fractional_frequency_offset"]; end
1806
1404
  # Frequency of Embedded SYNC signal. If provided, the pin is configured
1807
1405
  # with a SYNC signal embedded into its base clock frequency.
1808
1406
  # @rbs return: ::Integer
1809
1407
  # @return [Integer]
1810
- # @see AttributeSets::Pin::EsyncFrequency
1811
- def esync_frequency; attributes[:"esync_frequency"]&.value; end
1408
+ def esync_frequency; self[:"esync_frequency"]; end
1812
1409
  # If provided a pin is capable of embedding a SYNC signal (within given
1813
1410
  # range) into its base frequency signal.
1814
1411
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
1815
1412
  # @return [Array<AttributeSets::FrequencyRange>]
1816
- # @see AttributeSets::Pin::EsyncFrequencySupported
1817
- def esync_frequency_supported; attributes[:"esync_frequency_supported"].map(&:value); end
1413
+ def esync_frequency_supported; self[:"esync_frequency_supported"]; end
1818
1414
  # A ratio of high to low state of a SYNC signal pulse embedded
1819
1415
  # into base clock frequency. Value is in percents.
1820
1416
  # @rbs return: ::Integer
1821
1417
  # @return [Integer]
1822
- # @see AttributeSets::Pin::EsyncPulse
1823
- def esync_pulse; attributes[:"esync_pulse"]&.value; end
1418
+ def esync_pulse; self[:"esync_pulse"]; end
1824
1419
  # Capable pin provides list of pins that can be bound to create a
1825
1420
  # reference-sync pin pair.
1826
1421
  # @rbs return: ::Array[AttributeSets::ReferenceSync]
1827
1422
  # @return [Array<AttributeSets::ReferenceSync>]
1828
- # @see AttributeSets::Pin::ReferenceSync
1829
- def reference_sync; attributes[:"reference_sync"].map(&:value); end
1423
+ def reference_sync; self[:"reference_sync"]; end
1830
1424
  # Granularity of phase adjustment, in picoseconds. The value of
1831
1425
  # phase adjustment must be a multiple of this granularity.
1832
1426
  # @rbs return: ::Integer
1833
1427
  # @return [Integer]
1834
- # @see AttributeSets::Pin::PhaseAdjustGran
1835
- def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end
1428
+ def phase_adjust_gran; self[:"phase_adjust_gran"]; end
1836
1429
  # The FFO (Fractional Frequency Offset) of the pin.
1837
1430
  # At top level this represents the RX vs TX symbol rate
1838
1431
  # offset on the media associated with the pin. Inside
1839
1432
  # the pin-parent-device nest it represents the frequency
1840
1433
  # offset between the pin and its parent DPLL device.
1434
+ # For pins of type PIN_TYPE_INT_NCO this represents
1435
+ # the DPLL's current output frequency offset from its
1436
+ # nominal frequency.
1841
1437
  # Value is in PPT (parts per trillion, 10^-12).
1842
1438
  # This is a higher-precision version of
1843
1439
  # fractional-frequency-offset.
1844
1440
  # @rbs return: ::Integer
1845
1441
  # @return [Integer]
1846
- # @see AttributeSets::Pin::FractionalFrequencyOffsetPpt
1847
- def fractional_frequency_offset_ppt; attributes[:"fractional_frequency_offset_ppt"]&.value; end
1442
+ def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]; end
1848
1443
  # The measured frequency of the input pin in millihertz (mHz).
1849
1444
  # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
1850
1445
  # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
@@ -1854,397 +1449,429 @@ class Dpll < ::Nl::Genl::Family
1854
1449
  # of a measured frequency value.
1855
1450
  # @rbs return: ::Integer
1856
1451
  # @return [Integer]
1857
- # @see AttributeSets::Pin::MeasuredFrequency
1858
- def measured_frequency; attributes[:"measured_frequency"]&.value; end
1452
+ def measured_frequency; self[:"measured_frequency"]; end
1859
1453
  end
1860
1454
  # Set attributes of a target pin
1861
1455
  #
1862
1456
  # Requires CAP_NET_ADMIN in the initial user namespace.
1863
- class DoPinSetRequest < ::Nl::Genl::Message
1457
+ class DoPinSetRequest < ::Nl::Message
1864
1458
  TYPE = 9
1865
1459
  FIXED_HEADER = nil
1866
1460
  ATTRIBUTE_SET = AttributeSets::Pin
1867
- ATTRIBUTES = Ractor.make_shareable(%i[id direction frequency prio state parent_device parent_pin phase_adjust esync_frequency reference_sync])
1461
+ ATTRIBUTES = %i[id direction frequency prio state parent_device parent_pin phase_adjust esync_frequency reference_sync].freeze
1462
+ include ATTRIBUTE_SET::Definitions
1463
+ def initialize(attributes = [])
1464
+ @attributes = attributes
1465
+ end
1466
+ # @private
1467
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1468
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1469
+ new(
1470
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1471
+ )
1472
+ end
1473
+ # Decodes a message payload from the decoder into a new instance.
1474
+ # @rbs (::Nl::Decoder decoder) -> instance
1475
+ def self.decode(decoder)
1476
+ new(decode_attributes(decoder, BY_TYPE, 0))
1477
+ end
1478
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1479
+ encode_attributes(encoder, external_selectors:)
1480
+ end
1868
1481
  # @rbs return: ::Integer
1869
1482
  # @return [Integer]
1870
- # @see AttributeSets::Pin::Id
1871
- def id; attributes[:"id"]&.value; end
1483
+ def id; self[:"id"]; end
1872
1484
  # Known enum values are defined in {Enums::PinDirection}.
1873
1485
  # @rbs return: ::Integer
1874
1486
  # @return [Integer]
1875
- # @see AttributeSets::Pin::Direction
1876
- def direction; attributes[:"direction"]&.value; end
1487
+ def direction; self[:"direction"]; end
1877
1488
  # @rbs return: ::Integer
1878
1489
  # @return [Integer]
1879
- # @see AttributeSets::Pin::Frequency
1880
- def frequency; attributes[:"frequency"]&.value; end
1490
+ def frequency; self[:"frequency"]; end
1881
1491
  # @rbs return: ::Integer
1882
1492
  # @return [Integer]
1883
- # @see AttributeSets::Pin::Prio
1884
- def prio; attributes[:"prio"]&.value; end
1493
+ def prio; self[:"prio"]; end
1885
1494
  # Known enum values are defined in {Enums::PinState}.
1886
1495
  # @rbs return: ::Integer
1887
1496
  # @return [Integer]
1888
- # @see AttributeSets::Pin::State
1889
- def state; attributes[:"state"]&.value; end
1497
+ def state; self[:"state"]; end
1890
1498
  # @rbs return: ::Array[AttributeSets::PinParentDevice]
1891
1499
  # @return [Array<AttributeSets::PinParentDevice>]
1892
- # @see AttributeSets::Pin::ParentDevice
1893
- def parent_device; attributes[:"parent_device"].map(&:value); end
1500
+ def parent_device; self[:"parent_device"]; end
1894
1501
  # @rbs return: ::Array[AttributeSets::PinParentPin]
1895
1502
  # @return [Array<AttributeSets::PinParentPin>]
1896
- # @see AttributeSets::Pin::ParentPin
1897
- def parent_pin; attributes[:"parent_pin"].map(&:value); end
1503
+ def parent_pin; self[:"parent_pin"]; end
1898
1504
  # @rbs return: ::Integer
1899
1505
  # @return [Integer]
1900
- # @see AttributeSets::Pin::PhaseAdjust
1901
- def phase_adjust; attributes[:"phase_adjust"]&.value; end
1506
+ def phase_adjust; self[:"phase_adjust"]; end
1902
1507
  # Frequency of Embedded SYNC signal. If provided, the pin is configured
1903
1508
  # with a SYNC signal embedded into its base clock frequency.
1904
1509
  # @rbs return: ::Integer
1905
1510
  # @return [Integer]
1906
- # @see AttributeSets::Pin::EsyncFrequency
1907
- def esync_frequency; attributes[:"esync_frequency"]&.value; end
1511
+ def esync_frequency; self[:"esync_frequency"]; end
1908
1512
  # Capable pin provides list of pins that can be bound to create a
1909
1513
  # reference-sync pin pair.
1910
1514
  # @rbs return: ::Array[AttributeSets::ReferenceSync]
1911
1515
  # @return [Array<AttributeSets::ReferenceSync>]
1912
- # @see AttributeSets::Pin::ReferenceSync
1913
- def reference_sync; attributes[:"reference_sync"].map(&:value); end
1516
+ def reference_sync; self[:"reference_sync"]; end
1914
1517
  end
1915
1518
  end
1916
1519
  module Notifications
1917
1520
  # Notification about device appearing
1918
1521
  #
1919
1522
  # Multicast group: `monitor`.
1920
- class DeviceCreateNtf < ::Nl::Genl::Message
1523
+ class DeviceCreateNtf < ::Nl::Message
1921
1524
  TYPE = 4
1922
1525
  FIXED_HEADER = nil
1923
1526
  ATTRIBUTE_SET = AttributeSets::Dpll
1924
- 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 frequency_monitor])
1527
+ ATTRIBUTES = %i[id module_name clock_id mode mode_supported lock_status temp type lock_status_error phase_offset_monitor phase_offset_avg_factor frequency_monitor].freeze
1528
+ include ATTRIBUTE_SET::Definitions
1529
+ def initialize(attributes = [])
1530
+ @attributes = attributes
1531
+ end
1532
+ # @private
1533
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1534
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1535
+ new(
1536
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1537
+ )
1538
+ end
1539
+ # Decodes a message payload from the decoder into a new instance.
1540
+ # @rbs (::Nl::Decoder decoder) -> instance
1541
+ def self.decode(decoder)
1542
+ new(decode_attributes(decoder, BY_TYPE, 0))
1543
+ end
1544
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1545
+ encode_attributes(encoder, external_selectors:)
1546
+ end
1925
1547
  # @rbs return: ::Integer
1926
1548
  # @return [Integer]
1927
- # @see AttributeSets::Dpll::Id
1928
- def id; attributes[:"id"]&.value; end
1549
+ def id; self[:"id"]; end
1929
1550
  # @rbs return: ::String
1930
1551
  # @return [String]
1931
- # @see AttributeSets::Dpll::ModuleName
1932
- def module_name; attributes[:"module_name"]&.value; end
1552
+ def module_name; self[:"module_name"]; end
1933
1553
  # @rbs return: ::Integer
1934
1554
  # @return [Integer]
1935
- # @see AttributeSets::Dpll::ClockId
1936
- def clock_id; attributes[:"clock_id"]&.value; end
1555
+ def clock_id; self[:"clock_id"]; end
1937
1556
  # Known enum values are defined in {Enums::Mode}.
1938
1557
  # @rbs return: ::Integer
1939
1558
  # @return [Integer]
1940
- # @see AttributeSets::Dpll::Mode
1941
- def mode; attributes[:"mode"]&.value; end
1559
+ def mode; self[:"mode"]; end
1942
1560
  # Known enum values are defined in {Enums::Mode}.
1943
1561
  # @rbs return: ::Array[::Integer]
1944
1562
  # @return [Array<Integer>]
1945
- # @see AttributeSets::Dpll::ModeSupported
1946
- def mode_supported; attributes[:"mode_supported"].map(&:value); end
1563
+ def mode_supported; self[:"mode_supported"]; end
1947
1564
  # Known enum values are defined in {Enums::LockStatus}.
1948
1565
  # @rbs return: ::Integer
1949
1566
  # @return [Integer]
1950
- # @see AttributeSets::Dpll::LockStatus
1951
- def lock_status; attributes[:"lock_status"]&.value; end
1567
+ def lock_status; self[:"lock_status"]; end
1952
1568
  # @rbs return: ::Integer
1953
1569
  # @return [Integer]
1954
- # @see AttributeSets::Dpll::Temp
1955
- def temp; attributes[:"temp"]&.value; end
1570
+ def temp; self[:"temp"]; end
1956
1571
  # Known enum values are defined in {Enums::Type}.
1957
1572
  # @rbs return: ::Integer
1958
1573
  # @return [Integer]
1959
- # @see AttributeSets::Dpll::Type
1960
- def type; attributes[:"type"]&.value; end
1574
+ def type; self[:"type"]; end
1961
1575
  # Known enum values are defined in {Enums::LockStatusError}.
1962
1576
  # @rbs return: ::Integer
1963
1577
  # @return [Integer]
1964
- # @see AttributeSets::Dpll::LockStatusError
1965
- def lock_status_error; attributes[:"lock_status_error"]&.value; end
1578
+ def lock_status_error; self[:"lock_status_error"]; end
1966
1579
  # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
1967
1580
  #
1968
1581
  # Known enum values are defined in {Enums::FeatureState}.
1969
1582
  # @rbs return: ::Integer
1970
1583
  # @return [Integer]
1971
- # @see AttributeSets::Dpll::PhaseOffsetMonitor
1972
- def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
1584
+ def phase_offset_monitor; self[:"phase_offset_monitor"]; end
1973
1585
  # Averaging factor applied to calculation of reported phase offset.
1974
1586
  # @rbs return: ::Integer
1975
1587
  # @return [Integer]
1976
- # @see AttributeSets::Dpll::PhaseOffsetAvgFactor
1977
- def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
1588
+ def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]; end
1978
1589
  # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
1979
1590
  #
1980
1591
  # Known enum values are defined in {Enums::FeatureState}.
1981
1592
  # @rbs return: ::Integer
1982
1593
  # @return [Integer]
1983
- # @see AttributeSets::Dpll::FrequencyMonitor
1984
- def frequency_monitor; attributes[:"frequency_monitor"]&.value; end
1594
+ def frequency_monitor; self[:"frequency_monitor"]; end
1985
1595
  end
1986
1596
  # Notification about device disappearing
1987
1597
  #
1988
1598
  # Multicast group: `monitor`.
1989
- class DeviceDeleteNtf < ::Nl::Genl::Message
1599
+ class DeviceDeleteNtf < ::Nl::Message
1990
1600
  TYPE = 5
1991
1601
  FIXED_HEADER = nil
1992
1602
  ATTRIBUTE_SET = AttributeSets::Dpll
1993
- 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 frequency_monitor])
1603
+ ATTRIBUTES = %i[id module_name clock_id mode mode_supported lock_status temp type lock_status_error phase_offset_monitor phase_offset_avg_factor frequency_monitor].freeze
1604
+ include ATTRIBUTE_SET::Definitions
1605
+ def initialize(attributes = [])
1606
+ @attributes = attributes
1607
+ end
1608
+ # @private
1609
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1610
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1611
+ new(
1612
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1613
+ )
1614
+ end
1615
+ # Decodes a message payload from the decoder into a new instance.
1616
+ # @rbs (::Nl::Decoder decoder) -> instance
1617
+ def self.decode(decoder)
1618
+ new(decode_attributes(decoder, BY_TYPE, 0))
1619
+ end
1620
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1621
+ encode_attributes(encoder, external_selectors:)
1622
+ end
1994
1623
  # @rbs return: ::Integer
1995
1624
  # @return [Integer]
1996
- # @see AttributeSets::Dpll::Id
1997
- def id; attributes[:"id"]&.value; end
1625
+ def id; self[:"id"]; end
1998
1626
  # @rbs return: ::String
1999
1627
  # @return [String]
2000
- # @see AttributeSets::Dpll::ModuleName
2001
- def module_name; attributes[:"module_name"]&.value; end
1628
+ def module_name; self[:"module_name"]; end
2002
1629
  # @rbs return: ::Integer
2003
1630
  # @return [Integer]
2004
- # @see AttributeSets::Dpll::ClockId
2005
- def clock_id; attributes[:"clock_id"]&.value; end
1631
+ def clock_id; self[:"clock_id"]; end
2006
1632
  # Known enum values are defined in {Enums::Mode}.
2007
1633
  # @rbs return: ::Integer
2008
1634
  # @return [Integer]
2009
- # @see AttributeSets::Dpll::Mode
2010
- def mode; attributes[:"mode"]&.value; end
1635
+ def mode; self[:"mode"]; end
2011
1636
  # Known enum values are defined in {Enums::Mode}.
2012
1637
  # @rbs return: ::Array[::Integer]
2013
1638
  # @return [Array<Integer>]
2014
- # @see AttributeSets::Dpll::ModeSupported
2015
- def mode_supported; attributes[:"mode_supported"].map(&:value); end
1639
+ def mode_supported; self[:"mode_supported"]; end
2016
1640
  # Known enum values are defined in {Enums::LockStatus}.
2017
1641
  # @rbs return: ::Integer
2018
1642
  # @return [Integer]
2019
- # @see AttributeSets::Dpll::LockStatus
2020
- def lock_status; attributes[:"lock_status"]&.value; end
1643
+ def lock_status; self[:"lock_status"]; end
2021
1644
  # @rbs return: ::Integer
2022
1645
  # @return [Integer]
2023
- # @see AttributeSets::Dpll::Temp
2024
- def temp; attributes[:"temp"]&.value; end
1646
+ def temp; self[:"temp"]; end
2025
1647
  # Known enum values are defined in {Enums::Type}.
2026
1648
  # @rbs return: ::Integer
2027
1649
  # @return [Integer]
2028
- # @see AttributeSets::Dpll::Type
2029
- def type; attributes[:"type"]&.value; end
1650
+ def type; self[:"type"]; end
2030
1651
  # Known enum values are defined in {Enums::LockStatusError}.
2031
1652
  # @rbs return: ::Integer
2032
1653
  # @return [Integer]
2033
- # @see AttributeSets::Dpll::LockStatusError
2034
- def lock_status_error; attributes[:"lock_status_error"]&.value; end
1654
+ def lock_status_error; self[:"lock_status_error"]; end
2035
1655
  # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
2036
1656
  #
2037
1657
  # Known enum values are defined in {Enums::FeatureState}.
2038
1658
  # @rbs return: ::Integer
2039
1659
  # @return [Integer]
2040
- # @see AttributeSets::Dpll::PhaseOffsetMonitor
2041
- def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
1660
+ def phase_offset_monitor; self[:"phase_offset_monitor"]; end
2042
1661
  # Averaging factor applied to calculation of reported phase offset.
2043
1662
  # @rbs return: ::Integer
2044
1663
  # @return [Integer]
2045
- # @see AttributeSets::Dpll::PhaseOffsetAvgFactor
2046
- def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
1664
+ def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]; end
2047
1665
  # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
2048
1666
  #
2049
1667
  # Known enum values are defined in {Enums::FeatureState}.
2050
1668
  # @rbs return: ::Integer
2051
1669
  # @return [Integer]
2052
- # @see AttributeSets::Dpll::FrequencyMonitor
2053
- def frequency_monitor; attributes[:"frequency_monitor"]&.value; end
1670
+ def frequency_monitor; self[:"frequency_monitor"]; end
2054
1671
  end
2055
1672
  # Notification about device configuration being changed
2056
1673
  #
2057
1674
  # Multicast group: `monitor`.
2058
- class DeviceChangeNtf < ::Nl::Genl::Message
1675
+ class DeviceChangeNtf < ::Nl::Message
2059
1676
  TYPE = 6
2060
1677
  FIXED_HEADER = nil
2061
1678
  ATTRIBUTE_SET = AttributeSets::Dpll
2062
- 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 frequency_monitor])
1679
+ ATTRIBUTES = %i[id module_name clock_id mode mode_supported lock_status temp type lock_status_error phase_offset_monitor phase_offset_avg_factor frequency_monitor].freeze
1680
+ include ATTRIBUTE_SET::Definitions
1681
+ def initialize(attributes = [])
1682
+ @attributes = attributes
1683
+ end
1684
+ # @private
1685
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1686
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1687
+ new(
1688
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1689
+ )
1690
+ end
1691
+ # Decodes a message payload from the decoder into a new instance.
1692
+ # @rbs (::Nl::Decoder decoder) -> instance
1693
+ def self.decode(decoder)
1694
+ new(decode_attributes(decoder, BY_TYPE, 0))
1695
+ end
1696
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1697
+ encode_attributes(encoder, external_selectors:)
1698
+ end
2063
1699
  # @rbs return: ::Integer
2064
1700
  # @return [Integer]
2065
- # @see AttributeSets::Dpll::Id
2066
- def id; attributes[:"id"]&.value; end
1701
+ def id; self[:"id"]; end
2067
1702
  # @rbs return: ::String
2068
1703
  # @return [String]
2069
- # @see AttributeSets::Dpll::ModuleName
2070
- def module_name; attributes[:"module_name"]&.value; end
1704
+ def module_name; self[:"module_name"]; end
2071
1705
  # @rbs return: ::Integer
2072
1706
  # @return [Integer]
2073
- # @see AttributeSets::Dpll::ClockId
2074
- def clock_id; attributes[:"clock_id"]&.value; end
1707
+ def clock_id; self[:"clock_id"]; end
2075
1708
  # Known enum values are defined in {Enums::Mode}.
2076
1709
  # @rbs return: ::Integer
2077
1710
  # @return [Integer]
2078
- # @see AttributeSets::Dpll::Mode
2079
- def mode; attributes[:"mode"]&.value; end
1711
+ def mode; self[:"mode"]; end
2080
1712
  # Known enum values are defined in {Enums::Mode}.
2081
1713
  # @rbs return: ::Array[::Integer]
2082
1714
  # @return [Array<Integer>]
2083
- # @see AttributeSets::Dpll::ModeSupported
2084
- def mode_supported; attributes[:"mode_supported"].map(&:value); end
1715
+ def mode_supported; self[:"mode_supported"]; end
2085
1716
  # Known enum values are defined in {Enums::LockStatus}.
2086
1717
  # @rbs return: ::Integer
2087
1718
  # @return [Integer]
2088
- # @see AttributeSets::Dpll::LockStatus
2089
- def lock_status; attributes[:"lock_status"]&.value; end
1719
+ def lock_status; self[:"lock_status"]; end
2090
1720
  # @rbs return: ::Integer
2091
1721
  # @return [Integer]
2092
- # @see AttributeSets::Dpll::Temp
2093
- def temp; attributes[:"temp"]&.value; end
1722
+ def temp; self[:"temp"]; end
2094
1723
  # Known enum values are defined in {Enums::Type}.
2095
1724
  # @rbs return: ::Integer
2096
1725
  # @return [Integer]
2097
- # @see AttributeSets::Dpll::Type
2098
- def type; attributes[:"type"]&.value; end
1726
+ def type; self[:"type"]; end
2099
1727
  # Known enum values are defined in {Enums::LockStatusError}.
2100
1728
  # @rbs return: ::Integer
2101
1729
  # @return [Integer]
2102
- # @see AttributeSets::Dpll::LockStatusError
2103
- def lock_status_error; attributes[:"lock_status_error"]&.value; end
1730
+ def lock_status_error; self[:"lock_status_error"]; end
2104
1731
  # Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
2105
1732
  #
2106
1733
  # Known enum values are defined in {Enums::FeatureState}.
2107
1734
  # @rbs return: ::Integer
2108
1735
  # @return [Integer]
2109
- # @see AttributeSets::Dpll::PhaseOffsetMonitor
2110
- def phase_offset_monitor; attributes[:"phase_offset_monitor"]&.value; end
1736
+ def phase_offset_monitor; self[:"phase_offset_monitor"]; end
2111
1737
  # Averaging factor applied to calculation of reported phase offset.
2112
1738
  # @rbs return: ::Integer
2113
1739
  # @return [Integer]
2114
- # @see AttributeSets::Dpll::PhaseOffsetAvgFactor
2115
- def phase_offset_avg_factor; attributes[:"phase_offset_avg_factor"]&.value; end
1740
+ def phase_offset_avg_factor; self[:"phase_offset_avg_factor"]; end
2116
1741
  # Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.
2117
1742
  #
2118
1743
  # Known enum values are defined in {Enums::FeatureState}.
2119
1744
  # @rbs return: ::Integer
2120
1745
  # @return [Integer]
2121
- # @see AttributeSets::Dpll::FrequencyMonitor
2122
- def frequency_monitor; attributes[:"frequency_monitor"]&.value; end
1746
+ def frequency_monitor; self[:"frequency_monitor"]; end
2123
1747
  end
2124
1748
  # Notification about pin appearing
2125
1749
  #
2126
1750
  # Multicast group: `monitor`.
2127
- class PinCreateNtf < ::Nl::Genl::Message
1751
+ class PinCreateNtf < ::Nl::Message
2128
1752
  TYPE = 10
2129
1753
  FIXED_HEADER = nil
2130
1754
  ATTRIBUTE_SET = AttributeSets::Pin
2131
- 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 fractional_frequency_offset_ppt measured_frequency])
1755
+ ATTRIBUTES = %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 fractional_frequency_offset_ppt measured_frequency].freeze
1756
+ include ATTRIBUTE_SET::Definitions
1757
+ def initialize(attributes = [])
1758
+ @attributes = attributes
1759
+ end
1760
+ # @private
1761
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1762
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1763
+ new(
1764
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1765
+ )
1766
+ end
1767
+ # Decodes a message payload from the decoder into a new instance.
1768
+ # @rbs (::Nl::Decoder decoder) -> instance
1769
+ def self.decode(decoder)
1770
+ new(decode_attributes(decoder, BY_TYPE, 0))
1771
+ end
1772
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1773
+ encode_attributes(encoder, external_selectors:)
1774
+ end
2132
1775
  # @rbs return: ::Integer
2133
1776
  # @return [Integer]
2134
- # @see AttributeSets::Pin::Id
2135
- def id; attributes[:"id"]&.value; end
1777
+ def id; self[:"id"]; end
2136
1778
  # @rbs return: ::String
2137
1779
  # @return [String]
2138
- # @see AttributeSets::Pin::ModuleName
2139
- def module_name; attributes[:"module_name"]&.value; end
1780
+ def module_name; self[:"module_name"]; end
2140
1781
  # @rbs return: ::Integer
2141
1782
  # @return [Integer]
2142
- # @see AttributeSets::Pin::ClockId
2143
- def clock_id; attributes[:"clock_id"]&.value; end
1783
+ def clock_id; self[:"clock_id"]; end
2144
1784
  # @rbs return: ::String
2145
1785
  # @return [String]
2146
- # @see AttributeSets::Pin::BoardLabel
2147
- def board_label; attributes[:"board_label"]&.value; end
1786
+ def board_label; self[:"board_label"]; end
2148
1787
  # @rbs return: ::String
2149
1788
  # @return [String]
2150
- # @see AttributeSets::Pin::PanelLabel
2151
- def panel_label; attributes[:"panel_label"]&.value; end
1789
+ def panel_label; self[:"panel_label"]; end
2152
1790
  # @rbs return: ::String
2153
1791
  # @return [String]
2154
- # @see AttributeSets::Pin::PackageLabel
2155
- def package_label; attributes[:"package_label"]&.value; end
1792
+ def package_label; self[:"package_label"]; end
2156
1793
  # Known enum values are defined in {Enums::PinType}.
2157
1794
  # @rbs return: ::Integer
2158
1795
  # @return [Integer]
2159
- # @see AttributeSets::Pin::Type
2160
- def type; attributes[:"type"]&.value; end
1796
+ def type; self[:"type"]; end
2161
1797
  # @rbs return: ::Integer
2162
1798
  # @return [Integer]
2163
- # @see AttributeSets::Pin::Frequency
2164
- def frequency; attributes[:"frequency"]&.value; end
1799
+ def frequency; self[:"frequency"]; end
2165
1800
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
2166
1801
  # @return [Array<AttributeSets::FrequencyRange>]
2167
- # @see AttributeSets::Pin::FrequencySupported
2168
- def frequency_supported; attributes[:"frequency_supported"].map(&:value); end
1802
+ def frequency_supported; self[:"frequency_supported"]; end
2169
1803
  # Known flags are defined in {Flags::PinCapabilities}.
2170
1804
  # @rbs return: ::Integer
2171
1805
  # @return [Integer]
2172
- # @see AttributeSets::Pin::Capabilities
2173
- def capabilities; attributes[:"capabilities"]&.value; end
1806
+ def capabilities; self[:"capabilities"]; end
2174
1807
  # @rbs return: ::Array[AttributeSets::PinParentDevice]
2175
1808
  # @return [Array<AttributeSets::PinParentDevice>]
2176
- # @see AttributeSets::Pin::ParentDevice
2177
- def parent_device; attributes[:"parent_device"].map(&:value); end
1809
+ def parent_device; self[:"parent_device"]; end
2178
1810
  # @rbs return: ::Array[AttributeSets::PinParentPin]
2179
1811
  # @return [Array<AttributeSets::PinParentPin>]
2180
- # @see AttributeSets::Pin::ParentPin
2181
- def parent_pin; attributes[:"parent_pin"].map(&:value); end
1812
+ def parent_pin; self[:"parent_pin"]; end
2182
1813
  # @rbs return: ::Integer
2183
1814
  # @return [Integer]
2184
- # @see AttributeSets::Pin::PhaseAdjustMin
2185
- def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end
1815
+ def phase_adjust_min; self[:"phase_adjust_min"]; end
2186
1816
  # @rbs return: ::Integer
2187
1817
  # @return [Integer]
2188
- # @see AttributeSets::Pin::PhaseAdjustMax
2189
- def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end
1818
+ def phase_adjust_max; self[:"phase_adjust_max"]; end
2190
1819
  # @rbs return: ::Integer
2191
1820
  # @return [Integer]
2192
- # @see AttributeSets::Pin::PhaseAdjust
2193
- def phase_adjust; attributes[:"phase_adjust"]&.value; end
1821
+ def phase_adjust; self[:"phase_adjust"]; end
2194
1822
  # The FFO (Fractional Frequency Offset) of the pin.
2195
1823
  # At top level this represents the RX vs TX symbol rate
2196
1824
  # offset on the media associated with the pin. Inside
2197
1825
  # the pin-parent-device nest it represents the frequency
2198
1826
  # offset between the pin and its parent DPLL device.
1827
+ # For pins of type PIN_TYPE_INT_NCO this represents
1828
+ # the DPLL's current output frequency offset from its
1829
+ # nominal frequency.
2199
1830
  # Value is in PPM (parts per million).
2200
1831
  # This is a lower-precision version of
2201
1832
  # fractional-frequency-offset-ppt.
2202
1833
  # @rbs return: ::Integer
2203
1834
  # @return [Integer]
2204
- # @see AttributeSets::Pin::FractionalFrequencyOffset
2205
- def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end
1835
+ def fractional_frequency_offset; self[:"fractional_frequency_offset"]; end
2206
1836
  # Frequency of Embedded SYNC signal. If provided, the pin is configured
2207
1837
  # with a SYNC signal embedded into its base clock frequency.
2208
1838
  # @rbs return: ::Integer
2209
1839
  # @return [Integer]
2210
- # @see AttributeSets::Pin::EsyncFrequency
2211
- def esync_frequency; attributes[:"esync_frequency"]&.value; end
1840
+ def esync_frequency; self[:"esync_frequency"]; end
2212
1841
  # If provided a pin is capable of embedding a SYNC signal (within given
2213
1842
  # range) into its base frequency signal.
2214
1843
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
2215
1844
  # @return [Array<AttributeSets::FrequencyRange>]
2216
- # @see AttributeSets::Pin::EsyncFrequencySupported
2217
- def esync_frequency_supported; attributes[:"esync_frequency_supported"].map(&:value); end
1845
+ def esync_frequency_supported; self[:"esync_frequency_supported"]; end
2218
1846
  # A ratio of high to low state of a SYNC signal pulse embedded
2219
1847
  # into base clock frequency. Value is in percents.
2220
1848
  # @rbs return: ::Integer
2221
1849
  # @return [Integer]
2222
- # @see AttributeSets::Pin::EsyncPulse
2223
- def esync_pulse; attributes[:"esync_pulse"]&.value; end
1850
+ def esync_pulse; self[:"esync_pulse"]; end
2224
1851
  # Capable pin provides list of pins that can be bound to create a
2225
1852
  # reference-sync pin pair.
2226
1853
  # @rbs return: ::Array[AttributeSets::ReferenceSync]
2227
1854
  # @return [Array<AttributeSets::ReferenceSync>]
2228
- # @see AttributeSets::Pin::ReferenceSync
2229
- def reference_sync; attributes[:"reference_sync"].map(&:value); end
1855
+ def reference_sync; self[:"reference_sync"]; end
2230
1856
  # Granularity of phase adjustment, in picoseconds. The value of
2231
1857
  # phase adjustment must be a multiple of this granularity.
2232
1858
  # @rbs return: ::Integer
2233
1859
  # @return [Integer]
2234
- # @see AttributeSets::Pin::PhaseAdjustGran
2235
- def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end
1860
+ def phase_adjust_gran; self[:"phase_adjust_gran"]; end
2236
1861
  # The FFO (Fractional Frequency Offset) of the pin.
2237
1862
  # At top level this represents the RX vs TX symbol rate
2238
1863
  # offset on the media associated with the pin. Inside
2239
1864
  # the pin-parent-device nest it represents the frequency
2240
1865
  # offset between the pin and its parent DPLL device.
1866
+ # For pins of type PIN_TYPE_INT_NCO this represents
1867
+ # the DPLL's current output frequency offset from its
1868
+ # nominal frequency.
2241
1869
  # Value is in PPT (parts per trillion, 10^-12).
2242
1870
  # This is a higher-precision version of
2243
1871
  # fractional-frequency-offset.
2244
1872
  # @rbs return: ::Integer
2245
1873
  # @return [Integer]
2246
- # @see AttributeSets::Pin::FractionalFrequencyOffsetPpt
2247
- def fractional_frequency_offset_ppt; attributes[:"fractional_frequency_offset_ppt"]&.value; end
1874
+ def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]; end
2248
1875
  # The measured frequency of the input pin in millihertz (mHz).
2249
1876
  # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
2250
1877
  # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
@@ -2254,133 +1881,135 @@ class Dpll < ::Nl::Genl::Family
2254
1881
  # of a measured frequency value.
2255
1882
  # @rbs return: ::Integer
2256
1883
  # @return [Integer]
2257
- # @see AttributeSets::Pin::MeasuredFrequency
2258
- def measured_frequency; attributes[:"measured_frequency"]&.value; end
1884
+ def measured_frequency; self[:"measured_frequency"]; end
2259
1885
  end
2260
1886
  # Notification about pin disappearing
2261
1887
  #
2262
1888
  # Multicast group: `monitor`.
2263
- class PinDeleteNtf < ::Nl::Genl::Message
1889
+ class PinDeleteNtf < ::Nl::Message
2264
1890
  TYPE = 11
2265
1891
  FIXED_HEADER = nil
2266
1892
  ATTRIBUTE_SET = AttributeSets::Pin
2267
- 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 fractional_frequency_offset_ppt measured_frequency])
1893
+ ATTRIBUTES = %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 fractional_frequency_offset_ppt measured_frequency].freeze
1894
+ include ATTRIBUTE_SET::Definitions
1895
+ def initialize(attributes = [])
1896
+ @attributes = attributes
1897
+ end
1898
+ # @private
1899
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1900
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
1901
+ new(
1902
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
1903
+ )
1904
+ end
1905
+ # Decodes a message payload from the decoder into a new instance.
1906
+ # @rbs (::Nl::Decoder decoder) -> instance
1907
+ def self.decode(decoder)
1908
+ new(decode_attributes(decoder, BY_TYPE, 0))
1909
+ end
1910
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
1911
+ encode_attributes(encoder, external_selectors:)
1912
+ end
2268
1913
  # @rbs return: ::Integer
2269
1914
  # @return [Integer]
2270
- # @see AttributeSets::Pin::Id
2271
- def id; attributes[:"id"]&.value; end
1915
+ def id; self[:"id"]; end
2272
1916
  # @rbs return: ::String
2273
1917
  # @return [String]
2274
- # @see AttributeSets::Pin::ModuleName
2275
- def module_name; attributes[:"module_name"]&.value; end
1918
+ def module_name; self[:"module_name"]; end
2276
1919
  # @rbs return: ::Integer
2277
1920
  # @return [Integer]
2278
- # @see AttributeSets::Pin::ClockId
2279
- def clock_id; attributes[:"clock_id"]&.value; end
1921
+ def clock_id; self[:"clock_id"]; end
2280
1922
  # @rbs return: ::String
2281
1923
  # @return [String]
2282
- # @see AttributeSets::Pin::BoardLabel
2283
- def board_label; attributes[:"board_label"]&.value; end
1924
+ def board_label; self[:"board_label"]; end
2284
1925
  # @rbs return: ::String
2285
1926
  # @return [String]
2286
- # @see AttributeSets::Pin::PanelLabel
2287
- def panel_label; attributes[:"panel_label"]&.value; end
1927
+ def panel_label; self[:"panel_label"]; end
2288
1928
  # @rbs return: ::String
2289
1929
  # @return [String]
2290
- # @see AttributeSets::Pin::PackageLabel
2291
- def package_label; attributes[:"package_label"]&.value; end
1930
+ def package_label; self[:"package_label"]; end
2292
1931
  # Known enum values are defined in {Enums::PinType}.
2293
1932
  # @rbs return: ::Integer
2294
1933
  # @return [Integer]
2295
- # @see AttributeSets::Pin::Type
2296
- def type; attributes[:"type"]&.value; end
1934
+ def type; self[:"type"]; end
2297
1935
  # @rbs return: ::Integer
2298
1936
  # @return [Integer]
2299
- # @see AttributeSets::Pin::Frequency
2300
- def frequency; attributes[:"frequency"]&.value; end
1937
+ def frequency; self[:"frequency"]; end
2301
1938
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
2302
1939
  # @return [Array<AttributeSets::FrequencyRange>]
2303
- # @see AttributeSets::Pin::FrequencySupported
2304
- def frequency_supported; attributes[:"frequency_supported"].map(&:value); end
1940
+ def frequency_supported; self[:"frequency_supported"]; end
2305
1941
  # Known flags are defined in {Flags::PinCapabilities}.
2306
1942
  # @rbs return: ::Integer
2307
1943
  # @return [Integer]
2308
- # @see AttributeSets::Pin::Capabilities
2309
- def capabilities; attributes[:"capabilities"]&.value; end
1944
+ def capabilities; self[:"capabilities"]; end
2310
1945
  # @rbs return: ::Array[AttributeSets::PinParentDevice]
2311
1946
  # @return [Array<AttributeSets::PinParentDevice>]
2312
- # @see AttributeSets::Pin::ParentDevice
2313
- def parent_device; attributes[:"parent_device"].map(&:value); end
1947
+ def parent_device; self[:"parent_device"]; end
2314
1948
  # @rbs return: ::Array[AttributeSets::PinParentPin]
2315
1949
  # @return [Array<AttributeSets::PinParentPin>]
2316
- # @see AttributeSets::Pin::ParentPin
2317
- def parent_pin; attributes[:"parent_pin"].map(&:value); end
1950
+ def parent_pin; self[:"parent_pin"]; end
2318
1951
  # @rbs return: ::Integer
2319
1952
  # @return [Integer]
2320
- # @see AttributeSets::Pin::PhaseAdjustMin
2321
- def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end
1953
+ def phase_adjust_min; self[:"phase_adjust_min"]; end
2322
1954
  # @rbs return: ::Integer
2323
1955
  # @return [Integer]
2324
- # @see AttributeSets::Pin::PhaseAdjustMax
2325
- def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end
1956
+ def phase_adjust_max; self[:"phase_adjust_max"]; end
2326
1957
  # @rbs return: ::Integer
2327
1958
  # @return [Integer]
2328
- # @see AttributeSets::Pin::PhaseAdjust
2329
- def phase_adjust; attributes[:"phase_adjust"]&.value; end
1959
+ def phase_adjust; self[:"phase_adjust"]; end
2330
1960
  # The FFO (Fractional Frequency Offset) of the pin.
2331
1961
  # At top level this represents the RX vs TX symbol rate
2332
1962
  # offset on the media associated with the pin. Inside
2333
1963
  # the pin-parent-device nest it represents the frequency
2334
1964
  # offset between the pin and its parent DPLL device.
1965
+ # For pins of type PIN_TYPE_INT_NCO this represents
1966
+ # the DPLL's current output frequency offset from its
1967
+ # nominal frequency.
2335
1968
  # Value is in PPM (parts per million).
2336
1969
  # This is a lower-precision version of
2337
1970
  # fractional-frequency-offset-ppt.
2338
1971
  # @rbs return: ::Integer
2339
1972
  # @return [Integer]
2340
- # @see AttributeSets::Pin::FractionalFrequencyOffset
2341
- def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end
1973
+ def fractional_frequency_offset; self[:"fractional_frequency_offset"]; end
2342
1974
  # Frequency of Embedded SYNC signal. If provided, the pin is configured
2343
1975
  # with a SYNC signal embedded into its base clock frequency.
2344
1976
  # @rbs return: ::Integer
2345
1977
  # @return [Integer]
2346
- # @see AttributeSets::Pin::EsyncFrequency
2347
- def esync_frequency; attributes[:"esync_frequency"]&.value; end
1978
+ def esync_frequency; self[:"esync_frequency"]; end
2348
1979
  # If provided a pin is capable of embedding a SYNC signal (within given
2349
1980
  # range) into its base frequency signal.
2350
1981
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
2351
1982
  # @return [Array<AttributeSets::FrequencyRange>]
2352
- # @see AttributeSets::Pin::EsyncFrequencySupported
2353
- def esync_frequency_supported; attributes[:"esync_frequency_supported"].map(&:value); end
1983
+ def esync_frequency_supported; self[:"esync_frequency_supported"]; end
2354
1984
  # A ratio of high to low state of a SYNC signal pulse embedded
2355
1985
  # into base clock frequency. Value is in percents.
2356
1986
  # @rbs return: ::Integer
2357
1987
  # @return [Integer]
2358
- # @see AttributeSets::Pin::EsyncPulse
2359
- def esync_pulse; attributes[:"esync_pulse"]&.value; end
1988
+ def esync_pulse; self[:"esync_pulse"]; end
2360
1989
  # Capable pin provides list of pins that can be bound to create a
2361
1990
  # reference-sync pin pair.
2362
1991
  # @rbs return: ::Array[AttributeSets::ReferenceSync]
2363
1992
  # @return [Array<AttributeSets::ReferenceSync>]
2364
- # @see AttributeSets::Pin::ReferenceSync
2365
- def reference_sync; attributes[:"reference_sync"].map(&:value); end
1993
+ def reference_sync; self[:"reference_sync"]; end
2366
1994
  # Granularity of phase adjustment, in picoseconds. The value of
2367
1995
  # phase adjustment must be a multiple of this granularity.
2368
1996
  # @rbs return: ::Integer
2369
1997
  # @return [Integer]
2370
- # @see AttributeSets::Pin::PhaseAdjustGran
2371
- def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end
1998
+ def phase_adjust_gran; self[:"phase_adjust_gran"]; end
2372
1999
  # The FFO (Fractional Frequency Offset) of the pin.
2373
2000
  # At top level this represents the RX vs TX symbol rate
2374
2001
  # offset on the media associated with the pin. Inside
2375
2002
  # the pin-parent-device nest it represents the frequency
2376
2003
  # offset between the pin and its parent DPLL device.
2004
+ # For pins of type PIN_TYPE_INT_NCO this represents
2005
+ # the DPLL's current output frequency offset from its
2006
+ # nominal frequency.
2377
2007
  # Value is in PPT (parts per trillion, 10^-12).
2378
2008
  # This is a higher-precision version of
2379
2009
  # fractional-frequency-offset.
2380
2010
  # @rbs return: ::Integer
2381
2011
  # @return [Integer]
2382
- # @see AttributeSets::Pin::FractionalFrequencyOffsetPpt
2383
- def fractional_frequency_offset_ppt; attributes[:"fractional_frequency_offset_ppt"]&.value; end
2012
+ def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]; end
2384
2013
  # The measured frequency of the input pin in millihertz (mHz).
2385
2014
  # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
2386
2015
  # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
@@ -2390,133 +2019,135 @@ class Dpll < ::Nl::Genl::Family
2390
2019
  # of a measured frequency value.
2391
2020
  # @rbs return: ::Integer
2392
2021
  # @return [Integer]
2393
- # @see AttributeSets::Pin::MeasuredFrequency
2394
- def measured_frequency; attributes[:"measured_frequency"]&.value; end
2022
+ def measured_frequency; self[:"measured_frequency"]; end
2395
2023
  end
2396
2024
  # Notification about pin configuration being changed
2397
2025
  #
2398
2026
  # Multicast group: `monitor`.
2399
- class PinChangeNtf < ::Nl::Genl::Message
2027
+ class PinChangeNtf < ::Nl::Message
2400
2028
  TYPE = 12
2401
2029
  FIXED_HEADER = nil
2402
2030
  ATTRIBUTE_SET = AttributeSets::Pin
2403
- 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 fractional_frequency_offset_ppt measured_frequency])
2031
+ ATTRIBUTES = %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 fractional_frequency_offset_ppt measured_frequency].freeze
2032
+ include ATTRIBUTE_SET::Definitions
2033
+ def initialize(attributes = [])
2034
+ @attributes = attributes
2035
+ end
2036
+ # @private
2037
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
2038
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
2039
+ new(
2040
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
2041
+ )
2042
+ end
2043
+ # Decodes a message payload from the decoder into a new instance.
2044
+ # @rbs (::Nl::Decoder decoder) -> instance
2045
+ def self.decode(decoder)
2046
+ new(decode_attributes(decoder, BY_TYPE, 0))
2047
+ end
2048
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
2049
+ encode_attributes(encoder, external_selectors:)
2050
+ end
2404
2051
  # @rbs return: ::Integer
2405
2052
  # @return [Integer]
2406
- # @see AttributeSets::Pin::Id
2407
- def id; attributes[:"id"]&.value; end
2053
+ def id; self[:"id"]; end
2408
2054
  # @rbs return: ::String
2409
2055
  # @return [String]
2410
- # @see AttributeSets::Pin::ModuleName
2411
- def module_name; attributes[:"module_name"]&.value; end
2056
+ def module_name; self[:"module_name"]; end
2412
2057
  # @rbs return: ::Integer
2413
2058
  # @return [Integer]
2414
- # @see AttributeSets::Pin::ClockId
2415
- def clock_id; attributes[:"clock_id"]&.value; end
2059
+ def clock_id; self[:"clock_id"]; end
2416
2060
  # @rbs return: ::String
2417
2061
  # @return [String]
2418
- # @see AttributeSets::Pin::BoardLabel
2419
- def board_label; attributes[:"board_label"]&.value; end
2062
+ def board_label; self[:"board_label"]; end
2420
2063
  # @rbs return: ::String
2421
2064
  # @return [String]
2422
- # @see AttributeSets::Pin::PanelLabel
2423
- def panel_label; attributes[:"panel_label"]&.value; end
2065
+ def panel_label; self[:"panel_label"]; end
2424
2066
  # @rbs return: ::String
2425
2067
  # @return [String]
2426
- # @see AttributeSets::Pin::PackageLabel
2427
- def package_label; attributes[:"package_label"]&.value; end
2068
+ def package_label; self[:"package_label"]; end
2428
2069
  # Known enum values are defined in {Enums::PinType}.
2429
2070
  # @rbs return: ::Integer
2430
2071
  # @return [Integer]
2431
- # @see AttributeSets::Pin::Type
2432
- def type; attributes[:"type"]&.value; end
2072
+ def type; self[:"type"]; end
2433
2073
  # @rbs return: ::Integer
2434
2074
  # @return [Integer]
2435
- # @see AttributeSets::Pin::Frequency
2436
- def frequency; attributes[:"frequency"]&.value; end
2075
+ def frequency; self[:"frequency"]; end
2437
2076
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
2438
2077
  # @return [Array<AttributeSets::FrequencyRange>]
2439
- # @see AttributeSets::Pin::FrequencySupported
2440
- def frequency_supported; attributes[:"frequency_supported"].map(&:value); end
2078
+ def frequency_supported; self[:"frequency_supported"]; end
2441
2079
  # Known flags are defined in {Flags::PinCapabilities}.
2442
2080
  # @rbs return: ::Integer
2443
2081
  # @return [Integer]
2444
- # @see AttributeSets::Pin::Capabilities
2445
- def capabilities; attributes[:"capabilities"]&.value; end
2082
+ def capabilities; self[:"capabilities"]; end
2446
2083
  # @rbs return: ::Array[AttributeSets::PinParentDevice]
2447
2084
  # @return [Array<AttributeSets::PinParentDevice>]
2448
- # @see AttributeSets::Pin::ParentDevice
2449
- def parent_device; attributes[:"parent_device"].map(&:value); end
2085
+ def parent_device; self[:"parent_device"]; end
2450
2086
  # @rbs return: ::Array[AttributeSets::PinParentPin]
2451
2087
  # @return [Array<AttributeSets::PinParentPin>]
2452
- # @see AttributeSets::Pin::ParentPin
2453
- def parent_pin; attributes[:"parent_pin"].map(&:value); end
2088
+ def parent_pin; self[:"parent_pin"]; end
2454
2089
  # @rbs return: ::Integer
2455
2090
  # @return [Integer]
2456
- # @see AttributeSets::Pin::PhaseAdjustMin
2457
- def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end
2091
+ def phase_adjust_min; self[:"phase_adjust_min"]; end
2458
2092
  # @rbs return: ::Integer
2459
2093
  # @return [Integer]
2460
- # @see AttributeSets::Pin::PhaseAdjustMax
2461
- def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end
2094
+ def phase_adjust_max; self[:"phase_adjust_max"]; end
2462
2095
  # @rbs return: ::Integer
2463
2096
  # @return [Integer]
2464
- # @see AttributeSets::Pin::PhaseAdjust
2465
- def phase_adjust; attributes[:"phase_adjust"]&.value; end
2097
+ def phase_adjust; self[:"phase_adjust"]; end
2466
2098
  # The FFO (Fractional Frequency Offset) of the pin.
2467
2099
  # At top level this represents the RX vs TX symbol rate
2468
2100
  # offset on the media associated with the pin. Inside
2469
2101
  # the pin-parent-device nest it represents the frequency
2470
2102
  # offset between the pin and its parent DPLL device.
2103
+ # For pins of type PIN_TYPE_INT_NCO this represents
2104
+ # the DPLL's current output frequency offset from its
2105
+ # nominal frequency.
2471
2106
  # Value is in PPM (parts per million).
2472
2107
  # This is a lower-precision version of
2473
2108
  # fractional-frequency-offset-ppt.
2474
2109
  # @rbs return: ::Integer
2475
2110
  # @return [Integer]
2476
- # @see AttributeSets::Pin::FractionalFrequencyOffset
2477
- def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end
2111
+ def fractional_frequency_offset; self[:"fractional_frequency_offset"]; end
2478
2112
  # Frequency of Embedded SYNC signal. If provided, the pin is configured
2479
2113
  # with a SYNC signal embedded into its base clock frequency.
2480
2114
  # @rbs return: ::Integer
2481
2115
  # @return [Integer]
2482
- # @see AttributeSets::Pin::EsyncFrequency
2483
- def esync_frequency; attributes[:"esync_frequency"]&.value; end
2116
+ def esync_frequency; self[:"esync_frequency"]; end
2484
2117
  # If provided a pin is capable of embedding a SYNC signal (within given
2485
2118
  # range) into its base frequency signal.
2486
2119
  # @rbs return: ::Array[AttributeSets::FrequencyRange]
2487
2120
  # @return [Array<AttributeSets::FrequencyRange>]
2488
- # @see AttributeSets::Pin::EsyncFrequencySupported
2489
- def esync_frequency_supported; attributes[:"esync_frequency_supported"].map(&:value); end
2121
+ def esync_frequency_supported; self[:"esync_frequency_supported"]; end
2490
2122
  # A ratio of high to low state of a SYNC signal pulse embedded
2491
2123
  # into base clock frequency. Value is in percents.
2492
2124
  # @rbs return: ::Integer
2493
2125
  # @return [Integer]
2494
- # @see AttributeSets::Pin::EsyncPulse
2495
- def esync_pulse; attributes[:"esync_pulse"]&.value; end
2126
+ def esync_pulse; self[:"esync_pulse"]; end
2496
2127
  # Capable pin provides list of pins that can be bound to create a
2497
2128
  # reference-sync pin pair.
2498
2129
  # @rbs return: ::Array[AttributeSets::ReferenceSync]
2499
2130
  # @return [Array<AttributeSets::ReferenceSync>]
2500
- # @see AttributeSets::Pin::ReferenceSync
2501
- def reference_sync; attributes[:"reference_sync"].map(&:value); end
2131
+ def reference_sync; self[:"reference_sync"]; end
2502
2132
  # Granularity of phase adjustment, in picoseconds. The value of
2503
2133
  # phase adjustment must be a multiple of this granularity.
2504
2134
  # @rbs return: ::Integer
2505
2135
  # @return [Integer]
2506
- # @see AttributeSets::Pin::PhaseAdjustGran
2507
- def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end
2136
+ def phase_adjust_gran; self[:"phase_adjust_gran"]; end
2508
2137
  # The FFO (Fractional Frequency Offset) of the pin.
2509
2138
  # At top level this represents the RX vs TX symbol rate
2510
2139
  # offset on the media associated with the pin. Inside
2511
2140
  # the pin-parent-device nest it represents the frequency
2512
2141
  # offset between the pin and its parent DPLL device.
2142
+ # For pins of type PIN_TYPE_INT_NCO this represents
2143
+ # the DPLL's current output frequency offset from its
2144
+ # nominal frequency.
2513
2145
  # Value is in PPT (parts per trillion, 10^-12).
2514
2146
  # This is a higher-precision version of
2515
2147
  # fractional-frequency-offset.
2516
2148
  # @rbs return: ::Integer
2517
2149
  # @return [Integer]
2518
- # @see AttributeSets::Pin::FractionalFrequencyOffsetPpt
2519
- def fractional_frequency_offset_ppt; attributes[:"fractional_frequency_offset_ppt"]&.value; end
2150
+ def fractional_frequency_offset_ppt; self[:"fractional_frequency_offset_ppt"]; end
2520
2151
  # The measured frequency of the input pin in millihertz (mHz).
2521
2152
  # Value of (DPLL_A_PIN_MEASURED_FREQUENCY /
2522
2153
  # DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz)
@@ -2526,12 +2157,11 @@ class Dpll < ::Nl::Genl::Family
2526
2157
  # of a measured frequency value.
2527
2158
  # @rbs return: ::Integer
2528
2159
  # @return [Integer]
2529
- # @see AttributeSets::Pin::MeasuredFrequency
2530
- def measured_frequency; attributes[:"measured_frequency"]&.value; end
2160
+ def measured_frequency; self[:"measured_frequency"]; end
2531
2161
  end
2532
2162
  end
2533
2163
  # @private
2534
- NOTIFICATIONS = Ractor.make_shareable({4 => Notifications::DeviceCreateNtf, 5 => Notifications::DeviceDeleteNtf, 6 => Notifications::DeviceChangeNtf, 10 => Notifications::PinCreateNtf, 11 => Notifications::PinDeleteNtf, 12 => Notifications::PinChangeNtf}) #: Hash[::Integer, ::Class]
2164
+ NOTIFICATIONS = {4 => Notifications::DeviceCreateNtf, 5 => Notifications::DeviceDeleteNtf, 6 => Notifications::DeviceChangeNtf, 10 => Notifications::PinCreateNtf, 11 => Notifications::PinDeleteNtf, 12 => Notifications::PinChangeNtf}.freeze #: Hash[::Integer, ::Class]
2535
2165
  # Get id of dpll device that matches given attributes
2536
2166
  #
2537
2167
  #