1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>OS_GetCpsrIrq</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">OS_GetCpsrIrq <img src="../../image/NTR.gif" align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14<DD><CODE>#include <nitro/os.h></CODE><BR> <BR> <CODE>OSIntrMode OS_GetCpsrIrq( void );</CODE> 15</DL> 16<H2>Arguments</H2> 17<P>None.</P> 18<H2>Return Values</H2> 19<p>Returns a value that indicates the current IRQ interrupt status.</p> 20<p>The type of the return value is <CODE>OSIntrMode</CODE> (a <CODE>u32</CODE> typedef), but the values that can be returned will be one of the <CODE>OSIntrMode_Irq</CODE> enumerated type values below.<BR> 21</p> 22<TABLE cellspacing="2"> 23 <TBODY> 24 <TR> 25<TH>Value</TH> 26<TH>Current state</TH> 27 </TR> 28 <TR> 29<TD><CODE>OS_INTRMODE_IRQ_DISABLE</CODE></TD> 30<TD>IRQ Disable (prohibited)</TD> 31 </TR> 32 <TR> 33<TD><CODE>OS_INTRMODE_IRQ_ENABLE</CODE></TD> 34<TD>IRQ Enable (permitted)</TD> 35 </TR> 36 </TBODY> 37</TABLE> 38 39<H2>Description</H2> 40<P>Gets the current IRQ interrupt status.</P> 41<H2>Internal Operation</H2> 42<P>Reads the control bit of the IRQ interrupt from CPSR (current program status register).</P> 43<H2>See Also</H2> 44<P><A href="OS_EnableInterrupts.html"><CODE>OS_EnableInterrupts</CODE></A><BR> <A href="OS_DisableInterrupts.html"><CODE>OS_DisableInterrupts</CODE></A></P> 45<H2>Revision History</H2> 46<P> 472005/03/08 Standardized Japanese term for "interrupt."<br> 2004/01/14 Changed function name from <CODE>OS_GetInterrupts</CODE>.<BR> 2003/12/01 Initial version</P> 48<hr><p>CONFIDENTIAL</p></body> 49</HTML>