VxWorks Reference Manual : Libraries

n72001Sio

NAME

n72001Sio - NEC PD72001 MPSC ( Multiprotocol Serial Communications Controller )

ROUTINES

n72001DevInit( ) - intialize a N72001_MPSC
n72001IntWr( ) - handle a transmitter interrupt
n72001IntRd( ) - handle a reciever interrupt
n72001Int( ) - interrupt level processing

DESCRIPTION

This is a driver for the NEC PD72001 MPSC ( Multiprotocol Serial Communications Controller ). It uses the MPSC in asynchronous mode only.

USAGE

A N72001_MPSC structure is used to describe the chip. This data structure contains two N72001_CHAN structures which describe the chip's two serial channels. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the values in the N72001_MPSC structure (except the SIO_DRV_FUNCS) before calling n72001DevInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chips interrupts via intConnect( ) (either the single interrupt n72001Int or the three interrupts n72001IntWr, n72001IntRd, and n72001IntEx).

INCLUDE FILES

drv/sio/n72001Sio.h

SEE ALSO

n72001Sio


Libraries : Routines

n72001DevInit( )

NAME

n72001DevInit( ) - intialize a N72001_MPSC

SYNOPSIS

void n72001DevInit
    (
    N72001_MPSC * pMpsc /* serial device descriptor */
    )

DESCRIPTION

The BSP must have already initialized all the device addresses, etc in N72001_MPSC structure. This routine initializes some SIO_CHAN function pointers and then resets the chip in a quiescent state.

SEE ALSO

n72001Sio


Libraries : Routines

n72001IntWr( )

NAME

n72001IntWr( ) - handle a transmitter interrupt

SYNOPSIS

void n72001IntWr
    (
    N72001_CHAN * pChan /* MPSC channel descriptor */
    )

DESCRIPTION

This routine handles write interrupts from the MPSC.

RETURNS

N/A

SEE ALSO

n72001Sio


Libraries : Routines

n72001IntRd( )

NAME

n72001IntRd( ) - handle a reciever interrupt

SYNOPSIS

void n72001IntRd
    (
    N72001_CHAN * pChan /* MPSC channel descriptor */
    )

DESCRIPTION

This routine handles read interrupts from the MPSC

RETURNS

N/A

SEE ALSO

n72001Sio


Libraries : Routines

n72001Int( )

NAME

n72001Int( ) - interrupt level processing

SYNOPSIS

void n72001Int
    (
    N72001_MPSC * pMpsc /* serial device descriptor */
    )

DESCRIPTION

This routine handles interrupts from MPSC channels.

On some boards, all MPSC interrupts for both ports share a single interrupt vector. This is the ISR for such boards. We determine from the parameter which MPSC interrupted, then look at the code to find out which channel and what kind of interrupt.

RETURNS

N/A

SEE ALSO

n72001Sio