📄 ppc403sio.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ppc403Sio.html - generated by refgen from ppc403Sio.c --> <title> ppc403Sio </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>ppc403Sio</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>ppc403Sio</strong> - ppc403GA serial driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./ppc403Sio.html#ppc403DummyCallback">ppc403DummyCallback</a></i>( )</b> - dummy callback routine<br><b><i><a href="./ppc403Sio.html#ppc403DevInit">ppc403DevInit</a></i>( )</b> - initialize the serial port unit<br><b><i><a href="./ppc403Sio.html#ppc403IntWr">ppc403IntWr</a></i>( )</b> - handle a transmitter interrupt<br><b><i><a href="./ppc403Sio.html#ppc403IntRd">ppc403IntRd</a></i>( )</b> - handle a receiver interrupt<br><b><i><a href="./ppc403Sio.html#ppc403IntEx">ppc403IntEx</a></i>( )</b> - handle error interrupts<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the driver for PPC403GA serial port on the on-chip peripheral bus.The SPU (serial port unit) consists of three main elements: receiver,transmitter, and baud-rate generator. For details, refer to the <i>PPC403GA Embedded Controller User's Manual. </i><p></blockquote><h4>USAGE</h4><blockquote><p>A <b>PPC403_CHAN</b> structure is used to describe the chip. This data structurecontains the single serial channel.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 values in the <b>PPC403_CHAN</b> structure (exceptthe <b>SIO_DRV_FUNCS</b>) before calling <b><i><a href="./ppc403Sio.html#ppc403DevInit">ppc403DevInit</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 chip interrupt routines <b><i><a href="./ppc403Sio.html#ppc403IntWr">ppc403IntWr</a></i>( )</b> and <b><i><a href="./ppc403Sio.html#ppc403IntRd">ppc403IntRd</a></i>( )</b> via <b><i><a href="./intArchLib.html#intConnect">intConnect</a></i>( )</b>.<p></blockquote><h4>IOCTL FUNCTIONS</h4><blockquote><p>This driver responds to the same <b><i><a href="./ioLib.html#ioctl">ioctl</a></i>( )</b> codes as other SIO drivers; for more information, see <b>sioLib.h</b>.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>drv/sio/ppc403Sio.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ppc403Sio.html#top">ppc403Sio</a></b><hr><a name="ppc403DummyCallback"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ppc403DummyCallback</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ppc403DummyCallback</i>( )</strong> - dummy callback routine</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre> STATUS ppc403DummyCallback (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR (always).</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ppc403Sio.html#top">ppc403Sio</a></b><hr><a name="ppc403DevInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ppc403DevInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ppc403DevInit</i>( )</strong> - initialize the serial port unit</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ppc403DevInit ( PPC403_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>The BSP must already have initialized all the device addresses in the<b>PPC403_CHAN</b> structure. This routine initializes some <b>SIO_CHAN</b>function pointers and then resets the chip in a quiescent state.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ppc403Sio.html#top">ppc403Sio</a></b><hr><a name="ppc403IntWr"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ppc403IntWr</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ppc403IntWr</i>( )</strong> - handle a transmitter interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ppc403IntWr ( PPC403_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles write interrupts from the serial communication controller.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ppc403Sio.html#top">ppc403Sio</a></b><hr><a name="ppc403IntRd"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ppc403IntRd</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ppc403IntRd</i>( )</strong> - handle a receiver interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ppc403IntRd ( PPC403_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles read interrupts from the serial commonication controller.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ppc403Sio.html#top">ppc403Sio</a></b><hr><a name="ppc403IntEx"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ppc403IntEx</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ppc403IntEx</i>( )</strong> - handle error interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ppc403IntEx ( PPC403_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles miscellaneous interrupts on the seial communicationcontroller.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ppc403Sio.html#top">ppc403Sio</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -