# OS_GetCpsrIrq

## Syntax

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

## Arguments

None.

## Return Values

Returns a value that indicates the current IRQ interrupt status.

The type of the return value is `OSIntrMode` (a `u32` typedef), but the values that can be returned will be one of the `OSIntrMode_Irq` enumerated type values below.

Value | Current state
--- | ---
`OS_INTRMODE_IRQ_DISABLE` | IRQ Disable (prohibited)
`OS_INTRMODE_IRQ_ENABLE` | IRQ Enable (permitted)

## Description

Gets the current IRQ interrupt status.

## Internal Operation

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

## See Also

`OS_EnableInterrupts`
`OS_DisableInterrupts`

## Revision History

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

CONFIDENTIAL