Enum vga::registers::WriteMode [−][src]
Represents a write mode for vga hardware.
Variants
Represents WriteMode
0.
During a CPU write to the frame buffer, the
addressed byte in each of the 4 memory planes is written with the
CPU write data after it has been rotated by the number of counts
specified in the GraphicsControllerIndex::DataRotate
register. If, however, the bit(s)
in the GraphicsControllerIndex::EnableSetReset
register corresponding to one or
more of the memory planes is set to 1, then those memory planes
will be written to with the data stored in the corresponding bits in
the GraphicsControllerIndex::SetReset
register.
Represents WriteMode
1.
During a CPU write to the frame buffer, the addressed byte in each of the 4 memory planes is written to with the data stored in the memory read latches. (The memory read latches stores an unaltered copy of the data last read from any location in the frame buffer.)
Represents WriteMode
2.
During a CPU write to the frame buffer, the least
significant 4 data bits of the CPU write data is treated as the color
value for the pixels in the addressed byte in all 4 memory planes.
The 8 bits of the GraphicsControllerIndex::BitMask
register are used to selectively
enable or disable the ability to write to the corresponding bit in
each of the 4 memory planes that correspond to a given pixel. A
setting of 0 in a bit in the Bit Mask Register at a given bit position
causes the bits in the corresponding bit positions in the addressed
byte in all 4 memory planes to be written with value of their
counterparts in the memory read latches. A setting of 1 in a Bit
Mask Register at a given bit position causes the bits in the
corresponding bit positions in the addressed byte in all 4 memory
planes to be written with the 4 bits taken from the CPU write data
to thereby cause the pixel corresponding to these bits to be set to
the color value.
Represents WriteMode
3.
During a CPU write to the frame buffer, the CPU
write data is logically ANDed with the contents of the GraphicsControllerIndex::BitMask
register. The result of this ANDing is treated as the bit
mask used in writing the contents of the GraphicsControllerIndex::SetReset
register
are written to addressed byte in all 4 memory planes.
Trait Implementations
Auto Trait Implementations
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,
pub 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.
pub 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>,