[][src]Struct vga::registers::GraphicsControllerRegisters

pub struct GraphicsControllerRegisters { /* fields omitted */ }

Represents the graphics controller registers on vga hardware.

Implementations

impl GraphicsControllerRegisters[src]

pub fn read(&mut self, index: GraphicsControllerIndex) -> u8[src]

Reads the current value from the graphics controller, as specified by index.

pub fn write(&mut self, index: GraphicsControllerIndex, value: u8)[src]

Writes the value to the graphics controller, as specified by `index.

pub fn write_read_plane(&mut self, read_plane: ReadPlane)[src]

Sets the read plane of the graphics controller, as specified by read_plane.

pub fn write_set_reset(&mut self, color: Color16)[src]

Sets the value to use for GraphicsControllerIndex::SetReset, as spcified by color.

pub fn write_enable_set_reset(&mut self, bit_mask: u8)[src]

Sets which bits are effected by GraphicsControllerIndex::SetReset, as specified by bit_mask.

pub fn set_write_mode(&mut self, write_mode: WriteMode)[src]

Sets which mode the vga writes in, as specified by write_mode.

pub fn set_bit_mask(&mut self, bit_mask: u8)[src]

Sets which bits are effected by certain operations, as specified by bit_mask.

Trait Implementations

impl Debug for GraphicsControllerRegisters[src]

Auto Trait Implementations

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.