?? intlib.html
字號:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/intLib.html - generated by refgen from intLib.c --> <title> intLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>intLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>intLib</strong> - architecture-independent interrupt subroutine library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./intLib.html#intContext">intContext</a></i>( )</b> - determine if the current state is in interrupt or task context<br><b><i><a href="./intLib.html#intCount">intCount</a></i>( )</b> - get the current interrupt nesting depth<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides generic routines for interrupts. Any C languageroutine can be connected to any interrupt (trap) by calling<b><i><a href="./intArchLib.html#intConnect">intConnect</a></i>( )</b>, which resides in intArchLib. The <b><i><a href="./intLib.html#intCount">intCount</a></i>( )</b> and <b><i><a href="./intLib.html#intContext">intContext</a></i>( )</b>routines are used to determine whether the CPU is running in aninterrupt context or in a normal task context. For information aboutarchitecture-dependent interrupt handling, see the manual entry forintArchLib.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>intLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./intLib.html#top">intLib</a></b>, <b><a href="./intArchLib.html#top">intArchLib</a></b>, <i>VxWorks Programmer's Guide: Basic OS</i><hr><a name="intContext"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>intContext</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>intContext</i>( )</strong> - determine if the current state is in interrupt or task context</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>BOOL intContext (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns TRUE only if the current execution state is ininterrupt context and not in a meaningful task context.<p></blockquote><h4>RETURNS</h4><blockquote><p>TRUE or FALSE.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./intLib.html#top">intLib</a></b><hr><a name="intCount"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>intCount</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>intCount</i>( )</strong> - get the current interrupt nesting depth</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int intCount (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the number of interrupts that are currently nested.<p></blockquote><h4>RETURNS</h4><blockquote><p>The number of nested interrupts.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./intLib.html#top">intLib</a></b></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -