📄 cd2400sio.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/cd2400Sio.html - generated by refgen from cd2400Sio.c --> <title> cd2400Sio </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>cd2400Sio</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>cd2400Sio</strong> - CL-CD2400 MPCC serial driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./cd2400Sio.html#cd2400HrdInit">cd2400HrdInit</a></i>( )</b> - initialize the chip<br><b><i><a href="./cd2400Sio.html#cd2400IntRx">cd2400IntRx</a></i>( )</b> - handle receiver interrupts<br><b><i><a href="./cd2400Sio.html#cd2400IntTx">cd2400IntTx</a></i>( )</b> - handle transmitter interrupts<br><b><i><a href="./cd2400Sio.html#cd2400Int">cd2400Int</a></i>( )</b> - handle special status interrupts<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the driver for the Cirus Logic CD2400 MPCC. It uses the SCC's inasynchronous mode.<p></blockquote><h4>USAGE</h4><blockquote><p>A <b>CD2400_QUSART</b> structure is used to describe the chip. This data structurecontains four <b>CD2400_CHAN</b> structure which describe the chip's four serialchannels.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>CD2400_QUSART</b> structure (exceptthe <b>SIO_DRV_FUNCS</b>) before calling <b><i><a href="./cd2400Sio.html#cd2400HrdInit">cd2400HrdInit</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 interrupts (cd2400Int, cd2400IntRx, andcd2400IntTx) 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 a normal serial driver; formore information, see the comments in <b>sioLib.h</b>. The available baud ratesare: 50, 110, 150, 300, 600, 1200, 2400, 3600, 4800, 7200, 9600,19200, and 38400.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>drv/sio/cd2400Sio.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cd2400Sio.html#top">cd2400Sio</a></b><hr><a name="cd2400HrdInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cd2400HrdInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cd2400HrdInit</i>( )</strong> - initialize the chip</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void cd2400HrdInit ( CD2400_QUSART * pQusart /* chip to reset */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the chip and the four channels.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cd2400Sio.html#top">cd2400Sio</a></b><hr><a name="cd2400IntRx"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cd2400IntRx</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cd2400IntRx</i>( )</strong> - handle receiver interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void cd2400IntRx ( CD2400_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles the interrupts for all channels for a ReceiveData Interrupt.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cd2400Sio.html#top">cd2400Sio</a></b><hr><a name="cd2400IntTx"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cd2400IntTx</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cd2400IntTx</i>( )</strong> - handle transmitter interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void cd2400IntTx ( CD2400_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles transmitter interrupts from the MPCC.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cd2400Sio.html#top">cd2400Sio</a></b><hr><a name="cd2400Int"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cd2400Int</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cd2400Int</i>( )</strong> - handle special status interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void cd2400Int ( CD2400_CHAN * pChan )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine handles special status interrupts from the MPCC.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cd2400Sio.html#top">cd2400Sio</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -