Commit Graph

27 Commits

Author SHA1 Message Date
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
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
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
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
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
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
14313e47fb Added canonical (vanity) imports 2014-12-30 20:41:33 +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
Cristian Maglie
667f593174 linux: implemented last native calls through syscall package
no more "C" package dependencies for linux! yay!
2014-12-15 18:13:37 +01:00
Cristian Maglie
5a547e5348 linux: implemented cfset{i|o}speed without C function call 2014-12-15 18:09:15 +01:00
Cristian Maglie
259139a5db linux: ported all ioctl calls to syscalls 2014-12-15 18:08:23 +01:00
Cristian Maglie
25f974f062 linux: use Syscall for ioctl calls 2014-12-15 18:06:48 +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
62b1977d7c Small fix in native variable scope 2014-12-14 17:59:21 +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