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

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

Defined Under Namespace

Classes: Attribute, ClockId, ClockQualityLevel, FrequencyMonitor, Id, LockStatus, LockStatusError, Mode, ModeSupported, ModuleName, Pad, PhaseOffsetAvgFactor, PhaseOffsetMonitor, Temp, Type

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#clock_id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#clock_quality_level ⇒ Array<Integer>

Level of quality of a clock device. This mainly applies when the dpll lock-status is DPLL_LOCK_STATUS_HOLDOVER. This could be put to message multiple times to indicate possible parallel quality levels (e.g. one specified by ITU option 1 and another one specified by option 2).

Known enum values are defined in Enums::ClockQualityLevel.

Returns:

  • (Array<Integer>)

See Also:



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

def clock_quality_level; self[:"clock_quality_level"].map(&:value); end

#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:



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

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

#id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#lock_status ⇒ Integer

Known enum values are defined in Enums::LockStatus.

Returns:

  • (Integer)

See Also:



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

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

#lock_status_error ⇒ Integer

Known enum values are defined in Enums::LockStatusError.

Returns:

  • (Integer)

See Also:



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

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

#mode ⇒ Integer

Known enum values are defined in Enums::Mode.

Returns:

  • (Integer)

See Also:



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

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

#mode_supported ⇒ Array<Integer>

Known enum values are defined in Enums::Mode.

Returns:

  • (Array<Integer>)

See Also:



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

def mode_supported; self[:"mode_supported"].map(&:value); end

#module_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#phase_offset_avg_factor ⇒ Integer

Averaging factor applied to calculation of reported phase offset.

Returns:

  • (Integer)

See Also:



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

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



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

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

#temp ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#type ⇒ Integer

Known enum values are defined in Enums::Type.

Returns:

  • (Integer)

See Also:



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

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