[][src]Struct vga_framebuffer::ModeInfo

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,
}

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

impl Debug for ModeInfo[src]

Auto Trait Implementations

impl Unpin for ModeInfo

impl Sync for ModeInfo

impl Send for ModeInfo

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]