/***************************************************************************
**
**    $Header:   D:/PICSLDV/SRC/LOG/DIAGNO/UISRLDIA.H__   1.11   09 Jan 1997 14:28:04   ZJRD  $
**
**    $Log:   D:/PICSLDV/SRC/LOG/DIAGNO/UISRLDIA.H__  $
** 
**    Rev 1.11   09 Jan 1997 14:28:04   ZJRD
** No change.
** 
**    Rev 1.10   13 Dec 1996 11:23:22   ZJRD
** No change.
** 
**    Rev 1.9   22 Nov 1996 11:04:18   ZJRD
** No change.
** 
**    Rev 1.8   11 Nov 1996 12:51:34   ZJRD
** No change.
** 
**    Rev 1.7   06 Nov 1996 13:03:12   ZJRD
** No change.
** 
**    Rev 1.6   02 Nov 1996 09:50:48   ZJRD
** No change.
** 
**    Rev 1.5   30 Oct 1996 12:53:34   ZJRD
** No change.
** 
**    Rev 1.4   28 Oct 1996 09:46:00   ZJRD
** PIC/SLD Version 0.92
** 
**    Rev 1.1   23 Sep 1996 10:40:20   ZJRD
** No change.
** 
**    Rev 1.0   06 Sep 1996 13:56:22   ZJRD
** Initial revision.
** 
**    Rev 1.0   13 Aug 1996 09:20:14   ZJRD
** Initial revision.
** 
****************************************************************************/

/***************************************************************************
**
** File name : UISRLDIA.H 
** Author:john chow
** Description:
**    Descript derived class from CWinSerialPICAgree for using in setup
**
**    Finished date: 96.8
**    modifed date:
**
**    Copyright (C) 1995 Microtek International, Inc.
**    All Rights Reserved
**
****************************************************************************/

#ifndef _UISRLDIA_
#define _UISRLDIA_
#include "uiserial.h"
#include "abitype.h"

//definition of class CDosSerialAgree 
class CWinSerialPICAgreeDia : public CWinSerialPICAgree
{
//members              
//operation
public:
    virtual BOOL CommInit();  
    BOOL DoCanTime();
    unsigned char m_bWaitTime;
    BOOL m_isStop;
    
    enum {
    	ERR_STOP_BY_USER = 235
    };

private:
	BYTE ReadCommType();
	BYTE ReadCommBaud();     
	BYTE ReadClock();
	BYTE ReadCpu();
	void WriteCommType(BYTE);
	void WriteCommBaud(BYTE);
	void WriteClock(BYTE);
	void WriteCpu(BYTE);
    
//construct and destruct
public:
        
};

#endif //uisrlx.h

