[−][src]Struct vga::registers::GraphicsControllerRegisters
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
Auto Trait Implementations
impl Send for GraphicsControllerRegisters
impl Sync for GraphicsControllerRegisters
impl Unpin for GraphicsControllerRegisters
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,