Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
28bbd00e
Commit
28bbd00e
authored
4 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Add comRaise/LowerRTS functinos for Win32.
Need a *nix implementation now.
parent
2fa62350
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/comio/comio.h
+2
-0
2 additions, 0 deletions
src/comio/comio.h
src/comio/comio_win32.c
+10
-0
10 additions, 0 deletions
src/comio/comio_win32.c
with
12 additions
and
0 deletions
src/comio/comio.h
+
2
−
0
View file @
28bbd00e
...
@@ -120,6 +120,8 @@ COMIOEXPORT BOOL COMIOCALL comSetBaudRate(COM_HANDLE, ulong rate);
...
@@ -120,6 +120,8 @@ COMIOEXPORT BOOL COMIOCALL comSetBaudRate(COM_HANDLE, ulong rate);
COMIOEXPORT
int
COMIOCALL
comGetModemStatus
(
COM_HANDLE
);
COMIOEXPORT
int
COMIOCALL
comGetModemStatus
(
COM_HANDLE
);
COMIOEXPORT
int
COMIOCALL
comRaiseDTR
(
COM_HANDLE
);
COMIOEXPORT
int
COMIOCALL
comRaiseDTR
(
COM_HANDLE
);
COMIOEXPORT
int
COMIOCALL
comLowerDTR
(
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
BOOL
COMIOCALL
comWriteByte
(
COM_HANDLE
,
BYTE
);
COMIOEXPORT
int
COMIOCALL
comWriteBuf
(
COM_HANDLE
,
const
BYTE
*
,
size_t
buflen
);
COMIOEXPORT
int
COMIOCALL
comWriteBuf
(
COM_HANDLE
,
const
BYTE
*
,
size_t
buflen
);
COMIOEXPORT
int
COMIOCALL
comWriteString
(
COM_HANDLE
,
const
char
*
);
COMIOEXPORT
int
COMIOCALL
comWriteString
(
COM_HANDLE
,
const
char
*
);
...
...
This diff is collapsed.
Click to expand it.
src/comio/comio_win32.c
+
10
−
0
View file @
28bbd00e
...
@@ -132,6 +132,16 @@ BOOL COMIOCALL comLowerDTR(COM_HANDLE handle)
...
@@ -132,6 +132,16 @@ BOOL COMIOCALL comLowerDTR(COM_HANDLE handle)
return
EscapeCommFunction
(
handle
,
CLRDTR
);
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
)
BOOL
COMIOCALL
comWriteByte
(
COM_HANDLE
handle
,
BYTE
ch
)
{
{
DWORD
wr
=
0
;
DWORD
wr
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment