VxWorks Reference Manual : Libraries

cd2400Sio

NAME

cd2400Sio - CL-CD2400 MPCC serial driver

ROUTINES

cd2400HrdInit( ) - initialize the chip
cd2400IntRx( ) - handle receiver interrupts
cd2400IntTx( ) - handle transmitter interrupts
cd2400Int( ) - handle special status interrupts

DESCRIPTION

This is the driver for the Cirus Logic CD2400 MPCC. It uses the SCC's in asynchronous mode.

USAGE

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( ).

IOCTL FUNCTIONS

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.

INCLUDE FILES

drv/sio/cd2400Sio.h

SEE ALSO

cd2400Sio


Libraries : Routines

cd2400HrdInit( )

NAME

cd2400HrdInit( ) - initialize the chip

SYNOPSIS

void cd2400HrdInit
    (
    CD2400_QUSART * pQusart /* chip to reset */
    )

DESCRIPTION

This routine initializes the chip and the four channels.

SEE ALSO

cd2400Sio


Libraries : Routines

cd2400IntRx( )

NAME

cd2400IntRx( ) - handle receiver interrupts

SYNOPSIS

void cd2400IntRx
    (
    CD2400_CHAN * pChan
    )

DESCRIPTION

This routine handles the interrupts for all channels for a Receive Data Interrupt.

SEE ALSO

cd2400Sio


Libraries : Routines

cd2400IntTx( )

NAME

cd2400IntTx( ) - handle transmitter interrupts

SYNOPSIS

void cd2400IntTx
    (
    CD2400_CHAN * pChan
    )

DESCRIPTION

This routine handles transmitter interrupts from the MPCC.

SEE ALSO

cd2400Sio


Libraries : Routines

cd2400Int( )

NAME

cd2400Int( ) - handle special status interrupts

SYNOPSIS

void cd2400Int
    (
    CD2400_CHAN * pChan
    )

DESCRIPTION

This routine handles special status interrupts from the MPCC.

SEE ALSO

cd2400Sio