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

📄 ns16550sio.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ns16550Sio.html - generated by refgen from ns16550Sio.c --> <title> ns16550Sio </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>ns16550Sio</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ns16550Sio</strong> - NS 16550 UART tty driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./ns16550Sio.html#ns16550DevInit">ns16550DevInit</a></i>(&nbsp;)</b>  -  intialize an NS16550 channel<br><b><i><a href="./ns16550Sio.html#ns16550IntWr">ns16550IntWr</a></i>(&nbsp;)</b>  -  handle a transmitter interrupt <br><b><i><a href="./ns16550Sio.html#ns16550IntRd">ns16550IntRd</a></i>(&nbsp;)</b>  -  handle a receiver interrupt <br><b><i><a href="./ns16550Sio.html#ns16550IntEx">ns16550IntEx</a></i>(&nbsp;)</b>  -  miscellaneous interrupt processing<br><b><i><a href="./ns16550Sio.html#ns16550Int">ns16550Int</a></i>(&nbsp;)</b>  -  interrupt level processing<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the driver for the NS16552 DUART. This device includes two universalasynchronous receiver/transmitters, a baud rate generator, and a complete modem control capability. <p>A <b>NS16550_CHAN</b> structure is used to describe the serial channel. This data structure is defined in <b>ns16550Sio.h</b>.<p>Only asynchronous serial operation is supported by this driver.The default serial settings are 8 data bits, 1 stop bit, no parity, 9600baud, and software flow control.  <p></blockquote><h4>USAGE</h4><blockquote><p>The BSP's <b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>(&nbsp;)</b> routine typically calls <b><i><a href="./sysLib.html#sysSerialHwInit">sysSerialHwInit</a></i>(&nbsp;)</b>,which creates the <b>NS16550_CHAN</b> structure and initializes all the values in the structure (except the <b>SIO_DRV_FUNCS</b>) before calling <b><i><a href="./ns16550Sio.html#ns16550DevInit">ns16550DevInit</a></i>(&nbsp;)</b>.The BSP's <b><i><a href="../bsp/ads360/sysLib.html#sysHwInit2" >sysHwInit2</a></i>(&nbsp;)</b> routine typically calls <b><i><a href="./sysLib.html#sysSerialHwInit2">sysSerialHwInit2</a></i>(&nbsp;)</b>, whichconnects the chips interrupts via <b><i><a href="./intArchLib.html#intConnect">intConnect</a></i>(&nbsp;)</b> (either the singleinterrupt <b>ns16550Int</b> or the three interrupts <b>ns16550IntWr</b>, <b>ns16550IntRd</b>,and <b>ns16550IntEx</b>).<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.When hardware flow control is enabled, the signals RTS and DTR are set TRUE and remain set until a HUPCL is performed. <p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>drv/sio/ns16552Sio.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ns16550Sio.html#top">ns16550Sio</a></b><hr><a name="ns16550DevInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ns16550DevInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ns16550DevInit</i>(&nbsp;)</strong> - intialize an NS16550 channel</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ns16550DevInit    (    NS16550_CHAN * pChan /* pointer to channel */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes some <b>SIO_CHAN</b> function pointers and then resetsthe chip in a quiescent state.  Before this routine is called, the BSPmust already have initialized all the device addresses, etc. in the<b>NS16550_CHAN</b> structure.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ns16550Sio.html#top">ns16550Sio</a></b><hr><a name="ns16550IntWr"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ns16550IntWr</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ns16550IntWr</i>(&nbsp;)</strong> - handle a transmitter interrupt </p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ns16550IntWr    (    NS16550_CHAN * pChan /* pointer to channel */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles write interrupts from the UART. It reads a characterand puts it in the transmit holding register of the device for transfer.<p>If there are no more characters to transmit, transmission is disabled by clearing the transmit interrupt enable bit in the IER(int enable register).<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ns16550Sio.html#top">ns16550Sio</a></b><hr><a name="ns16550IntRd"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ns16550IntRd</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ns16550IntRd</i>(&nbsp;)</strong> - handle a receiver interrupt </p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ns16550IntRd    (    NS16550_CHAN * pChan /* pointer to channel */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles read interrupts from the UART.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ns16550Sio.html#top">ns16550Sio</a></b><hr><a name="ns16550IntEx"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ns16550IntEx</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ns16550IntEx</i>(&nbsp;)</strong> - miscellaneous interrupt processing</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ns16550IntEx    (    NS16550_CHAN * pChan /* pointer to channel */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles miscellaneous interrupts on the UART.Not implemented yet.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ns16550Sio.html#top">ns16550Sio</a></b><hr><a name="ns16550Int"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ns16550Int</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ns16550Int</i>(&nbsp;)</strong> - interrupt level processing</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ns16550Int    (    NS16550_CHAN * pChan /* pointer to channel */    )</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>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="./ns16550Sio.html#top">ns16550Sio</a></b></body></html>

⌨️ 快捷键说明

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