#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scdc_present: boolThe sink has an SCDC (SCDC_Present), so its TMDS_Config can be written.
scrambling_supported: boolThe 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: boolThe sink declares scrambling at or below 340 Mcsc (LTE_340Mcsc_scramble). It
counts only with SCDC and scrambling_supported.
frl_capable: boolThe 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
impl SinkTmdsFacts
Sourcepub const NONE: SinkTmdsFacts
pub const NONE: SinkTmdsFacts
A sink without HDMI Forum capabilities: no SCDC and no scrambling.
Sourcepub const fn new(
scdc_present: bool,
scrambling_supported: bool,
lte_340mcsc_scramble: bool,
) -> SinkTmdsFacts
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.
Sourcepub const fn with_frl_capable(self, frl_capable: bool) -> SinkTmdsFacts
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
impl Clone for SinkTmdsFacts
Source§fn clone(&self) -> SinkTmdsFacts
fn clone(&self) -> SinkTmdsFacts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SinkTmdsFacts
Source§impl Debug for SinkTmdsFacts
impl Debug for SinkTmdsFacts
impl Eq for SinkTmdsFacts
Source§impl From<&HdmiForumSinkCap> for SinkTmdsFacts
Available on crate feature display-types only.
impl From<&HdmiForumSinkCap> for SinkTmdsFacts
display-types only.Source§fn from(cap: &HdmiForumSinkCap) -> SinkTmdsFacts
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.
impl From<Option<&HdmiForumSinkCap>> for SinkTmdsFacts
display-types only.Source§fn from(cap: Option<&HdmiForumSinkCap>) -> SinkTmdsFacts
fn from(cap: Option<&HdmiForumSinkCap>) -> SinkTmdsFacts
An absent HF-SCDB gives SinkTmdsFacts::NONE.