#[non_exhaustive]pub struct SourceTmdsFacts {
pub scrambling: bool,
pub low_rate_scrambling: bool,
pub max_character_rate_khz: u32,
}Expand description
What the source’s PHY can do.
Built from the PHY’s capabilities report (From<&TmdsPhyCapabilities>), or stated by
the caller with new and the with_… setters.
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.scrambling: boolThe source has a TMDS scrambler.
low_rate_scrambling: boolThe source can scramble at or below 340 Mcsc. Counts only with
scrambling.
max_character_rate_khz: u32The source’s own highest TMDS character rate, in kHz.
Implementations§
Source§impl SourceTmdsFacts
impl SourceTmdsFacts
Sourcepub const fn new(low_rate_scrambling: bool) -> Self
pub const fn new(low_rate_scrambling: bool) -> Self
Facts stated by the caller. The source is taken to have a scrambler and no rate
ceiling of its own, as in 0.1, so an existing caller’s results do not change;
with_scrambling and
with_max_character_rate_khz say otherwise.
Sourcepub const fn with_max_character_rate_khz(
self,
max_character_rate_khz: u32,
) -> Self
pub const fn with_max_character_rate_khz( self, max_character_rate_khz: u32, ) -> Self
Sets the source’s own highest TMDS character rate, in kHz.
Sourcepub const fn with_scrambling(self, scrambling: bool) -> Self
pub const fn with_scrambling(self, scrambling: bool) -> Self
Sets whether the source has a TMDS scrambler.
Trait Implementations§
Source§impl Clone for SourceTmdsFacts
impl Clone for SourceTmdsFacts
impl Copy for SourceTmdsFacts
Source§impl Debug for SourceTmdsFacts
impl Debug for SourceTmdsFacts
impl Eq for SourceTmdsFacts
Source§impl From<&TmdsPhyCapabilities> for SourceTmdsFacts
impl From<&TmdsPhyCapabilities> for SourceTmdsFacts
Source§fn from(caps: &TmdsPhyCapabilities) -> Self
fn from(caps: &TmdsPhyCapabilities) -> Self
The PHY’s capabilities report: whether it has a scrambler, whether it can use it at or below 340 Mcsc, and its highest character rate.