Skip to main content

SinkTmdsFacts

Struct SinkTmdsFacts 

Source
#[non_exhaustive]
pub struct SinkTmdsFacts { pub scdc_present: bool, pub scrambling_supported: bool, pub lte_340mcsc_scramble: bool, pub frl_capable: bool, }
Expand description

What the sink declares about TMDS scrambling.

NONE is a sink without HDMI Forum capabilities, such as a DVI or HDMI 1.x sink. With the display-types feature, the facts convert from the sink’s HF-SCDB (From<&HdmiForumSinkCap>, and From<Option<&HdmiForumSinkCap>> where an absent block means NONE). A caller may clear a fact for a sink known to misbehave.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§scdc_present: bool

The sink has an SCDC (SCDC_Present), so its TMDS_Config can be written.

§scrambling_supported: bool

The sink supports scrambling: SCDC present and a non-zero Max_TMDS_Character_Rate, as Linux derives scrambling.supported. Scrambling at any rate needs it.

§lte_340mcsc_scramble: bool

The sink declares scrambling at or below 340 Mcsc (LTE_340Mcsc_scramble). It counts only with SCDC and scrambling_supported.

§frl_capable: bool

The sink declares FRL (a non-zero Max_FRL_Rate), so its Config_1 may hold FRL settings a bring-up clears first.

Implementations§

Source§

impl SinkTmdsFacts

Source

pub const NONE: SinkTmdsFacts

A sink without HDMI Forum capabilities: no SCDC and no scrambling.

Source

pub const fn new( scdc_present: bool, scrambling_supported: bool, lte_340mcsc_scramble: bool, ) -> SinkTmdsFacts

Facts stated by the caller, with frl_capable taken to be scdc_present.

Source

pub const fn with_frl_capable(self, frl_capable: bool) -> SinkTmdsFacts

Sets whether the sink declares FRL. new takes a sink with SCDC to, so a caller that never learns of this fact still gets the FRL clear before a bring-up: on a sink without FRL, a write to a register it does not use, where false would skip the clear silently. FRL needs SCDC, and the clear runs only on an SCDC sink.

Trait Implementations§

Source§

impl Clone for SinkTmdsFacts

Source§

fn clone(&self) -> SinkTmdsFacts

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SinkTmdsFacts

Source§

impl Debug for SinkTmdsFacts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for SinkTmdsFacts

Source§

impl From<&HdmiForumSinkCap> for SinkTmdsFacts

Available on crate feature display-types only.
Source§

fn from(cap: &HdmiForumSinkCap) -> SinkTmdsFacts

scrambling_supported is scdc_present and a non-zero max_tmds_rate_mhz; frl_capable is a non-zero max_frl_rate; the other two facts are copied.

Source§

impl From<Option<&HdmiForumSinkCap>> for SinkTmdsFacts

Available on crate feature display-types only.
Source§

impl Hash for SinkTmdsFacts

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for SinkTmdsFacts

Source§

fn eq(&self, other: &SinkTmdsFacts) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SinkTmdsFacts

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.