Class: Nl::Linux::Dpll::AttributeSets::PinParentDevice

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/dpll.rb

Defined Under Namespace

Classes: Attribute, Direction, FractionalFrequencyOffset, FractionalFrequencyOffsetPpt, Operstate, ParentId, PhaseOffset, Prio, State

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#direction ⇒ Integer

Known enum values are defined in Enums::PinDirection.

Returns:

  • (Integer)

See Also:



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

def direction; self[:"direction"]&.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:



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

def fractional_frequency_offset; self[:"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.

Returns:

  • (Integer)

See Also:



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

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

#operstate ⇒ Integer

Operational state of the pin with respect to its parent DPLL device. Unlike state (which reflects the administrative intent), operstate reflects the actual hardware status.

Known enum values are defined in Enums::PinOperstate.

Returns:

  • (Integer)

See Also:



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

def operstate; self[:"operstate"]&.value; end

#parent_id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def parent_id; self[:"parent_id"]&.value; end

#phase_offset ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def phase_offset; self[:"phase_offset"]&.value; end

#prio ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def prio; self[:"prio"]&.value; end

#state ⇒ Integer

Known enum values are defined in Enums::PinState.

Returns:

  • (Integer)

See Also:



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

def state; self[:"state"]&.value; end