Layer

Struct Layer 

Source
#[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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.