Class: Nl::Linux::Dpll::Messages::DoDeviceSetRequest

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

Overview

Set attributes for a DPLL device

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
3
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Dpll
ATTRIBUTES =
Ractor.make_shareable(%i[id mode phase_offset_monitor phase_offset_avg_factor frequency_monitor])

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

#frequency_monitor ⇒ Integer

Current or desired state of the frequency monitor feature. If enabled, dpll device shall measure all currently available inputs for their actual input frequency.

Known enum values are defined in Enums::FeatureState.

Returns:

  • (Integer)

See Also:



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

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

#id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#mode ⇒ Integer

Known enum values are defined in Enums::Mode.

Returns:

  • (Integer)

See Also:



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

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

#phase_offset_avg_factor ⇒ Integer

Averaging factor applied to calculation of reported phase offset.

Returns:

  • (Integer)

See Also:



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

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

#phase_offset_monitor ⇒ Integer

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.

Known enum values are defined in Enums::FeatureState.

Returns:

  • (Integer)

See Also:



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

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