📄 m68302sio.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/m68302Sio.html - generated by refgen from m68302Sio.c --> <title> m68302Sio </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>m68302Sio</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>m68302Sio</strong> - Motorola MC68302 bimodal tty driver </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./m68302Sio.html#m68302SioInit">m68302SioInit</a></i>( )</b> - initialize a <b>M68302_CP</b><br><b><i><a href="./m68302Sio.html#m68302SioInit2">m68302SioInit2</a></i>( )</b> - initialize a <b>M68302_CP</b> (part 2)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This is the driver for the internal communications processor (CP)of the Motorola MC68302.<p></blockquote><h4>USER-CALLABLE ROUTINES</h4><blockquote><p>Most of the routines in this driver are accessible only through the I/Osystem. Before the driver can be used, it must be initialized by calling theroutines <b><i><a href="./m68302Sio.html#m68302SioInit">m68302SioInit</a></i>( )</b> and <b><i><a href="./m68302Sio.html#m68302SioInit2">m68302SioInit2</a></i>( )</b>.Normally, they are called by <b><i><a href="./sysLib.html#sysSerialHwInit">sysSerialHwInit</a></i>( )</b> and <b><i><a href="./sysLib.html#sysSerialHwInit2">sysSerialHwInit2</a></i>( )</b>in <b>sysSerial.c</b><p>This driver uses 408 bytes of buffer space as follows:<p> 128 bytes for portA tx buffer<br> 128 bytes for portB tx buffer<br> 128 bytes for portC tx buffer<br> 8 bytes for portA rx buffers (8 buffers, 1 byte each)<br> 8 bytes for portB rx buffers (8 buffers, 1 byte each)<br> 8 bytes for portC rx buffers (8 buffers, 1 byte each)<p>The buffer pointer in the <b>m68302cp</b> structure points to the buffer area,which is usually specified as <b>IMP_BASE_ADDR</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 tty driver; formore information, see the manual entry for tyLib. The available baudrates are 300, 600, 1200, 2400, 4800, 9600 and 19200.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ttyDrv.html#top">ttyDrv</a></b>, <b><a href="./tyLib.html#top">tyLib</a></b><p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>drv/sio/m68302Sio.h</b> <b>sioLib.h</b><hr><a name="m68302SioInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>m68302SioInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>m68302SioInit</i>( )</strong> - initialize a <b>M68302_CP</b></p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void m68302SioInit ( M68302_CP * pCp )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the driverfunction pointers and then resets the chip to a quiescent state.The BSP must already have initialized all the device addresses and the<b>baudFreq</b> fields in the <b>M68302_CP</b> structure before passing it to thisroutine. The routine resets the device and initializes everything to support polled mode (if possible), but does not enable interrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./m68302Sio.html#top">m68302Sio</a></b><hr><a name="m68302SioInit2"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>m68302SioInit2</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>m68302SioInit2</i>( )</strong> - initialize a <b>M68302_CP</b> (part 2)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void m68302SioInit2 ( M68302_CP * pCp )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>Enables interrupt mode of operation.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./m68302Sio.html#top">m68302Sio</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -