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_DisableInterrupts_IrqAndFiq</title>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</head>
10<body>
11<h1 align="left">OS_DisableInterrupts_IrqAndFiq <img src="../../image/NTR.gif" align="middle"><img src="../../image/TWL.gif" align="middle"></h1>
12<h2>Syntax</h2>
13<dl>
14  <dd>
15<CODE>#include &lt;nitro/os.h&gt;</CODE><BR>
16  <BR>
17  <CODE>OSIntrMode OS_DisableInterrupts_IrqAndFiq( void );</CODE></dd>
18</dl><h2>Arguments</h2>
19<P>None.</P>
20<h2>Return Values</h2>
21<p>Returns a value that indicates the state before this function was called.</p>
22<p>The return value type is <CODE>OSIntrMode</CODE> (a <CODE>u32</CODE> typedef), but the return value is the logical sum of the <CODE>OSIntrMode_Irq</CODE> and <CODE>OSIntrMode_Fiq</CODE> enumerated types.<BR><BR> The <CODE>OSIntrMode_Irq</CODE> enumerated type:</p>
23<TABLE cellspacing="2">
24  <TBODY>
25    <TR>
26      <TH>Value</TH>
27      <TH>Previous state</TH>
28    </TR>
29    <TR>
30      <TD>OS_INTRMODE_IRQ_DISABLE</TD>
31      <TD>IRQ Disable (prohibited)</TD>
32    </TR>
33    <TR>
34      <TD>OS_INTRMODE_IRQ_ENABLE</TD>
35      <TD>IRQ Enable (permitted)</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39<p><BR> The <CODE>OSIntrMode_Fiq</CODE> enumerated type:</P>
40<TABLE cellspacing="2">
41  <TBODY>
42    <TR>
43      <TH>Value</TH>
44      <TH>Previous state</TH>
45    </TR>
46    <TR>
47      <TD>OS_INTRMODE_FIQ_DISABLE</TD>
48      <TD>FIQ Disable (prohibited)</TD>
49    </TR>
50    <TR>
51      <TD>OS_INTRMODE_FIQ_ENABLE</TD>
52      <TD>FIQ Enable (permitted)</TD>
53    </TR>
54  </TBODY>
55</TABLE>
56<H2>Description</H2>
57<P>This function disables IRQ and FIQ interrupts.</P>
58<P>The master enable flag for all interrupts (the Interrupt Master Enable Flag) is what is disabled here. If IRQs are disabled with this function, no interrupts will occur even if IRQ interrupt causes are individually set to enable.</P>
59<P>The return value indicates the state prior to calling the function.</P>
60<h2>Internal Operation</h2>
61<P>The CPSR register (current program status register) IRQ and FIQ interrupt control bit are set (the set is disabled).</P>
62<h2>See Also</h2>
63<p><CODE><A href="OS_EnableInterrupts_IrqAndFiq.html">OS_EnableInterrupts_IrqAndFiq</A><BR>
64 <A href="OS_RestoreInterrupts_IrqAndFiq.html">OS_RestoreInterrupts_IrqAndFiq</A><BR>
65 <A href="OS_DisableInterrupts.html">OS_DisableInterrupts</A><br></CODE></p>
66<H2>Revision History</H2>
67<P>
682005/03/08 Standardized the Japanese word for &quot;interrupt&quot;.<br /> 2004/03/04 Moved from <CODE>OS_DisableInterrupts</CODE>.</P>
69<hr><p>CONFIDENTIAL</p></body>
70</html>
71