[][src]Struct vga::vga::Vga

pub struct Vga {
    pub general_registers: GeneralRegisters,
    pub sequencer_registers: SequencerRegisters,
    pub graphics_controller_registers: GraphicsControllerRegisters,
    pub attribute_controller_registers: AttributeControllerRegisters,
    pub crtc_controller_registers: CrtcControllerRegisters,
    pub color_palette_registers: ColorPaletteRegisters,
    // some fields omitted
}

Represents a vga graphics card with it's common registers, as well as the most recent video mode.

Fields

general_registers: GeneralRegisters

Represents the general registers on vga hardware.

sequencer_registers: SequencerRegisters

Represents the sequencer registers on vga hardware.

graphics_controller_registers: GraphicsControllerRegisters

Represents the graphics controller registers on vga hardware.

attribute_controller_registers: AttributeControllerRegisters

Represents the attribute controller registers on vga hardware.

crtc_controller_registers: CrtcControllerRegisters

Represents the crtc controller registers on vga hardware.

color_palette_registers: ColorPaletteRegisters

Represents the color palette registers on vga hardware.

Methods

impl Vga[src]

pub fn set_video_mode(&mut self, video_mode: VideoMode)[src]

Sets the vga graphics card to the given VideoMode.

pub fn get_frame_buffer(&mut self) -> FrameBuffer[src]

Gets the FrameBuffer address as specified by the Miscellaneous Output Register.

pub fn get_most_recent_video_mode(&self) -> Option<VideoMode>[src]

Returns the most recent video mode, or None if no video mode has been set yet.

pub fn get_emulation_mode(&mut self) -> EmulationMode[src]

Returns the current EmulationMode as determined by the miscellaneous output register.

pub fn load_font(&mut self, vga_font: &VgaFont)[src]

Loads a vga text mode font as specified by vga_font.

Auto Trait Implementations

impl Send for Vga

impl Sync for Vga

impl Unpin for Vga

Blanket Implementations

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

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

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

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

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

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> 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.