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

📄 wdbuserevtlib.html

📁 Vxworks API操作系统和驱动程序设计API。压缩的HTML文件
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wdbUserEvtLib.html - generated by refgen from wdbUserEvtLib.c --> <title> wdbUserEvtLib </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>wdbUserEvtLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wdbUserEvtLib</strong> - WDB user event library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./wdbUserEvtLib.html#wdbUserEvtLibInit">wdbUserEvtLibInit</a>(&nbsp;)</b>  -  include the WDB user event library <br><b><a href="./wdbUserEvtLib.html#wdbUserEvtPost">wdbUserEvtPost</a>(&nbsp;)</b>  -  post a user event string to host tools.<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains routines for sending WDB User Events.  The eventis sent through the WDB agent, the WDB communication link and the targetserver to the host tools that have registered for it. The event receivedby host tools will be a WTX user event string.<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><hr><a name="wdbUserEvtLibInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>wdbUserEvtLibInit(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wdbUserEvtLibInit(&nbsp;)</strong> - include the WDB user event library </p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void wdbUserEvtLibInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This null routine is provided so that <b><a href="./wdbUserEvtLib.html#top">wdbUserEvtLib</a></b> can be linked intothe system. If <b>INCLUDE_WDB_USER_EVENT</b> is defined in <b>configAll.h</b>,wdbUserEvtLibInit is called by the WDB config routine, <b>wdbConfig(&nbsp;)</b>,in <b>usrWdb.c</b>.  <p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbUserEvtLib.html#top">wdbUserEvtLib</a></b><hr><a name="wdbUserEvtPost"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>wdbUserEvtPost(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wdbUserEvtPost(&nbsp;)</strong> - post a user event string to host tools.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS wdbUserEvtPost    (    char * event              /* event string to send */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine posts the string <i>event</i> to host tools that have registered for it. Host tools will receive a USER WTX event string. The maximum size of the event is <b>WDB_MAX_USER_EVT_SIZE</b> (defined in $<b>WIND_BASE/target/h/wdb/wdbLib.h</b>).<p></blockquote><h4>EXAMPLE</h4><blockquote><p><p>The code below sends a WDB user event to host tools :<p><pre>  char * message = "Alarm: reactor overheating !!!";  if (wdbUserEvtPost (message) != OK)      printf ("Can't send alarm message to host tools");</pre>This event will be received by host tools that have registered for it.For example a WTX TCL based tool would do :<p><pre>  wtxtcl&gt; wtxToolAttach EP960CX  EP960CX_ps@sevre  wtxtcl&gt; wtxRegisterForEvent "USER.*"  0  wtxtcl&gt; wtxEventGet  USER Alarm: reactor overheating !!!</pre>Host tools can register for more specific user events :<p><pre>  wtxtcl&gt; wtxToolAttach EP960CX  EP960CX_ps@sevre  wtxtcl&gt; wtxRegisterForEvent "USER Alarm.*"  0  wtxtcl&gt; wtxEventGet  USER Alarm: reactor overheating !!!</pre>In this piece of code, only the USER events beginning with "Alarm"will be received.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK upon successful completion, a WDB error code if unable to send theevent to the host or ERROR if the size of the event is greaterthan <b>WDB_MAX_USER_EVT_SIZE</b>.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbUserEvtLib.html#top">wdbUserEvtLib</a></b></body></html>

⌨️ 快捷键说明

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