VxWorks Reference Manual : Libraries
shSciSio - Hitachi SH SCI (Serial Communications Interface) driver
shSciDevInit( ) - initialize a on-chip serial communication interface
shSciIntRcv( ) - handle a channel's receive-character interrupt.
shSciIntTx( ) - handle a channels transmitter-ready interrupt.
shSciIntErr( ) - handle a channel's error interrupt.
dummyCallback( ) - dummy callback routine.
This is the driver for the Hitachi SH series on-chip SCI (Serial Communication Interface). It uses the SCI in asynchronous mode only.
A SCI_CHAN structure is used to describe the chip.
The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the values in the SCI_CHAN structure (except the SIO_DRV_FUNCS) before calling shSciDevInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ), which connects the chips interrupts via intConnect( ).
drv/sio/shSciSio.h sioLib.h
shSciDevInit( ) - initialize a on-chip serial communication interface
void shSciDevInit ( SCI_CHAN * pChan )
This routine initializes the driver function pointers and then resets the chip in a quiescent state. The BSP must have already initialized all the device addresses and the baudFreq fields in the SCI_CHAN structure before passing it to this routine.
N/A
shSciIntRcv( ) - handle a channel's receive-character interrupt.
void shSciIntRcv ( SCI_CHAN * pChan /* channel generating the interrupt */ )
N/A
shSciIntTx( ) - handle a channels transmitter-ready interrupt.
void shSciIntTx ( SCI_CHAN * pChan /* channel generating the interrupt */ )
N/A
shSciIntErr( ) - handle a channel's error interrupt.
void shSciIntErr ( SCI_CHAN * pChan /* channel generating the interrupt */ )
N/A
dummyCallback( ) - dummy callback routine.
STATUS dummyCallback (void)
ERROR.