[][src]Struct gba_hal::data::InterruptRequestFlags

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

Interrupt Requested Flags. GBATEK IF register.

This has the same bit layout as the InterruptEnable type, but this type is used to either check what interrupts are pending (IRQ_PENDING) or acknowledge an interrupt as processed (IRQ_ACKNOWLEDGE).

It may seem strange, but to acknowledge an interrupt as having been processed, you need to set that bit (and only that bit), even though it's already an active bit.

The full story of how to do interrupt handling properly is beyond the scope of this comment, but that's the basics.

Methods

impl InterruptRequestFlags[src]

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

A const "zero value" constructor

impl InterruptRequestFlags[src]

pub const VBLANK_BIT: u16[src]

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

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

pub const HBLANK_BIT: u16[src]

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

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

pub const VCOUNTER_BIT: u16[src]

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

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

pub const TIMER0_BIT: u16[src]

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

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

pub const TIMER1_BIT: u16[src]

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

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

pub const TIMER2_BIT: u16[src]

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

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

pub const TIMER3_BIT: u16[src]

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

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

pub const SERIAL_BIT: u16[src]

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

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

pub const DMA0_BIT: u16[src]

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

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

pub const DMA1_BIT: u16[src]

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

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

pub const DMA2_BIT: u16[src]

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

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

pub const DMA3_BIT: u16[src]

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

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

pub const KEYPAD_BIT: u16[src]

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

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

pub const GAME_PAK_BIT: u16[src]

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

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

Trait Implementations

impl PartialEq<InterruptRequestFlags> for InterruptRequestFlags[src]

impl Eq for InterruptRequestFlags[src]

impl Debug for InterruptRequestFlags[src]

impl Copy for InterruptRequestFlags[src]

impl Clone for InterruptRequestFlags[src]

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

Performs copy-assignment from source. Read more

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