Commit Graph

39 Commits

Author SHA1 Message Date
Jaime
75542ba31a Added support for sending breaks 2023-01-02 13:02:01 +01:00
Cristian Maglie
3099149a03 Added a doc notice for posix 'pulse' problem 2022-09-03 18:04:47 +02:00
Cristian Maglie
3c9f14262a Default status bits to 'on' 2022-09-02 17:40:21 +02:00
Tobias Kaupat
980038c3ea Allow to set initial RTS and DTR state after connect 2022-09-01 15:29:06 +02:00
Cristian Maglie
adc54fb194 Updated license years 2021-07-20 12:56:48 +02:00
Cristian Maglie
2cb14f049c SetReadTimeout: unix implementation 2021-06-29 15:24:40 +02:00
Tomáš Polomský
e18766f4d1 update go generate
Replace old mkwinsyscall call by the new version which is recommended
by Go since version 1.13.3.
2021-02-26 12:26:27 +01:00
Cristian Maglie
df95023074 Introducing go.mod for dep management 2019-12-02 19:51:36 +01:00
Cristian Maglie
24a6610f05 Updated license years
Updated to 2020 even if we are less than one month ahead.
2019-12-02 19:27:10 +01:00
Veniamin Albaev
8b7629bfe1 Added buffer flush methods
+ serial.Port.ResetInputBuffer()
+ serial.Port.ResetOutputBuffer()
2017-03-09 11:47:38 +03:00
Veniamin Albaev
4da3278c95 Use mksyscall_windows.go from $GOROOT 2017-03-09 10:46:44 +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
Cristian Maglie
0d8c7bfd78 Merge branch 'usb' into v1 2017-02-04 00:56:12 +01:00
Cristian Maglie
c8b1c23a56 Moved USB enumerations subroutines in their own package 2017-01-30 10:54:16 +01: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
5769f96804 Temporarily remove USB manufacturer/product info
I need to find a better way to obtain those infos.
2016-12-11 23:46:18 +01:00
Cristian Maglie
5050c50185 Added USB API 2016-11-30 01:46:44 +02:00
Cristian Maglie
e9103998c3 Merge remote-tracking branch 'cmaglie/fix-read-close-deadlock' into v1 2016-11-27 21:30:58 +01:00
Cristian Maglie
d50de5cbaf unix: Fixed race condition while closing serial port. Added PortClosed error 2016-11-14 00:36:30 +01:00
Cristian Maglie
5be0087bd5 Added interface methods for RS232 signals 2016-10-31 18:02:38 +01:00
Cristian Maglie
cb166b5b85 Improved error reporting on setting stop bits 2016-10-22 18:32:51 +02:00
Cristian Maglie
f78e270591 Slightly improved error messages 2016-10-22 18:32:51 +02:00
Cristian Maglie
c534e6fb45 Improved error reporting for parity settings 2016-10-22 18:32:51 +02:00
Cristian Maglie
fe0dfe76d3 Improved PortError
Removed useless "err" field.
Added "causedBy" field to wrap nested error.
2016-10-12 16:53:49 +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
f5be203394 Created interface Port. Rationalized documentation. 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
55b609d095 Added first draft of documentation 2015-01-02 03:08:31 +01:00
Cristian Maglie
14313e47fb Added canonical (vanity) imports 2014-12-30 20:41:33 +01:00
Cristian Maglie
d8910d4004 Simplified API for setting port mode 2014-12-24 23:59:59 +01:00
Cristian Maglie
fffcc61237 Added Set(...) method to set all comm-params altogether 2014-12-15 18:43:09 +01:00
Cristian Maglie
f84dc80d3e Added SetStopBits (linux only) 2014-12-14 18:50:29 +01:00
Cristian Maglie
3351cd50e0 Added SetDataBits function (linux only for now) 2014-12-14 18:39:51 +01:00
Cristian Maglie
83038c8ed9 Idiomatic 'iota' enumeration for serial error codes 2014-12-14 18:00:50 +01:00
Cristian Maglie
1d5eedba28 Added SetParity (still missing windows implementation) 2014-12-14 17:54:16 +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