ttydrv.html

来自「Vxworks API操作系统和驱动程序设计API。压缩的HTML文件」· HTML 代码 · 共 108 行

HTML
108
字号
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ttyDrv.html - generated by refgen from ttyDrv.c --> <title> ttyDrv </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>ttyDrv</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ttyDrv</strong> - provide terminal device access to serial channels </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./ttyDrv.html#ttyDrv">ttyDrv</a>(&nbsp;)</b>  -  initialize the tty driver<br><b><a href="./ttyDrv.html#ttyDevCreate">ttyDevCreate</a>(&nbsp;)</b>  -  create a VxWorks device for a serial channel<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides the OS-dependent functionality of a serial device,including canonical processing and the interface to the VxWorks I/O system.<p>The BSP provides "raw" serial channels which are accessedvia an <b>SIO_CHAN</b> data structure. These raw devices provide only lowlevel access to the devices to send and receive characters.This library builds on that functionality by allowing theserial channels to be accessed via the VxWorks I/O system usingthe standard read/write interface. It also provides the canonicalprocessing support of <b><a href="./tyLib.html#top">tyLib</a></b>.<p>The routines in this library are typically called by <b><a href="./usrConfig.html#usrRoot">usrRoot</a>(&nbsp;)</b>in <b>usrConfig.c</b> to create VxWorks serial devices at system startup time.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>ttyLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tyLib.html#top">tyLib</a></b>, <b>sioLib.h</b><hr><a name="ttyDrv"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>ttyDrv(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ttyDrv(&nbsp;)</strong> - initialize the tty driver</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ttyDrv (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the tty driver, which is the OS interfaceto core serial channel(s). Normally, it is called by <b><a href="./usrConfig.html#usrRoot">usrRoot</a>(&nbsp;)</b>in <b>usrConfig.c</b>.<p>After this routine is called, <b><a href="./ttyDrv.html#ttyDevCreate">ttyDevCreate</a>(&nbsp;)</b> is typically calledto bind serial channels to VxWorks devices.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the driver cannot be installed.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ttyDrv.html#top">ttyDrv</a></b><hr><a name="ttyDevCreate"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>ttyDevCreate(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ttyDevCreate(&nbsp;)</strong> - create a VxWorks device for a serial channel</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ttyDevCreate    (    char *     name,          /* name to use for this device */    SIO_CHAN * pSioChan,      /* pointer to core driver structure */    int        rdBufSize,     /* read buffer size, in bytes */    int        wrtBufSize     /* write buffer size, in bytes */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine creates a device on a specified serial channel.  Each channelto be used should have exactly one device associated with it by callingthis routine.<p>For instance, to create the device "/tyCo/0", with buffer sizes of 512 bytes,the proper call would be:<pre>    ttyDevCreate ("/tyCo/0", pSioChan, 512, 512);</pre>Where pSioChan is the address of the underlying <b>SIO_CHAN</b> serial channeldescriptor (defined in <b>sioLib.h</b>).This routine is typically called by <b><a href="./usrConfig.html#usrRoot">usrRoot</a>(&nbsp;)</b> in <b>usrConfig.c</b><p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the driver is not installed, or thedevice already exists.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ttyDrv.html#top">ttyDrv</a></b></body></html>

⌨️ 快捷键说明

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