#[non_exhaustive]pub struct TmdsPhyConfig {
pub character_rate_khz: u32,
pub clock_ratio: TmdsClockRatio,
pub video: TmdsVideo,
}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 TmdsPhy::configure sets.
The caller guarantees that character_rate_khz is the rate
video gives, rounded up, as TmdsVideo::character_rate_khz computes
it. A PHY may configure itself from either: the character rate, or the video it comes
from.
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.character_rate_khz: u32The TMDS character rate, in kHz, rounded up and never truncated.
clock_ratio: TmdsClockRatioThe TMDS bit clock ratio.
video: TmdsVideoThe video the link carries.
Implementations§
Source§impl TmdsPhyConfig
impl TmdsPhyConfig
Sourcepub const fn new(
character_rate_khz: u32,
clock_ratio: TmdsClockRatio,
video: TmdsVideo,
) -> TmdsPhyConfig
pub const fn new( character_rate_khz: u32, clock_ratio: TmdsClockRatio, video: TmdsVideo, ) -> TmdsPhyConfig
Constructs TmdsPhyConfig.
Trait Implementations§
Source§impl Clone for TmdsPhyConfig
impl Clone for TmdsPhyConfig
Source§fn clone(&self) -> TmdsPhyConfig
fn clone(&self) -> TmdsPhyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TmdsPhyConfig
Source§impl Debug for TmdsPhyConfig
impl Debug for TmdsPhyConfig
impl Eq for TmdsPhyConfig
Source§impl PartialEq for TmdsPhyConfig
impl PartialEq for TmdsPhyConfig
impl StructuralPartialEq for TmdsPhyConfig
Auto Trait Implementations§
impl Forget for TmdsPhyConfig
impl Freeze for TmdsPhyConfig
impl Move for TmdsPhyConfig
impl RefUnwindSafe for TmdsPhyConfig
impl Send for TmdsPhyConfig
impl Sync for TmdsPhyConfig
impl Unpin for TmdsPhyConfig
impl UnsafeUnpin for TmdsPhyConfig
impl UnwindSafe for TmdsPhyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more