z8530sio.html
来自「vxworks相关论文」· HTML 代码 · 共 198 行
HTML
198 行
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/z8530Sio.html - generated by refgen from z8530Sio.c --> <title> z8530Sio </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>z8530Sio</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>z8530Sio</strong> - Z8530 SCC Serial Communications Controller driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./z8530Sio.html#z8530DevInit">z8530DevInit</a></i>( )</b> - intialize a <b>Z8530_DUSART</b><br><b><i><a href="./z8530Sio.html#z8530IntWr">z8530IntWr</a></i>( )</b> - handle a transmitter interrupt<br><b><i><a href="./z8530Sio.html#z8530IntRd">z8530IntRd</a></i>( )</b> - handle a reciever interrupt<br><b><i><a href="./z8530Sio.html#z8530IntEx">z8530IntEx</a></i>( )</b> - handle error interrupts<br><b><i><a href="./z8530Sio.html#z8530Int">z8530Int</a></i>( )</b> - handle all interrupts in one vector<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the driver for the Z8530 SCC (Serial Communications Controller).It uses the SCCs in asynchronous mode only.<p></blockquote><h4>USAGE</h4><blockquote><p>A <b>Z8530_DUSART</b> structure is used to describe the chip. This data structurecontains two <b>Z8530_CHAN</b> structures which describe the chip's two serialchannels. Supported baud rates range from 50 to 38400. The default baudrate is <b>Z8530_DEFAULT_BAUD</b> (9600). The BSP may redefine this.<p>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>Z8530_DUSART</b> structure (exceptthe <b>SIO_DRV_FUNCS</b>) before calling <b><i><a href="./z8530Sio.html#z8530DevInit">z8530DevInit</a></i>( )</b>.<p>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 interrupts via <b><i><a href="./intArchLib.html#intConnect">intConnect</a></i>( )</b> (either the singleinterrupt z8530Int or the three interrupts z8530IntWr, z8530IntRd,and z8530IntEx).<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 thesignals CTS on transmit and DSR on read. Refer to the target documentationfor the RS232 port configuration. The function HUPCL(hang up on last close) issupported. Default hardware options are defined by <b>Z8530_DEFAULT_OPTIONS</b>.The BSP may redefine them.<p>All device registers are accessed via BSP-defined macros so that memory-mapped as well as I/O space accesses can be supported. The BSP may re-define the <b>REG_8530_READ</b> and <b>REG_8530_WRITE</b> macros as needed. By default,they are defined as simple memory-mapped accesses.<p>The BSP may define <b>DATA_REG_8530_DIRECT</b> to cause direct access to the Z8530data register, where hardware permits it. By default, it is not defined.<p>The BSP may redefine the macro for the channel reset delay <b>Z8530_RESET_DELAY</b>as well as the channel reset delay counter value <b>Z8530_RESET_DELAY_COUNT</b> asrequired. The delay is defined as the minimum time between successive chipaccesses (6 PCLKs + 200 nSec for a Z8530, 4 PCLKs for a Z85C30 or Z85230)plus an additional 4 PCLKs. At a typical PCLK frequency of 10 MHz, each PCLKis 100 nSec, giving a minimum reset delay of:<p></blockquote><h4>Z8530</h4><blockquote><p>10 PCLKs + 200 nSec = 1200 nSec = 1.2 uSec<p>Z85x30: 8 PCLKs = 800 nSec = 0.8 uSec<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>drv/sio/z8530Sio.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./z8530Sio.html#top">z8530Sio</a></b><hr><a name="z8530DevInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>z8530DevInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>z8530DevInit</i>( )</strong> - intialize a <b>Z8530_DUSART</b></p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void z8530DevInit ( Z8530_DUSART * pDusart )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>The BSP must have already initialized all the device addresses, etc in<b>Z8530_DUSART</b> structure. This routine initializes some <b>SIO_CHAN</b>function pointers and then resets the chip to a quiescent state.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./z8530Sio.html#top">z8530Sio</a></b><hr><a name="z8530IntWr"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>z8530IntWr</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>z8530IntWr</i>( )</strong> - handle a transmitter interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void z8530IntWr ( Z8530_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles write interrupts from the SCC.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./z8530Sio.html#top">z8530Sio</a></b><hr><a name="z8530IntRd"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>z8530IntRd</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>z8530IntRd</i>( )</strong> - handle a reciever interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void z8530IntRd ( Z8530_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles read interrupts from the SCC.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./z8530Sio.html#top">z8530Sio</a></b><hr><a name="z8530IntEx"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>z8530IntEx</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>z8530IntEx</i>( )</strong> - handle error interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void z8530IntEx ( Z8530_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles miscellaneous interrupts on the SCC.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./z8530Sio.html#top">z8530Sio</a></b><hr><a name="z8530Int"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>z8530Int</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>z8530Int</i>( )</strong> - handle all interrupts in one vector</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void z8530Int ( Z8530_DUSART * pDusart )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>On some boards, all SCC interrupts for both ports share a single interruptvector. This is the ISR for such boards.We determine from the parameter which SCC interrupted, then look atthe code to find out which channel and what kind of interrupt.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./z8530Sio.html#top">z8530Sio</a></b></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?