Commit Graph

  • 6eedab17b4 Added wrapper around goselect library. Cristian Maglie 2016-11-14 00:33:28 +01:00
  • 152558831e Moved Pipe{} into own sub-package Cristian Maglie 2016-11-13 23:44:13 +01:00
  • eee219b43f posix: added check for port closing Cristian Maglie 2016-11-08 12:31:18 +01:00
  • 12cc48dd24 unix: avoid Read blocking forever if called before Close Cristian Maglie 2016-11-06 18:30:49 +01:00
  • f8c1f56fd3 Added unix-pipe wrapper Cristian Maglie 2016-11-06 18:30:40 +01:00
  • 43fc80d807 Fixed typo... oops Cristian Maglie 2016-10-31 18:11:46 +01:00
  • aa77894c35 Modem signals implementaions (windows) Cristian Maglie 2016-10-29 23:42:44 +02:00
  • a736b8f7b9 Modem signals implementation (posix) Cristian Maglie 2016-10-29 23:19:13 +02:00
  • 5be0087bd5 Added interface methods for RS232 signals Cristian Maglie 2016-10-29 22:18:24 +02:00
  • f56a50621e Slighlty improved bits handling in windows Cristian Maglie 2016-10-29 23:34:04 +02:00
  • bd780fd51f Merge branch 'bit-fixes' into v1 Cristian Maglie 2016-10-29 23:37:08 +02:00
  • 04302f262c Update testing golang version to 1.7.2 Cristian Maglie 2016-10-22 22:17:56 +02:00
  • b93c8f2fea Use go:generate to create syscall_windows.go Cristian Maglie 2016-10-13 21:52:13 +02:00
  • cb166b5b85 Improved error reporting on setting stop bits Cristian Maglie 2016-10-22 15:52:27 +02:00
  • f78e270591 Slightly improved error messages Cristian Maglie 2016-10-22 15:50:10 +02:00
  • c534e6fb45 Improved error reporting for parity settings Cristian Maglie 2016-10-22 15:48:43 +02:00
  • a3909960d3 Removed termiosMask(..) and use the correct bitmask type Cristian Maglie 2016-10-22 15:39:46 +02:00
  • 50993cc77b Factorize a function to enable/disable of RTS/CTS handshake for unix Cristian Maglie 2016-10-20 23:57:09 +02:00
  • 9398f35b69 Use unsigned values for termios setting Cristian Maglie 2016-10-20 23:55:06 +02:00
  • 7178181a28 Disable RTS/CTS handshake by default Cristian Maglie 2016-10-20 23:17:26 +02:00
  • fe0dfe76d3 Improved PortError Cristian Maglie 2016-10-12 16:17:33 +02:00
  • 01692a6f8d Added missing speeds to freebsd port Cristian Maglie 2016-09-17 19:48:48 +02:00
  • 85dc492d83 Merge branch 'v0' into v1 Cristian Maglie 2016-09-17 19:38:51 +02:00
  • 597a08c0c0 Remove "allowed failure" on Travis CI for freebsd Cristian Maglie 2016-09-17 19:30:47 +02:00
  • a0fe3b8b02 Works on FreeBSD (even on armv6 and armv7 when cross compiled). Franz Bettag 2016-09-15 17:46:31 +02:00
  • 5eda20a945 Added a note for api change in readme Cristian Maglie 2016-09-11 01:09:22 +02:00
  • b89deafa1c Change import path to "go.bug.st/serial.v1" Cristian Maglie 2016-09-04 23:49:24 +02:00
  • f5235118e1 Made mode bits enumeration explicit in Windows implementation Cristian Maglie 2016-04-24 23:56:03 +02:00
  • 294a68d523 Another round of lint on Windows implementation Cristian Maglie 2016-04-24 17:58:32 +02:00
  • f5be203394 Created interface Port. Rationalized documentation. Cristian Maglie 2016-04-24 17:19:32 +02:00
  • 88e647775e Rename serial.SerialPort to serial.Port Cristian Maglie 2016-01-01 23:32:28 +01:00
  • 485b2f86a8 Fixed a bunch of golint warnings (this needs an API change) Cristian Maglie 2016-01-01 23:23:20 +01:00
  • e90aca32c8 Updates to documentation Cristian Maglie 2016-01-01 21:14:05 +01:00
  • 59b4222e7d Refactoring tests Cristian Maglie 2016-01-01 18:26:21 +01:00
  • 2cc88585f9 Small updates to doc. Added README. Cristian Maglie 2015-08-30 16:48:54 +02:00
  • 5946927a79 Fix for field visibility in SerialPort struct Cristian Maglie 2015-01-02 03:10:12 +01:00
  • 55b609d095 Added first draft of documentation Cristian Maglie 2015-01-02 03:08:31 +01:00
  • 20bc06bd0e Added build test and more archs/os to travis build Cristian Maglie 2015-01-01 19:36:19 +01:00
  • 5ab2dc1bf9 do not use travis-ci default dependency get Cristian Maglie 2015-01-01 19:21:51 +01:00
  • 26ad955a97 Update to travis script Cristian Maglie 2015-01-01 19:17:39 +01:00
  • a0921585d3 Added travis-ci config Cristian Maglie 2015-01-01 18:57:04 +01:00
  • 7ef6adccaa Removed unused makefile Cristian Maglie 2015-01-01 18:26:15 +01:00
  • 16fdbdfd55 Updated port list search regexp for macosx Cristian Maglie 2015-01-01 17:48:05 +01:00
  • 160f7b87d5 go fmt round Cristian Maglie 2015-01-01 17:47:41 +01:00
  • 9c18e832ce Fixed unchecked array access Cristian Maglie 2015-01-01 17:46:14 +01:00
  • 4b12c041b5 Added implementation for darwin,386 Cristian Maglie 2015-01-01 03:45:27 +01:00
  • da42d3809e Added implementation for darwin x86_64 Cristian Maglie 2014-12-31 19:43:47 +01:00
  • e8f767688f Moved generated code into a separate file Cristian Maglie 2014-12-31 01:09:25 +01:00
  • 2629684436 Cosmetic change: rewritten error conditions in a more compact way Cristian Maglie 2014-12-31 00:37:02 +01:00
  • 9e85415532 Removed cgo dependency from windows implementation Cristian Maglie 2014-12-31 00:27:28 +01:00
  • 3415c57d6a Use pointers in windowsSerialPort methods Cristian Maglie 2014-12-30 20:45:25 +01:00
  • 14313e47fb Added canonical (vanity) imports Cristian Maglie 2014-12-30 20:41:33 +01:00
  • bf454eae31 Small fix to win API Cristian Maglie 2014-12-30 20:36:21 +01:00
  • 4eaa3b67d0 Updated API on windows implementation Cristian Maglie 2014-12-30 14:17:59 +01:00
  • ddce273c49 Updated example Cristian Maglie 2014-12-30 14:17:42 +01:00
  • b5ece1ae86 Default mode to 9600 N 8 1 Cristian Maglie 2014-12-25 00:05:02 +01:00
  • d8910d4004 Simplified API for setting port mode Cristian Maglie 2014-12-24 23:59:59 +01:00
  • c5bf5a0514 reorganized linux implementation. No code change just moving functions around Cristian Maglie 2014-12-15 20:07:56 +01:00
  • fffcc61237 Added Set(...) method to set all comm-params altogether Cristian Maglie 2014-12-15 18:43:09 +01:00
  • ff10f48795 linux: refactored native calls as class private Cristian Maglie 2014-12-15 18:30:45 +01:00
  • 47c54231d2 linux: more idiomatic array operations on GetPortLists Cristian Maglie 2014-12-15 18:19:13 +01:00
  • 667f593174 linux: implemented last native calls through syscall package Cristian Maglie 2014-12-15 18:13:37 +01:00
  • 5a547e5348 linux: implemented cfset{i|o}speed without C function call Cristian Maglie 2014-12-15 18:09:15 +01:00
  • 259139a5db linux: ported all ioctl calls to syscalls Cristian Maglie 2014-12-15 18:08:23 +01:00
  • 25f974f062 linux: use Syscall for ioctl calls Cristian Maglie 2014-12-15 18:06:48 +01:00
  • f84dc80d3e Added SetStopBits (linux only) Cristian Maglie 2014-12-14 18:50:29 +01:00
  • 3351cd50e0 Added SetDataBits function (linux only for now) Cristian Maglie 2014-12-14 18:38:44 +01:00
  • 83038c8ed9 Idiomatic 'iota' enumeration for serial error codes Cristian Maglie 2014-12-14 18:00:50 +01:00
  • 62b1977d7c Small fix in native variable scope Cristian Maglie 2014-12-14 17:59:21 +01:00
  • 1d5eedba28 Added SetParity (still missing windows implementation) Cristian Maglie 2014-12-14 17:54:16 +01:00
  • 340397b32a Added LICENSE Cristian Maglie 2014-12-14 16:44:34 +01:00
  • 8c49fe6332 Reorganized repository Cristian Maglie 2014-12-14 16:07:10 +01:00
  • 4b5cc5816f Windows: Fixed Read, with USB disconnect detection Cristian Maglie 2014-12-13 20:28:51 +04:30
  • 4095079d4b Windows: fixed OpenPort Cristian Maglie 2014-12-13 20:18:16 +04:30
  • fe9ccd37d9 Windows: added SetSpeed Cristian Maglie 2014-12-13 20:17:40 +04:30
  • 5567c33301 Windows: added native syscalls and structures Cristian Maglie 2014-12-13 20:17:11 +04:30
  • ef9acbb454 Update test.go Cristian Maglie 2014-12-13 20:14:51 +04:30
  • 006c15bd46 Fixed opaque windowsSerialPort struct Cristian Maglie 2014-12-13 20:14:39 +04:30
  • 6149925519 Windows: added native getPortList Cristian Maglie 2014-12-13 20:09:40 +04:30
  • 1997ec0f79 Added urls with some info about Windows Comm API Cristian Maglie 2014-12-13 20:08:27 +04:30
  • eba8f4f5b6 Added some error types Cristian Maglie 2014-12-13 20:06:31 +04:30
  • 8ccb774c5d fixed indent Cristian Maglie 2014-12-13 20:05:40 +04:30
  • c0438ea53f first commit Cristian Maglie 2014-12-07 21:25:14 +01:00