#[repr(C)]pub struct Layer {
pub config: RW<u8>,
pub mapbase: RW<u8>,
pub tilebase: RW<u8>,
pub hscroll: RW<u16>,
pub vscroll: RW<u16>,
}Expand description
Video layer registers
The features of the two VERA layers are the same.
Each layer supports a few different modes which are specified using T256C / ‘Bitmap Mode’ / ‘Color Depth’ in Lx_CONFIG.
The layer can either operate in tile mode or bitmap mode.
This is selected using the ‘Bitmap Mode’ bit; 0 selects tile mode, 1 selects bitmap mode.
The handling of 1 bpp tile mode is different from the other tile modes.
Depending on the T256C bit the tiles use either a 16-color foreground and background color or a 256-color foreground color.
Other modes ignore the T256C bit.
Fields§
§config: RW<u8>Lx_CONFIG
mapbase: RW<u8>Lx_MAPBASE - Map Base Address (16:9)
tilebase: RW<u8>Lx_TILEBASE
hscroll: RW<u16>H-SCROLL - Horizontal scroll
vscroll: RW<u16>V-SCROLL - Vertical scroll
Auto Trait Implementations§
impl !Freeze for Layer
impl !RefUnwindSafe for Layer
impl Send for Layer
impl !Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more