[−][src]Struct gba_hal::data::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]
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]
fn eq(&self, other: &DisplayStatus) -> bool[src]
fn ne(&self, other: &DisplayStatus) -> bool[src]
impl Eq for DisplayStatus[src]
impl Debug for DisplayStatus[src]
impl Copy for DisplayStatus[src]
impl Clone for DisplayStatus[src]
fn clone(&self) -> 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]
fn default() -> DisplayStatus[src]
Auto Trait Implementations
impl Send for DisplayStatus
impl Sync for DisplayStatus
Blanket Implementations
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,