[−][src]Struct vga::registers::AttributeControllerRegisters
Represents the attribute controller registers on vga hardware.
Methods
impl AttributeControllerRegisters
[src]
pub fn read(
&mut self,
emulation_mode: EmulationMode,
index: AttributeControllerIndex
) -> u8
[src]
&mut self,
emulation_mode: EmulationMode,
index: AttributeControllerIndex
) -> u8
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]
&mut self,
emulation_mode: EmulationMode,
index: AttributeControllerIndex,
value: u8
)
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
Auto Trait Implementations
impl Send for AttributeControllerRegisters
impl Sync for AttributeControllerRegisters
impl Unpin for AttributeControllerRegisters
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>,