Class: Nl::Linux::Dpll::Messages::DumpPinGetReply

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/dpll.rb

Overview

Get list of pins and its attributes.

  • dump request without any attributes given - list all the pins in the system
  • dump request with target dpll - list all the pins registered with a given dpll device
  • do request with target dpll and target pin - single pin attributes

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
8
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Pin
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])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#board_label ⇒ String

Returns:

  • (String)

See Also:



1747
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1747

def board_label; attributes[:"board_label"]&.value; end

#capabilities ⇒ Integer

Known flags are defined in Flags::PinCapabilities.

Returns:

  • (Integer)

See Also:



1773
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1773

def capabilities; attributes[:"capabilities"]&.value; end

#clock_id ⇒ Integer

Returns:

  • (Integer)

See Also:



1743
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1743

def clock_id; attributes[:"clock_id"]&.value; end

#esync_frequency ⇒ Integer

Frequency of Embedded SYNC signal. If provided, the pin is configured with a SYNC signal embedded into its base clock frequency.

Returns:

  • (Integer)

See Also:



1811
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1811

def esync_frequency; attributes[:"esync_frequency"]&.value; end

#esync_frequency_supported ⇒ Array<AttributeSets::FrequencyRange>

If provided a pin is capable of embedding a SYNC signal (within given range) into its base frequency signal.



1817
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1817

def esync_frequency_supported; attributes[:"esync_frequency_supported"].map(&:value); end

#esync_pulse ⇒ Integer

A ratio of high to low state of a SYNC signal pulse embedded into base clock frequency. Value is in percents.

Returns:

  • (Integer)

See Also:



1823
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1823

def esync_pulse; attributes[:"esync_pulse"]&.value; end

#fractional_frequency_offset ⇒ Integer

The FFO (Fractional Frequency Offset) of the pin. At top level this represents the RX vs TX symbol rate offset on the media associated with the pin. Inside the pin-parent-device nest it represents the frequency offset between the pin and its parent DPLL device. Value is in PPM (parts per million). This is a lower-precision version of fractional-frequency-offset-ppt.

Returns:

  • (Integer)

See Also:



1805
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1805

def fractional_frequency_offset; attributes[:"fractional_frequency_offset"]&.value; end

#fractional_frequency_offset_ppt ⇒ Integer

The FFO (Fractional Frequency Offset) of the pin. At top level this represents the RX vs TX symbol rate offset on the media associated with the pin. Inside the pin-parent-device nest it represents the frequency offset between the pin and its parent DPLL device. Value is in PPT (parts per trillion, 10^-12). This is a higher-precision version of fractional-frequency-offset.



1847
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1847

def fractional_frequency_offset_ppt; attributes[:"fractional_frequency_offset_ppt"]&.value; end

#frequency ⇒ Integer

Returns:

  • (Integer)

See Also:



1764
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1764

def frequency; attributes[:"frequency"]&.value; end

#frequency_supported ⇒ Array<AttributeSets::FrequencyRange>



1768
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1768

def frequency_supported; attributes[:"frequency_supported"].map(&:value); end

#id ⇒ Integer

Returns:

  • (Integer)

See Also:



1735
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1735

def id; attributes[:"id"]&.value; end

#measured_frequency ⇒ Integer

The measured frequency of the input pin in millihertz (mHz). Value of (DPLL_A_PIN_MEASURED_FREQUENCY / DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is an integer part (Hz) of a measured frequency value. Value of (DPLL_A_PIN_MEASURED_FREQUENCY % DPLL_PIN_MEASURED_FREQUENCY_DIVIDER) is a fractional part of a measured frequency value.

Returns:

  • (Integer)

See Also:



1858
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1858

def measured_frequency; attributes[:"measured_frequency"]&.value; end

#module_name ⇒ String

Returns:

  • (String)

See Also:



1739
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1739

def module_name; attributes[:"module_name"]&.value; end

#package_label ⇒ String

Returns:

  • (String)

See Also:



1755
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1755

def package_label; attributes[:"package_label"]&.value; end

#panel_label ⇒ String

Returns:

  • (String)

See Also:



1751
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1751

def panel_label; attributes[:"panel_label"]&.value; end

#parent_device ⇒ Array<AttributeSets::PinParentDevice>



1777
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1777

def parent_device; attributes[:"parent_device"].map(&:value); end

#parent_pin ⇒ Array<AttributeSets::PinParentPin>



1781
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1781

def parent_pin; attributes[:"parent_pin"].map(&:value); end

#phase_adjust ⇒ Integer

Returns:

  • (Integer)

See Also:



1793
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1793

def phase_adjust; attributes[:"phase_adjust"]&.value; end

#phase_adjust_gran ⇒ Integer

Granularity of phase adjustment, in picoseconds. The value of phase adjustment must be a multiple of this granularity.

Returns:

  • (Integer)

See Also:



1835
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1835

def phase_adjust_gran; attributes[:"phase_adjust_gran"]&.value; end

#phase_adjust_max ⇒ Integer

Returns:

  • (Integer)

See Also:



1789
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1789

def phase_adjust_max; attributes[:"phase_adjust_max"]&.value; end

#phase_adjust_min ⇒ Integer

Returns:

  • (Integer)

See Also:



1785
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1785

def phase_adjust_min; attributes[:"phase_adjust_min"]&.value; end

#reference_sync ⇒ Array<AttributeSets::ReferenceSync>

Capable pin provides list of pins that can be bound to create a reference-sync pin pair.



1829
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1829

def reference_sync; attributes[:"reference_sync"].map(&:value); end

#type ⇒ Integer

Known enum values are defined in Enums::PinType.

Returns:

  • (Integer)

See Also:



1760
# File 'nl-linux/generated/nl/linux/dpll.rb', line 1760

def type; attributes[:"type"]&.value; end