/****************************************************************************/
/* Copyright 1992 to 1995, MBARI                                            */
/****************************************************************************/
/* Summary  : IBC Quad Serial Port Interface Functions for VxWorks          */
/* Filename : quadSerCmd.h                                                  */
/* Author   : Douglas Au                                                    */
/* Project  : New ROV                                                       */
/* Version  : Version 1.0                                                   */
/* Created  : 10/20/94                                                      */
/* Modified : 01/31/95                                                      */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/* $Header:                                                                 */
/* $Log:                                                                    */
/* Initial revision                                                         */
/***************************************************************************/


#ifdef __STDC__

STATUS Quad_Serial_Read( sio32Chan *IBC_SerialChan, Word boardAddr, Word chan,
           Byte *readBuffer, Int16 nBytes);

STATUS Quad_Serial_Write( sio32Chan *IBC_SerialChan, Word boardAddr, Word chan,
           Byte *writeBuffer, Int16 nBytes);

STATUS Quad_Serial_SetTermChar( sio32Chan *IBC_SerialChan, Word boardAddr,
            Word chan, char termchar);

STATUS Quad_Serial_SetLineParm( sio32Chan *IBC_SerialChan, Word boardAddr,
            Word chan, Nat16 baud, Nat16 data, Nat16 stop, Nat16 par,
            MBool handshake, Int16 proto );

STATUS Quad_Serial_GetLineParm( sio32Chan *IBC_SerialChan, Word boardAddr,
            Word chan, Nat16 *baud, Nat16 *data, Nat16 *stop, Nat16 *par,
            MBool *handshake, Int16 *proto );

STATUS Quad_Serial_SendBreak( sio32Chan *IBC_SerialChan, Word boardAddr,
            Word chan, Nat16 mode);

STATUS Quad_Serial_Open( sio32Chan *IBC_SerialChan, Word boardAddr, Word chan);

STATUS Quad_Serial_Close( sio32Chan *IBC_SerialChan, Word boardAddr, Word chan);

STATUS Quad_Serial_Flush( sio32Chan *IBC_SerialChan, Word boardAddr, Word chan);

Int16  Quad_Serial_RxBytes( sio32Chan *IBC_SerialChan, Word boardAddr);

Int16  Quad_Serial_TxBytes( sio32Chan *IBC_SerialChan, Word boardAddr);

Int16  Quad_Serial_TermChars( sio32Chan *IBC_SerialChan, Word boardAddr,
            Word chan);

STATUS IBC_QUAD_SERIAL_GetPsuStatus( sio32Chan *IBC_SerialChan,
            Word boardAddr, Nat16 *psuStatus);

#endif /* __STDC__ */

















