VxWorks Reference Manual : Libraries
cd2400Sio - CL-CD2400 MPCC serial driver
cd2400HrdInit( ) - initialize the chip
cd2400IntRx( ) - handle receiver interrupts
cd2400IntTx( ) - handle transmitter interrupts
cd2400Int( ) - handle special status interrupts
This is the driver for the Cirus Logic CD2400 MPCC. It uses the SCC's in asynchronous mode.
A CD2400_QUSART structure is used to describe the chip. This data structure contains four CD2400_CHAN structure which describe the chip's four serial channels. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the values in the CD2400_QUSART structure (except the SIO_DRV_FUNCS) before calling cd2400HrdInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chips interrupts (cd2400Int, cd2400IntRx, and cd2400IntTx) via intConnect( ).
This driver responds to the same ioctl( ) codes as a normal serial driver; for more information, see the comments in sioLib.h. The available baud rates are: 50, 110, 150, 300, 600, 1200, 2400, 3600, 4800, 7200, 9600, 19200, and 38400.
drv/sio/cd2400Sio.h
cd2400HrdInit( ) - initialize the chip
void cd2400HrdInit ( CD2400_QUSART * pQusart /* chip to reset */ )
This routine initializes the chip and the four channels.
cd2400IntRx( ) - handle receiver interrupts
void cd2400IntRx ( CD2400_CHAN * pChan )
This routine handles the interrupts for all channels for a Receive Data Interrupt.
cd2400IntTx( ) - handle transmitter interrupts
void cd2400IntTx ( CD2400_CHAN * pChan )
This routine handles transmitter interrupts from the MPCC.
cd2400Int( ) - handle special status interrupts
void cd2400Int ( CD2400_CHAN * pChan )
This routine handles special status interrupts from the MPCC.