pub struct ModeInfo {
pub width: u32,
pub visible_width: u32,
pub sync_end: u32,
pub line_start: u32,
pub clock_rate: u32,
pub num_lines: u32,
pub visible_lines: u32,
}
Expand description
Describes a video mode.
Fields§
§width: u32
Number of pixels in a line (including blanking)
visible_width: u32
Number of pixels in a line (excluding blanking)
sync_end: u32
Elapsed time (in clock_rate
pixels) before H-Sync needs to fall
line_start: u32
Elapsed time (in clock_rate
pixels) before line_start ISR needs to
fire
clock_rate: u32
The pixel clock rate in Hz (e.g. 40_000_000 for 40 MHz)
num_lines: u32
Number of lines on the screen (including blanking)
visible_lines: u32
Number of lines on the screen (excluding blanking)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModeInfo
impl RefUnwindSafe for ModeInfo
impl Send for ModeInfo
impl Sync for ModeInfo
impl Unpin for ModeInfo
impl UnwindSafe for ModeInfo
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