Commit 28bbd00e authored by rswindell's avatar rswindell
Browse files

Add comRaise/LowerRTS functinos for Win32.

Need a *nix implementation now.
parent 2fa62350
......@@ -120,6 +120,8 @@ COMIOEXPORT BOOL COMIOCALL comSetBaudRate(COM_HANDLE, ulong rate);
COMIOEXPORT int COMIOCALL comGetModemStatus(COM_HANDLE);
COMIOEXPORT int COMIOCALL comRaiseDTR(COM_HANDLE);
COMIOEXPORT int COMIOCALL comLowerDTR(COM_HANDLE);
COMIOEXPORT int COMIOCALL comRaiseRTS(COM_HANDLE);
COMIOEXPORT int COMIOCALL comLowerRTS(COM_HANDLE);
COMIOEXPORT BOOL COMIOCALL comWriteByte(COM_HANDLE, BYTE);
COMIOEXPORT int COMIOCALL comWriteBuf(COM_HANDLE, const BYTE*, size_t buflen);
COMIOEXPORT int COMIOCALL comWriteString(COM_HANDLE, const char*);
......
......@@ -132,6 +132,16 @@ BOOL COMIOCALL comLowerDTR(COM_HANDLE handle)
return EscapeCommFunction(handle, CLRDTR);
}
BOOL COMIOCALL comRaiseRTS(COM_HANDLE handle)
{
return EscapeCommFunction(handle, SETRTS);
}
BOOL COMIOCALL comLowerRTS(COM_HANDLE handle)
{
return EscapeCommFunction(handle, CLRRTS);
}
BOOL COMIOCALL comWriteByte(COM_HANDLE handle, BYTE ch)
{
DWORD wr=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment