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

📄 wdbslippktdrv.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wdbSlipPktDrv.html - generated by refgen from wdbSlipPktDrv.c --> <title> wdbSlipPktDrv </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>wdbSlipPktDrv</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wdbSlipPktDrv</strong> - a serial line packetizer for the WDB agent </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./wdbSlipPktDrv.html#wdbSlipPktDevInit">wdbSlipPktDevInit</a></i>(&nbsp;)</b>  -  initialize a SLIP packet device for a WDB agent<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is a lightweight SLIP driver that interfaces with the WDB agentsUDP/IP interpreter.  It is the lightweight equivalent of the VxWorksSLIP netif driver, and uses the same protocol to assemble serialcharacters into IP datagrams (namely the SLIP protocol).SLIP is a simple protocol that uses four token charactersto delimit each packet:<p>&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<b>FRAME_END</b>&nbsp;(0300)<br>&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<b>FRAME_ESC</b>&nbsp;(0333)<br>&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<b>FRAME_TRANS_END</b>&nbsp;(0334)<br>&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<b>FRAME_TRANS_ESC</b>&nbsp;(0335)<p>The END character denotes the end of an IP packet.  The ESC character is usedwith <b>TRANS_END</b> and <b>TRANS_ESC</b> to circumvent potential occurrences of END or ESCwithin a packet.  If the END character is to be embedded, SLIP sends"ESC <b>TRANS_END</b>" to avoid confusion between a SLIP-specific END and actualdata whose value is END.  If the ESC character is to be embedded, thenSLIP sends "ESC <b>TRANS_ESC</b>" to avoid confusion.  (Note that the SLIP ESC isnot the same as the ASCII ESC.)<p>On the receiving side of the connection, SLIP uses the opposite actions todecode the SLIP packets.  Whenever an END character is received, SLIPassumes a full packet has been received and sends on.<p>This driver has an MTU of 1006 bytes.  If the host is using a real SLIPdriver with a smaller MTU, then you will need to lower the definitionof <b>WDB_MTU</b> in <b>configAll.h</b> so that the host and target MTU match.If you are not using a SLIP driver on the host, but instead are usingthe target server's wdbserial backend to connect to the agent, then you do notneed to worry about incompatabilities between the host and target MTUs.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbSlipPktDrv.html#top">wdbSlipPktDrv</a></b><hr><a name="wdbSlipPktDevInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>wdbSlipPktDevInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wdbSlipPktDevInit</i>(&nbsp;)</strong> - initialize a SLIP packet device for a WDB agent</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void wdbSlipPktDevInit    (    WDB_SLIP_PKT_DEV * pPktDev,    /* SLIP packetizer device */    SIO_CHAN *         pSioChan,   /* underlying serial channel */    void (*            stackRcv)() /* callback when a packet arrives */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes a SLIP packet device on one of the BSP'sserial channels.  It is typically called from <b>usrWdb.c</b> when the WDBagent's lightweight SLIP communication path is selected.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbSlipPktDrv.html#top">wdbSlipPktDrv</a></b></body></html>

⌨️ 快捷键说明

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