Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
947 B

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 03/09/2001
// PROJECT:
// SUBSYSTEM:
// FILE: RS485.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of RS485.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "RS485.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#define new DEBUG_NEW
#endif
DWORD CConnectionRS485::Write( IN PBYTE pBuffer, IN DWORD dwSize, IN DWORD dwTimeout )
{
::EscapeCommFunction( CConnectionRS232::GetCommPortHandle(), SETRTS );
DWORD dwWritten = CConnectionRS232::Write( pBuffer, dwSize, dwTimeout );
::EscapeCommFunction( CConnectionRS232::GetCommPortHandle(), CLRRTS );
return dwWritten;
}