[][src]Struct gba_hal::data::DisplayStatus

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

Display Status and interrupt settings.

  • 0: currently in vblank (read only)
  • 1: currently in hblank (read only)
  • 2: vcounter matches current setting (read only)
  • 3: vblank interrupt enable
  • 4: hblank interrupt enable
  • 5: vcounter interrupt enable
  • 8-15: vcount setting.

"Although the drawing time is only 960 cycles (240*4), the H-Blank flag is "0" for a total of 1006 cycles." -gbatek

Methods

impl DisplayStatus[src]

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

A const "zero value" constructor

impl DisplayStatus[src]

pub const VBLANK_FLAG_BIT: u16[src]

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

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

pub const HBLANK_FLAG_BIT: u16[src]

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

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

pub const VCOUNTER_FLAG_BIT: u16[src]

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

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

pub const VBLANK_IRQ_ENABLE_BIT: u16[src]

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

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

pub const HBLANK_IRQ_ENABLE_BIT: u16[src]

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

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

pub const VCOUNTER_IRQ_ENABLE_BIT: u16[src]

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

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

pub const VCOUNT_SETTING_MASK: u16[src]

pub const fn vcount_setting(self) -> u16[src]

pub const fn with_vcount_setting(self, vcount_setting: u16) -> Self[src]

Trait Implementations

impl PartialEq<DisplayStatus> for DisplayStatus[src]

impl Eq for DisplayStatus[src]

impl Debug for DisplayStatus[src]

impl Copy for DisplayStatus[src]

impl Clone for DisplayStatus[src]

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

Performs copy-assignment from source. Read more

impl Default for DisplayStatus[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]