1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>OS_GetIrqFunction</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">OS_GetIrqFunction <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/os.h></CODE><BR> 20 <BR> 21 <CODE>OSIrqFunction OS_GetIrqFunction( OSIrqMask intr );</CODE></dd> 22</dl><h2>Arguments</h2> 23<TABLE border="1"> 24 <TBODY> 25 <TR> 26 <TD><B><I>intr</I></B></TD> 27 <TD>The IRQ interrupt cause of the handler to obtain.<BR> 28 Refer to <A href="interrupts_list.html">Types of Interrupts</A> for more information on the types of interrupts.</TD> 29 </TR> 30 </TBODY> 31</TABLE> 32<h2>Return Values</h2> 33<p>The interrupt handler that corresponds to the specified IRQ interrupt cause.</p> 34<H2>Description</H2> 35<P>This function gets the interrupt handler.</P> 36<P>It returns the corresponding handler from within the IRQ interrupt table for the specified IRQ interrupt cause. The interrupt cause is specified in <B><I>intr</I></B>.</P> 37 38<P>The interrupt handler is of type <code>OSIrqFunction</code>. It is a <CODE>void</CODE>-type function that doesn't take any arguments.</P> 39<P>This function is used to get data; to set data, use <CODE><A href="OS_SetIrqFunction.html">OS_SetIrqFunction()</A></CODE>.</P> 40<h2>See Also</h2> 41<p><A href="OS_SetIrqMask.html"><code>OS_SetIrqMask</code></A>, <A href="OS_InitIrqTable.html"><code>OS_InitIrqTable</code></A>, <A href="OS_SetIrqFunction.html"><code>OS_SetIrqFunction</code></A></p> 42<H2>Revision History</H2> 43<P> 442005/03/08 Standardized the Japanese term for "interrupt."<br> 2003/12/01 Initial version.</P> 45<hr><p>CONFIDENTIAL</p></body> 46</html> 47