📄 i8250sio.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/i8250Sio.html - generated by refgen from i8250Sio.c --> <title> i8250Sio </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>i8250Sio</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>i8250Sio</strong> - I8250 serial driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./i8250Sio.html#i8250HrdInit">i8250HrdInit</a></i>( )</b> - initialize the chip<br><b><i><a href="./i8250Sio.html#i8250Int">i8250Int</a></i>( )</b> - handle a receiver/transmitter interrupt<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the driver for the Intel 8250 UART Chip used on the PC 386.It uses the SCCs in asynchronous mode only.<p></blockquote><h4>USAGE</h4><blockquote><p>An <b>I8250_CHAN</b> structure is used to describe the chip.The BSP's <b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>( )</b> routine typically calls <b><i><a href="./sysLib.html#sysSerialHwInit">sysSerialHwInit</a></i>( )</b>which initializes all the register values in the <b>I8250_CHAN</b> structure(except the <b>SIO_DRV_FUNCS</b>) before calling <b><i><a href="./i8250Sio.html#i8250HrdInit">i8250HrdInit</a></i>( )</b>.The BSP's <b><i><a href="../bsp/ads360/sysLib.html#sysHwInit2" >sysHwInit2</a></i>( )</b> routine typically calls <b><i><a href="./sysLib.html#sysSerialHwInit2">sysSerialHwInit2</a></i>( )</b> whichconnects the chips interrupt handler (i8250Int) via <b><i><a href="./intArchLib.html#intConnect">intConnect</a></i>( )</b>.<p></blockquote><h4>IOCTL FUNCTIONS</h4><blockquote><p>This driver responds to all the same <b><i><a href="./ioLib.html#ioctl">ioctl</a></i>( )</b> codes as a normal serial driver;for more information, see the comments in <b>sioLib.h</b>. As initialized, theavailable baud rates are 110, 300, 600, 1200, 2400, 4800, 9600, 19200, and38400.<p>This driver handles setting of hardware options such as parity(odd, even) andnumber of data bits(5, 6, 7, 8). Hardware flow control is provided with thehandshakes RTS/CTS. The function HUPCL(hang up on last close) is available.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>drv/sio/i8250Sio.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./i8250Sio.html#top">i8250Sio</a></b><hr><a name="i8250HrdInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>i8250HrdInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>i8250HrdInit</i>( )</strong> - initialize the chip</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void i8250HrdInit ( I8250_CHAN * pChan /* pointer to device */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is called to reset the chip in a quiescent state.</blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./i8250Sio.html#top">i8250Sio</a></b><hr><a name="i8250Int"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>i8250Int</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>i8250Int</i>( )</strong> - handle a receiver/transmitter interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void i8250Int ( I8250_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles four sources of interrupts from the UART. They areprioritized in the following order by the Interrupt Identification Register:Receiver Line Status, Received Data Ready, Transmit Holding Register Emptyand Modem Status.<p>If there is another character to be transmitted, it sends it. Ifnot, or if a device has never been created for this channel, justdisable the interrupt.disable the interrupt.When a modem status interrupt occurs, the transmit interrupt is enabled ifthe CTS signal is TRUE.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./i8250Sio.html#top">i8250Sio</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -