Cristian Maglie
04302f262c
Update testing golang version to 1.7.2
2016-10-22 22:37:51 +02: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
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
a3909960d3
Removed termiosMask(..) and use the correct bitmask type
...
This requires a bit of copying in darwin 386/amd64 but simplifies
the overall design.
2016-10-22 18:32:51 +02:00
Cristian Maglie
50993cc77b
Factorize a function to enable/disable of RTS/CTS handshake for unix
2016-10-20 23:57:09 +02:00
Cristian Maglie
9398f35b69
Use unsigned values for termios setting
...
This allows the last (most significant) bit to be set without
overflow errors. The error becomes visible after adding the
CRTSCTS constant on linux/386:
const tcCRTSCTS uint = 0x80000000
2016-10-20 23:55:06 +02:00
Cristian Maglie
7178181a28
Disable RTS/CTS handshake by default
...
Fix #3
2016-10-20 23:17:26 +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
01692a6f8d
Added missing speeds to freebsd port
2016-09-17 19:48:48 +02:00
Cristian Maglie
85dc492d83
Merge branch 'v0' into v1
2016-09-17 19:48:20 +02:00
Cristian Maglie
597a08c0c0
Remove "allowed failure" on Travis CI for freebsd
2016-09-17 19:30:47 +02:00
Franz Bettag
a0fe3b8b02
Works on FreeBSD (even on armv6 and armv7 when cross compiled).
2016-09-15 17:46:58 +02:00
Cristian Maglie
5eda20a945
Added a note for api change in readme
2016-09-11 10:32:26 +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
59b4222e7d
Refactoring tests
...
Tests are now moved in the source folder.
Simplified travis-ci script.
Added some examples (that are checked for build, but not executed)
2016-01-01 20:38:46 +01:00
Cristian Maglie
2cc88585f9
Small updates to doc. Added README.
2015-08-30 16:48:54 +02: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
20bc06bd0e
Added build test and more archs/os to travis build
2015-01-01 20:47:39 +01:00
Cristian Maglie
5ab2dc1bf9
do not use travis-ci default dependency get
2015-01-01 19:24:34 +01:00
Cristian Maglie
26ad955a97
Update to travis script
2015-01-01 19:17:39 +01:00
Cristian Maglie
a0921585d3
Added travis-ci config
2015-01-01 18:57:04 +01:00
Cristian Maglie
7ef6adccaa
Removed unused makefile
2015-01-01 18:26:15 +01:00
Cristian Maglie
16fdbdfd55
Updated port list search regexp for macosx
2015-01-01 17:48:05 +01:00
Cristian Maglie
160f7b87d5
go fmt round
2015-01-01 17:47:41 +01:00
Cristian Maglie
9c18e832ce
Fixed unchecked array access
2015-01-01 17:46:14 +01:00
Cristian Maglie
4b12c041b5
Added implementation for darwin,386
2015-01-01 03:45:27 +01:00
Cristian Maglie
da42d3809e
Added implementation for darwin x86_64
2014-12-31 19:43:47 +01:00
Cristian Maglie
e8f767688f
Moved generated code into a separate file
2014-12-31 01:09:25 +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
ddce273c49
Updated example
2014-12-30 14:17:42 +01:00
Cristian Maglie
b5ece1ae86
Default mode to 9600 N 8 1
2014-12-25 00:05:02 +01:00
Cristian Maglie
d8910d4004
Simplified API for setting port mode
2014-12-24 23:59:59 +01:00
Cristian Maglie
c5bf5a0514
reorganized linux implementation. No code change just moving functions around
2014-12-15 20:07:56 +01:00
Cristian Maglie
fffcc61237
Added Set(...) method to set all comm-params altogether
2014-12-15 18:43:09 +01:00
Cristian Maglie
ff10f48795
linux: refactored native calls as class private
2014-12-15 18:30:45 +01:00
Cristian Maglie
47c54231d2
linux: more idiomatic array operations on GetPortLists
2014-12-15 18:19:13 +01:00