# OS_GetIrqFunction

## Syntax

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

## Arguments

intr | The IRQ interrupt cause of the handler to obtain. Refer to Types of Interrupts for more information on the types of interrupts.

## Return Values

The interrupt handler that corresponds to the specified IRQ interrupt cause.

## Description

This function gets the interrupt handler.

It returns the corresponding handler from within the IRQ interrupt table for the specified IRQ interrupt cause. The interrupt cause is specified in intr.

The interrupt handler is of type `OSIrqFunction`. It is a `void`-type function that doesn't take any arguments.

This function is used to get data; to set data, use `OS_SetIrqFunction()`.

## See Also

`OS_SetIrqMask`, `OS_InitIrqTable`, `OS_SetIrqFunction`

## Revision History

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

CONFIDENTIAL