[][src]Struct gba_types::DisplayStatusSetting

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

The Display Status register value.

This register combines info about the current status of the display/PPU as well as controlling if/when the display can generates interrupts.

Implementations

impl DisplayStatusSetting[src]

#[must_use]pub fn is_vblank(self) -> bool[src]

Is the PPU currently in vertical blank?

#[must_use]pub fn is_hblank(self) -> bool[src]

Is the PPU currently in horizontal blank?

#[must_use]pub fn is_vcount_match(self) -> bool[src]

Is the current vcount a match with the vcount setting?

#[must_use]pub fn vblank_irq_enabled(self) -> bool[src]

If set, the PPU fires an interrupt when vblank starts.

#[must_use]pub fn hblank_irq_enabled(self) -> bool[src]

If set, the PPU fires an interrupt when hblank starts.

#[must_use]pub fn vcount_match_irq_enabled(self) -> bool[src]

If set, the PPU fires an interrupt when the vcount matches the vcount setting.

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

This primarily lets you trigger an interrupt at a variable row position.

pub fn set_is_vblank(&mut self, is_vblank: bool)[src]

pub fn set_is_hblank(&mut self, is_hblank: bool)[src]

pub fn set_is_vcount_match(&mut self, is_vcount_match: bool)[src]

pub fn set_vblank_irq_enabled(&mut self, vblank_irq_enabled: bool)[src]

pub fn set_hblank_irq_enabled(&mut self, hblank_irq_enabled: bool)[src]

pub fn set_vcount_match_irq_enabled(&mut self, vcount_match_irq_enabled: bool)[src]

pub fn set_vcount_setting(&mut self, vcount_setting: u16)[src]

Trait Implementations

impl Clone for DisplayStatusSetting[src]

impl Copy for DisplayStatusSetting[src]

impl Debug for DisplayStatusSetting[src]

impl Default for DisplayStatusSetting[src]

impl Eq for DisplayStatusSetting[src]

impl Hash for DisplayStatusSetting[src]

impl Ord for DisplayStatusSetting[src]

impl PartialEq<DisplayStatusSetting> for DisplayStatusSetting[src]

impl PartialOrd<DisplayStatusSetting> for DisplayStatusSetting[src]

impl StructuralEq for DisplayStatusSetting[src]

impl StructuralPartialEq for DisplayStatusSetting[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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> 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.