#[non_exhaustive]pub struct TmdsPhyCapabilities {
pub max_character_rate_khz: u32,
pub scrambling: bool,
pub low_rate_scrambling: bool,
}Expand description
The PHY value types, at the paths hdmi-hal gives them (hdmi_hal::phy::*). They are
re-exported at the crate root as well.
What a TMDS PHY can do, as TmdsPhy::capabilities reports it.
Hardware that cannot do something reports it here, never more than it can: new
starts with no scrambler.
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.max_character_rate_khz: u32The source’s own highest TMDS character rate, in kHz.
scrambling: boolWhether the PHY has a TMDS scrambler.
A field of its own, not derived from the ceiling: whether a link at exactly
340 000 kHz is scrambled is the caller’s threshold setting (spiritlevel’s
ScramblingThreshold), so a PHY whose ceiling is 340 Mcsc and which has no scrambler
says so here.
low_rate_scrambling: boolWhether the PHY can scramble at or below 340 Mcsc. Counts only with
scrambling; read both through
scrambles_at_low_rate.
Implementations§
Source§impl TmdsPhyCapabilities
impl TmdsPhyCapabilities
Sourcepub const fn new(max_character_rate_khz: u32) -> TmdsPhyCapabilities
pub const fn new(max_character_rate_khz: u32) -> TmdsPhyCapabilities
Constructs TmdsPhyCapabilities with the given ceiling and no scrambler.
Sourcepub const fn with_scrambling(self, scrambling: bool) -> TmdsPhyCapabilities
pub const fn with_scrambling(self, scrambling: bool) -> TmdsPhyCapabilities
Sets whether the PHY has a TMDS scrambler.
Sourcepub const fn with_low_rate_scrambling(
self,
low_rate_scrambling: bool,
) -> TmdsPhyCapabilities
pub const fn with_low_rate_scrambling( self, low_rate_scrambling: bool, ) -> TmdsPhyCapabilities
Sets whether the PHY can scramble at or below 340 Mcsc.
Sourcepub const fn scrambles_at_low_rate(&self) -> bool
pub const fn scrambles_at_low_rate(&self) -> bool
Whether the PHY can scramble at or below 340 Mcsc: it has a scrambler and can use it
at low rates. low_rate_scrambling without scrambling counts as false.
Trait Implementations§
Source§impl Clone for TmdsPhyCapabilities
impl Clone for TmdsPhyCapabilities
Source§fn clone(&self) -> TmdsPhyCapabilities
fn clone(&self) -> TmdsPhyCapabilities
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 TmdsPhyCapabilities
Source§impl Debug for TmdsPhyCapabilities
impl Debug for TmdsPhyCapabilities
impl Eq for TmdsPhyCapabilities
Source§impl From<&TmdsPhyCapabilities> for SourceTmdsFacts
impl From<&TmdsPhyCapabilities> for SourceTmdsFacts
Source§fn from(caps: &TmdsPhyCapabilities) -> SourceTmdsFacts
fn from(caps: &TmdsPhyCapabilities) -> SourceTmdsFacts
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.