# OS_GetIrqFunction

## C Specification

  `#include <nitro/os.h>`
  `OSIrqFunction OS_GetIrqFunction( OSIrqMask intr );`

## Arguments

intr | The IRQ interrupt cause of the handler to be obtained.

## Return Values

The interrupt handler that corresponds to the specified IRQ interrupt.

## Description

This function gets the interrupt handler. It returns the corresponding handler from within the set IRQ interrupt table for the specified IRQ interrupt cause.

Refer to `OS_SetIrqMask` for details about setting the IRQ interrupt cause.

The interrupt handler is of the `OSIrqFunction` type . It is a void function without arguments.

## See Also

`OS_SetIrqMask`, `OS_InitIrqTable`, `OS_SetIrqFunction`

## Revision History

03/08/2005 Standardized the Japanese term for "interrupt."
12/01/2003 Initial version.