⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wdblib.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wdbLib.html - generated by refgen from wdbLib.c --> <title> wdbLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference :  OS Libraries</i></a></p></blockquote><h1>wdbLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wdbLib</strong> - WDB agent context management library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./wdbLib.html#wdbSystemSuspend">wdbSystemSuspend</a>(&nbsp;)</b>  -  suspend the system.<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides a routine to transfer control from the run time system to the WDB agent running in external mode. This agent in externalmode allows a system-wide control, including ISR debugging, from a host tool(eg: Crosswind, WindSh ...) through the target server and the WDBcommuncation link.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>wdb/wdbLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><p><i>API Guide: WTX Protocol ,</i><i>Tornado User's Guide: Overview </i><hr><a name="wdbSystemSuspend"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>wdbSystemSuspend(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wdbSystemSuspend(&nbsp;)</strong> - suspend the system.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS wdbSystemSuspend (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine transfers control from the run time system to the WDB agent running in external mode. In order to give back the control tothe system it must be resumed by the the external WDB agent.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><p>The code below, called in a vxWorks application, suspends the system :<p><pre>  if (wdbSystemSuspend != OK)      printf ("External mode is not supported by the WDB agent.\n");</pre>From a host tool, we can detect that the system is suspended.<p>First, attach to the target server :<p><pre>  wtxtcl&gt; wtxToolAttach EP960CX  EP960CX_ps@sevre</pre>Then, you can get the agent mode :<p><pre>  wtxtcl&gt; wtxAgentModeGet  AGENT_MODE_EXTERN</pre>To get the status of the system context, execute :<p><pre>  wtxtcl&gt; wtxContextStatusGet CONTEXT_SYSTEM 0  CONTEXT_SUSPENDED</pre>In order to resume the system, simply execute :<p><pre>  wtxtcl&gt;  wtxContextResume CONTEXT_SYSTEM 0  0</pre>You will see that the system is now running :<p><pre>  wtxtcl&gt; wtxContextStatusGet CONTEXT_SYSTEM 0  CONTEXT_RUNNING</pre></blockquote><h4>RETURNS</h4><blockquote><p><p>OK upon successful completion, ERROR if external mode is not supportedby the WDB agent.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbLib.html#top">wdbLib</a></b></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -