Commit Graph

27 Commits

Author SHA1 Message Date
Tobias Kaupat
fd75bf3895 Windows: Set DTS via setCommState
https://github.com/bugst/go-serial/issues/35
2017-07-25 13:07:20 +02:00
Veniamin Albaev
8b7629bfe1 Added buffer flush methods
+ serial.Port.ResetInputBuffer()
+ serial.Port.ResetOutputBuffer()
2017-03-09 11:47:38 +03:00
Cristian Maglie
970475ed06 Updated licenses 2017-03-04 16:29:55 +01:00
Veniamin Albaev
b55fdf163b All //sys instructions moved to separate syscall_* files
Generated `syscall_*` files ranamed to `zsyscall_*` ones
like it done in `golang.org/x/sys` package.
2017-02-23 21:40:47 +03:00
Veniamin Albaev
378aafb2f7 //go:generate moved out of OS specific go file
To avoid cross platform go generate issue
Look at https://github.com/golang/go/issues/16368
2017-01-24 11:29:30 +03:00
Cristian Maglie
ff9cf2b84b Windows: use OVERLAPPED operations 2017-01-21 12:47:54 +01:00
Cristian Maglie
aa77894c35 Modem signals implementaions (windows) 2016-10-31 18:02:38 +01:00
Cristian Maglie
5be0087bd5 Added interface methods for RS232 signals 2016-10-31 18:02:38 +01:00
Cristian Maglie
f56a50621e Slighlty improved bits handling in windows 2016-10-31 18:02:38 +01:00
Cristian Maglie
b93c8f2fea Use go:generate to create syscall_windows.go
This dramatically improves maintainability of generated files.

This will be eventually implemented on other generated files as well.
2016-10-22 22:37:33 +02:00
Cristian Maglie
b89deafa1c Change import path to "go.bug.st/serial.v1"
This is needed when there are breaking changes in the API.
2016-09-05 01:05:22 +02:00
Cristian Maglie
f5235118e1 Made mode bits enumeration explicit in Windows implementation 2016-04-25 00:05:34 +02:00
Cristian Maglie
294a68d523 Another round of lint on Windows implementation 2016-04-25 00:05:34 +02:00
Cristian Maglie
f5be203394 Created interface Port. Rationalized documentation. 2016-04-24 17:20:49 +02:00
Cristian Maglie
88e647775e Rename serial.SerialPort to serial.Port
another lint suggestion.
2016-04-24 17:20:49 +02:00
Cristian Maglie
485b2f86a8 Fixed a bunch of golint warnings (this needs an API change) 2016-04-24 17:20:49 +02:00
Cristian Maglie
e90aca32c8 Updates to documentation 2016-01-01 21:14:05 +01:00
Cristian Maglie
5946927a79 Fix for field visibility in SerialPort struct 2015-01-02 03:10:12 +01:00
Cristian Maglie
55b609d095 Added first draft of documentation 2015-01-02 03:08:31 +01:00
Cristian Maglie
2629684436 Cosmetic change: rewritten error conditions in a more compact way 2014-12-31 00:37:02 +01:00
Cristian Maglie
9e85415532 Removed cgo dependency from windows implementation 2014-12-31 00:27:28 +01:00
Cristian Maglie
3415c57d6a Use pointers in windowsSerialPort methods 2014-12-30 20:45:25 +01:00
Cristian Maglie
14313e47fb Added canonical (vanity) imports 2014-12-30 20:41:33 +01:00
Cristian Maglie
bf454eae31 Small fix to win API 2014-12-30 20:36:21 +01:00
Cristian Maglie
4eaa3b67d0 Updated API on windows implementation 2014-12-30 14:17:59 +01:00
Cristian Maglie
340397b32a Added LICENSE 2014-12-14 16:44:34 +01:00
Cristian Maglie
8c49fe6332 Reorganized repository 2014-12-14 16:07:10 +01:00