wdbuserevtlib.html

来自「vxworks相关论文」· HTML 代码 · 共 126 行

HTML
126
字号
<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.html"><i>VxWorks Reference Manual :  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><i><a href="./wdbUserEvtLib.html#wdbUserEvtLibInit">wdbUserEvtLibInit</a></i>(&nbsp;)</b>  -  include the WDB user event library <br><b><i><a href="./wdbUserEvtLib.html#wdbUserEvtPost">wdbUserEvtPost</a></i>(&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><b><a href="./wdbUserEvtLib.html#top">wdbUserEvtLib</a></b>, <i>API Guide: WTX Protocol </i><hr><a name="wdbUserEvtLibInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>wdbUserEvtLibInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wdbUserEvtLibInit</i>(&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><i>wdbConfig</i>(&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.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>wdbUserEvtPost</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wdbUserEvtPost</i>(&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 + =
减小字号Ctrl + -
显示快捷键?