[][src]Struct vga::registers::AttributeControllerRegisters

pub struct AttributeControllerRegisters { /* fields omitted */ }

Represents the attribute controller registers on vga hardware.

Methods

impl AttributeControllerRegisters[src]

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

Reads the current value of the attribute controller, as specified by emulation_mode and index.

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

Writes the value to the attribute controller, as specified emulation_mode and index.

pub fn blank_screen(&mut self, emulation_mode: EmulationMode)[src]

Video Enable. Note that In the VGA standard, this is called the "Palette Address Source" bit. Clearing this bit will cause the VGA display data to become all 00 index values. For the default palette, this will cause a black screen. The video timing signals continue. Another control bit will turn video off and stop the data fetches.

0 = Disable. Attribute controller color registers (AR[00:0F]) can be accessed by the CPU.

1 = Enable. Attribute controller color registers (AR[00:0F]) are inaccessible by the CPU.

pub fn unblank_screen(&mut self, emulation_mode: EmulationMode)[src]

Video Enable. Note that In the VGA standard, this is called the "Palette Address Source" bit. Clearing this bit will cause the VGA display data to become all 00 index values. For the default palette, this will cause a black screen. The video timing signals continue. Another control bit will turn video off and stop the data fetches.

0 = Disable. Attribute controller color registers (AR[00:0F]) can be accessed by the CPU.

1 = Enable. Attribute controller color registers (AR[00:0F]) are inaccessible by the CPU.

Trait Implementations

impl Debug for AttributeControllerRegisters[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.