# OS_GetCpsrIrq

## C Specification

  `#include <nitro/os.h>`
  `OSIntrMode OS_GetCpsrIrq( void );`

## Arguments

None.

## Return Values

The current interrupt state.
For the OSIntrMode_Irq enumeration type it is:

OS_INTRMODE_IRQ_DISABLE | IRQ Disable (prohibited)
OS_INTRMODE_IRQ_ENABLE | IRQ Enable (permitted)

## Description

This function obtains the current IRQ interrupt status.

Return values are in `OSIntrMode_Irq` format. If `OS_INTRMODE_IRQ_ENABLE` is returned, then IRQ interrupts are permitted; if `OS_INTRMODE_IRQ_DISABLE` is returned, then IRQ interrupts are prohibited.

## Internal Operation

Reads the control bit of the IRQ interrupt from CPSR (current program status register).

## See Also

`OS_EnableInterrupts, OS_DisableInterrupts
`

## Revision History

03/08/2005 Standardized Japanese term for "interrupt."
01/14/2004 Changed function name from OS_GetInterrupts.
12/01/2003 Initial version

CONFIDENTIAL