Class: Nl::Linux::Dpll::Messages::DoPinSetRequest

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

Overview

Set attributes of a target pin

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
9
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Pin
ATTRIBUTES =
Ractor.make_shareable(%i[id direction frequency prio state parent_device parent_pin phase_adjust esync_frequency reference_sync])

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

#direction ⇒ Integer

Known enum values are defined in Enums::PinDirection.

Returns:

  • (Integer)

See Also:



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

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



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

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

#frequency ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#parent_device ⇒ Array<AttributeSets::PinParentDevice>



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

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

#parent_pin ⇒ Array<AttributeSets::PinParentPin>



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

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

#phase_adjust ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#prio ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reference_sync ⇒ Array<AttributeSets::ReferenceSync>

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



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

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

#state ⇒ Integer

Known enum values are defined in Enums::PinState.

Returns:

  • (Integer)

See Also:



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

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