[][src]Struct gba_hal::data::DisplayControl

#[repr(transparent)]
pub struct DisplayControl(_);

Configuration for the display control register.

  • 0-2: DisplayMode
  • 3: CGB mode flag
  • 4: Display frame 1 (Modes 4/5 only)
  • 5: "hblank interval free", allows full access to OAM during hblank
  • 6: Object tile memory 1-dimensional
  • 7: Force vblank
  • 8: Display bg0 layer
  • 9: Display bg1 layer
  • 10: Display bg2 layer
  • 11: Display bg3 layer
  • 12: Display objects layer
  • 13: Window 0 display
  • 14: Window 1 display
  • 15: Object window

Methods

impl DisplayControl[src]

pub const fn new() -> Self[src]

A const "zero value" constructor

impl DisplayControl[src]

pub const MODE_MASK: u16[src]

pub fn mode(self) -> DisplayMode[src]

pub const fn with_mode(self, mode: DisplayMode) -> Self[src]

pub const FRAME1_BIT: u16[src]

pub const fn frame1(self) -> bool[src]

pub const fn with_frame1(self, bit: bool) -> Self[src]

pub const HBLANK_INTERVAL_FREE_BIT: u16[src]

pub const fn hblank_interval_free(self) -> bool[src]

pub const fn with_hblank_interval_free(self, bit: bool) -> Self[src]

pub const OAM_MEMORY_1D_BIT: u16[src]

pub const fn oam_memory_1d(self) -> bool[src]

pub const fn with_oam_memory_1d(self, bit: bool) -> Self[src]

pub const FORCE_VBLANK_BIT: u16[src]

pub const fn force_vblank(self) -> bool[src]

pub const fn with_force_vblank(self, bit: bool) -> Self[src]

pub const BG0_BIT: u16[src]

pub const fn bg0(self) -> bool[src]

pub const fn with_bg0(self, bit: bool) -> Self[src]

pub const BG1_BIT: u16[src]

pub const fn bg1(self) -> bool[src]

pub const fn with_bg1(self, bit: bool) -> Self[src]

pub const BG2_BIT: u16[src]

pub const fn bg2(self) -> bool[src]

pub const fn with_bg2(self, bit: bool) -> Self[src]

pub const BG3_BIT: u16[src]

pub const fn bg3(self) -> bool[src]

pub const fn with_bg3(self, bit: bool) -> Self[src]

pub const OBJ_BIT: u16[src]

pub const fn obj(self) -> bool[src]

pub const fn with_obj(self, bit: bool) -> Self[src]

pub const WIN0_BIT: u16[src]

pub const fn win0(self) -> bool[src]

pub const fn with_win0(self, bit: bool) -> Self[src]

pub const WIN1_BIT: u16[src]

pub const fn win1(self) -> bool[src]

pub const fn with_win1(self, bit: bool) -> Self[src]

pub const OBJ_WINDOW_BIT: u16[src]

pub const fn obj_window(self) -> bool[src]

pub const fn with_obj_window(self, bit: bool) -> Self[src]

Trait Implementations

impl PartialEq<DisplayControl> for DisplayControl[src]

impl Eq for DisplayControl[src]

impl Copy for DisplayControl[src]

impl Debug for DisplayControl[src]

impl Clone for DisplayControl[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for DisplayControl[src]

Auto Trait Implementations

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]