Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
28bbd00e
Commit
28bbd00e
authored
Jun 26, 2020
by
rswindell
Browse files
Add comRaise/LowerRTS functinos for Win32.
Need a *nix implementation now.
parent
2fa62350
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/comio/comio.h
src/comio/comio.h
+2
-0
src/comio/comio_win32.c
src/comio/comio_win32.c
+10
-0
No files found.
src/comio/comio.h
View file @
28bbd00e
...
...
@@ -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
*
);
...
...
src/comio/comio_win32.c
View file @
28bbd00e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment