1 // Copyright © 2016-2017 winapi-rs developers
2 // Licensed under the Apache License, Version 2.0
3 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
4 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
5 // All files in the project carrying such notice may not be copied, modified, or distributed
6 // except according to those terms.
8 use shared
::minwindef
::{BOOL, DWORD, LPDWORD}
;
9 use um
::minwinbase
::LPOVERLAPPED
;
10 use um
::winbase
::{LPCOMMCONFIG, LPCOMMPROP, LPCOMMTIMEOUTS, LPCOMSTAT, LPDCB}
;
11 use um
::winnt
::{HANDLE}
;
13 pub fn ClearCommBreak(
16 pub fn ClearCommError(
26 pub fn EscapeCommFunction(
39 pub fn GetCommModemStatus(
43 pub fn GetCommProperties(
45 lpCommProp
: LPCOMMPROP
51 pub fn GetCommTimeouts(
53 lpCommTimeouts
: LPCOMMTIMEOUTS
75 pub fn SetCommTimeouts(
77 lpCommTimeouts
: LPCOMMTIMEOUTS
79 pub fn TransmitCommChar(
86 lpOverlapped
: LPOVERLAPPED