Debian Codegraph @

types_windows.go

raw symbols SCIP
1 // +build ignore
2
3 package serial
4
5 // #include <windows.h>
6 import "C"
7
8 const (
9 c_MAXDWORD = C.MAXDWORD
10 c_ONESTOPBIT = C.ONESTOPBIT
11 c_TWOSTOPBITS = C.TWOSTOPBITS
12 c_EVENPARITY = C.EVENPARITY
13 c_ODDPARITY = C.ODDPARITY
14 c_NOPARITY = C.NOPARITY
15 )
16
17 type c_COMMTIMEOUTS C.COMMTIMEOUTS
18
19 type c_DCB C.DCB
20
21 func toDWORD(val int) C.DWORD {
22 return C.DWORD(val)
23 }
24
25 func toBYTE(val int) C.BYTE {
26 return C.BYTE(val)
27 }