[−][src]Struct gba_types::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]
fn clone(&self) -> DisplayStatusSetting
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DisplayStatusSetting
[src]
impl Debug for DisplayStatusSetting
[src]
impl Default for DisplayStatusSetting
[src]
fn default() -> DisplayStatusSetting
[src]
impl Eq for DisplayStatusSetting
[src]
impl Hash for DisplayStatusSetting
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for DisplayStatusSetting
[src]
fn cmp(&self, other: &DisplayStatusSetting) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<DisplayStatusSetting> for DisplayStatusSetting
[src]
fn eq(&self, other: &DisplayStatusSetting) -> bool
[src]
fn ne(&self, other: &DisplayStatusSetting) -> bool
[src]
impl PartialOrd<DisplayStatusSetting> for DisplayStatusSetting
[src]
fn partial_cmp(&self, other: &DisplayStatusSetting) -> Option<Ordering>
[src]
fn lt(&self, other: &DisplayStatusSetting) -> bool
[src]
fn le(&self, other: &DisplayStatusSetting) -> bool
[src]
fn gt(&self, other: &DisplayStatusSetting) -> bool
[src]
fn ge(&self, other: &DisplayStatusSetting) -> bool
[src]
impl StructuralEq for DisplayStatusSetting
[src]
impl StructuralPartialEq for DisplayStatusSetting
[src]
Auto Trait Implementations
impl Send for DisplayStatusSetting
impl Sync for DisplayStatusSetting
impl Unpin for DisplayStatusSetting
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,