OS_GetIrqMask


C Specification

#include <nitro/os.h>

OSIrqMask OS_GetIrqMask( void );

Description

Obtains the setting for the currently established IRQ interrupt cause

The returned value is the logical sum whose value corresponds to the interrupt cause from the table below.

OS_IE_V_BLANK V-Blank interrupt
OS_IE_H_BLANK H-Blank interrupt
OS_IE_V_COUNT V-Counter interrupt
OS_IE_TIMER0 Timer 0 Interrupt
OS_IE_TIMER1 Timer 1 Interrupt
OS_IE_TIMER2 Timer 2 Interrupt
OS_IE_TIMER3 Timer 3 interrupt
OS_IE_DMA0 DMA0 interrupt
OS_IE_DMA1 DMA1 interrupt
OS_IE_DMA2 DMA2 interrupt
OS_IE_DMA3 DMA3 interrupt
OS_IE_KEY Key interrupt
OS_IE_CARtrIDGE Game Pak IREQ/DREQ interrupt
OS_IE_SUBP ARM7 interrupt
OS_IE_SPFIFO_SEND Send FIFO empty interrupt between ARM9 and ARM7
OS_IE_SPFIFO_RECV Receive FIFO not empty interrupt between ARM9 and ARM7
OS_IE_CARD_DATA Card data transmission complete interrupt
OS_IE_CARD_IREQ Card IREQ interrupt
OS_IE_GXFIFO Geometry command FIFO interrupt

Internal Operation

Reads IE (Interrupt Enable) of the IO register and returns that value.

Arguments

None

Return Value

The setting for the current IRQ interrupt cause.

See Also

OS_SetIrqMask, OS_EnableIrqMask, OS_DisableIrqMask

Revision History

11/24/2004 Deleted OS_IE_SIO.
09/01/2004 Changed "subprocessor" to "ARM7" and changed "between subprocessors" to "between ARM9 and ARM7"
12/01/2003 Initial version