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