Commit Graph

242 Commits

Author SHA1 Message Date
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
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
83038c8ed9 Idiomatic 'iota' enumeration for serial error codes 2014-12-14 18:00:50 +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
Cristian Maglie
4b5cc5816f Windows: Fixed Read, with USB disconnect detection 2014-12-13 20:28:51 +04:30
Cristian Maglie
4095079d4b Windows: fixed OpenPort 2014-12-13 20:18:16 +04:30
Cristian Maglie
fe9ccd37d9 Windows: added SetSpeed 2014-12-13 20:17:40 +04:30
Cristian Maglie
5567c33301 Windows: added native syscalls and structures 2014-12-13 20:17:11 +04:30
Cristian Maglie
ef9acbb454 Update test.go 2014-12-13 20:14:51 +04:30
Cristian Maglie
006c15bd46 Fixed opaque windowsSerialPort struct 2014-12-13 20:14:39 +04:30
Cristian Maglie
6149925519 Windows: added native getPortList 2014-12-13 20:09:40 +04:30
Cristian Maglie
1997ec0f79 Added urls with some info about Windows Comm API 2014-12-13 20:08:27 +04:30
Cristian Maglie
eba8f4f5b6 Added some error types 2014-12-13 20:06:31 +04:30
Cristian Maglie
8ccb774c5d fixed indent 2014-12-13 20:05:40 +04:30
Cristian Maglie
c0438ea53f first commit 2014-12-07 21:25:14 +01:00