pub struct DetailedTiming {Show 14 fields
pub pixel_clock_hz: u64,
pub h_active: u32,
pub h_blanking: u32,
pub v_active: u32,
pub v_blanking: u32,
pub h_front_porch: u32,
pub h_sync_pulse: u32,
pub v_front_porch: u32,
pub v_sync_pulse: u32,
pub h_back_porch: u32,
pub v_back_porch: u32,
pub h_sync_positive: bool,
pub v_sync_positive: bool,
pub aspect_ratio: String,
}Expand description
Single Detailed Timing Descriptor (DTD) block
A DTD contains precise timing information for a specific display mode, including active resolution, banking intervals, sync pulses, and polarity.
Fields§
§pixel_clock_hz: u64Pixel clock frequency in Hz
h_active: u32Active horizontal resolution in pixels
h_blanking: u32Total horizontal blanking interval in pixels
v_active: u32Active vertical resolution in lines
v_blanking: u32Total vertical blanking interval in lines
h_front_porch: u32Horizontal front porch (sync offset) in px
h_sync_pulse: u32Horizontal sync pulse width in px
v_front_porch: u32Vertical front porch (sync offset) in lines
v_sync_pulse: u32Vertical sync pulse width in lines
h_back_porch: u32Horizontal back porch in pixels
v_back_porch: u32Vertical back porch in lines
h_sync_positive: booltrue if the horizontal sync pulse is positive polarity
v_sync_positive: booltrue if the vertical sync pulse is positive polarity
aspect_ratio: StringCalculated aspect ratio for this specific timing mode
Implementations§
Trait Implementations§
Source§impl Clone for DetailedTiming
impl Clone for DetailedTiming
Source§fn clone(&self) -> DetailedTiming
fn clone(&self) -> DetailedTiming
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 moreSource§impl Debug for DetailedTiming
impl Debug for DetailedTiming
Source§impl<'de> Deserialize<'de> for DetailedTiming
impl<'de> Deserialize<'de> for DetailedTiming
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DetailedTiming
impl RefUnwindSafe for DetailedTiming
impl Send for DetailedTiming
impl Sync for DetailedTiming
impl Unpin for DetailedTiming
impl UnsafeUnpin for DetailedTiming
impl UnwindSafe for DetailedTiming
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more