/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2009.
     ssss    gggg x   x         Steven Goodwin. All Rights Reserved.
    
This version has been released under the GNU Public License v2.0.

Please see the license files for details.

File: sgx/include/drivers/wintel32/core/comms/wintel32comport.hpp

*/

#ifndef SGX_DRIVERS_WINTEL32_CORE_COMMS_COMPORT_HPP
#define SGX_DRIVERS_WINTEL32_CORE_COMMS_COMPORT_HPP	1

class CDriverWintel32CommPortDevice {
public:
	CDriverWintel32CommPortDevice(HANDLE fileHandle);

	virtual tUINT32	read(tBYTE *pBuffer, tUINT32 bufferSize);
	virtual tUINT32	write(const tBYTE *pBuffer, tUINT32 bufferSize);
	virtual tBOOL	close();

private:
	HANDLE m_hPort;
};

#endif // SGX_DRIVERS_WINTEL32_CORE_COMMS_COMPORT_HPP
