William Woodall
e8f913b4a4
Contributor notice
2013-10-30 11:53:06 -07:00
William Woodall
092836d78f
[style] whitespace changes only
2013-10-30 11:42:35 -07:00
Christopher Baker
0e5f7fa317
Fix broken ioctl calls, add exception handling.
2013-10-27 18:50:06 -05:00
Christopher Baker
9d04c09f10
Code guards for platform-specific implementations.
...
(when not using cmake / catkin)
2013-10-27 18:49:07 -05:00
William Woodall
ae34a17364
Merge pull request #33 from wjwwood/fix_custom_baudrate_osx
...
Update how custom baudrates are handled on OS X
2013-08-13 13:53:14 -07:00
daniser
079615f11f
Update win.cc
2013-08-06 02:08:22 +03:00
daniser
125c105e3f
Implemented Serial::available() for Windows
2013-08-06 01:28:46 +03:00
William Woodall
e11abb04f2
Fix compiler warnings on Windows
2013-08-02 21:20:25 -07:00
William Woodall
3db36faa14
Update how custom baudrates are handled on OS X
...
This is taken from the example serial program
on Apple's developer website, see:
http://free-pascal-general.1045716.n5.nabble.com/Non-standard-baud-rates-in-OS-X-IOSSIOSPEED-IOCTL-td4699923.html
2013-07-31 16:54:15 -07:00
William Woodall
e1138fda9e
Merge pull request #32 from wjwwood/fix_timeout_windows
...
Setting timeout throws an exception on Windows
2013-07-30 16:17:00 -07:00
William Woodall
2143e8d475
Apply the timeout settings with reconfigurePort
2013-07-30 14:08:06 -07:00
William Woodall
a0a586cf5b
[style] always use curly braces with if statements
2013-07-30 14:04:30 -07:00
William Woodall
9d20d1a07f
convert wstring into string when printing
2013-07-30 11:06:47 -07:00
William Woodall
82884ca519
Pass LPCWSTR to CreateFile in Windows impl
...
This should fix #29
2013-07-30 10:31:15 -07:00
William Woodall
ffc3028289
Use wstring for port_ type in Windows impl
2013-07-30 10:30:46 -07:00
William Woodall
516a5c7e82
Fixed another Exception misspelling.
2013-06-11 17:05:24 -07:00
William Woodall
308be5b337
Merge pull request #25 from wjwwood/fix_exceptions
...
fix, by Thomas Hoppe <thomas.hoppe@cesys.com>
2013-06-11 14:40:18 -07:00
William Woodall
060634bf91
Potential timing fix for read and write.
...
Fixes #27
2013-05-22 21:45:20 -07:00
William Woodall
2b4bafbfd2
fix, by Thomas Hoppe <thomas.hoppe@cesys.com>
...
For SerialException's:
- The name was misspelled…
- Use std::string's for error messages to prevent corruption of messages on some platforms
2013-05-08 13:52:28 -07:00
Anthony J. Bentley
b95b797de7
alloca.h does not exist on OpenBSD either.
2012-10-29 09:46:29 -06:00
William Woodall
667eedeb2f
Adding baudrates: 1000000, 11520000, 2000000, 2500000, 3000000, 3500000, and 4000000 to the unix.cc implementation. This is an attempting to work around issue #18 , needs testing on a non-USB serial adapter that can handle higher baudrates.
2012-07-08 19:45:35 -05:00
William Woodall
83ae470c78
Silly little bug in the custom baud rate code. Should fix #18 .
2012-06-18 19:04:35 -05:00
William Woodall
da1207609f
Fixing a bug in the unix write code which may have prevented it from writing in some cases, and updating some of the comments and error messages in the write function that still read like the read function
2012-06-14 18:51:24 -05:00
William Woodall
2ae490b3ac
Fixes to flowcontrol that solve a wierd bug on Linux and fix an oversight on Windows.
2012-06-12 16:55:11 -05:00
William Woodall
95790064d8
Fixing warning in Linux
2012-06-12 00:25:28 -05:00
William Woodall
94eac90d7c
Fixing a compile problem in Linux that got introduced in the Windows testing.
2012-06-12 00:23:39 -05:00
William Woodall
e9999c9c7c
Changes after testing on Windows. Everything seems to work, but it could use some more vetting.
2012-06-07 19:26:55 -05:00
William Woodall
493883da81
Fixing some warnings from compiling on Linux
2012-06-07 18:16:20 -05:00
William Woodall
ef8265a535
A small change to quiet warnings in linux
2012-06-07 18:01:18 -05:00
William Woodall
7714615af7
Disabling more copy constructors
2012-06-07 17:54:11 -05:00
William Woodall
520ccb54f4
Merge branch 'new_api' of github.com:wjwwood/serial into new_api
...
Conflicts:
.gitignore
2012-06-06 18:58:51 -05:00
William Woodall
6fac95d633
Adding initial windows support.
2012-06-06 18:56:44 -05:00
William Woodall
dcc73db6a8
Syntax fix
2012-05-11 15:28:23 -05:00
William Woodall
15f01a53a1
Adjustments to the read timeouts
2012-05-10 11:43:17 -05:00
William Woodall
937e834698
Updating the unix implementation to support the more sophisticated timeout system.
2012-05-09 19:51:56 -05:00
William Woodall
194169e5e6
More updates to the documentation and new api after comments from john and michael.
2012-05-02 21:49:09 -05:00
William Woodall
8022c1b1ea
Updating the API to fix some inconsistencies
2012-05-02 00:45:23 -05:00
William Woodall
81fc77dd47
Fixed some warnings from clang
2012-04-02 21:20:45 -05:00
William Woodall
a8259fcda2
Changing the throw to add file and line number
2012-02-07 14:11:17 -06:00
John Harrison
6138aceedf
Removing a Clang specific compiler warning.
2012-02-06 18:31:06 -06:00
John Harrison
9734f943cb
Fixing bad C++ constructors.
...
I am not sure if this is related to the random crashes on Linux, but the wrong C++ std::string constructors were being called because of bad use of c-style array dereferencing. The correct C++ std::string constructors are being called now.
2012-02-06 18:22:14 -06:00
William Woodall
6853f8c05d
Fixing a reading buffer bug and expanding the example
2012-02-04 21:56:10 -06:00
William Woodall
0eab7f1f38
fixing some stuff in unix.cc to match changes in enums
2012-02-04 21:20:21 -06:00
William Woodall
6cdd3fe795
Merge branch 'boostless' of https://github.com/wjwwood/serial into boostless
...
Conflicts:
include/serial/serial.h
2012-02-04 21:17:27 -06:00
William Woodall
aa59c9517f
Some style changes
2012-02-04 21:15:23 -06:00
William Woodall
2978386696
Read/write seem to be working on linux, need to test on OS X.
2012-02-04 21:14:22 -06:00
William Woodall
c429b0eede
Removed serial listener, reworking the example, completely removed boost. Builds on my laptop with boost uninstalled.
2012-02-03 01:43:42 -06:00
William Woodall
05fa4b8d77
Removing serial listener, next make sure I can compile without boost completely.
2012-02-02 23:35:40 -06:00
John Harrison
f7cee5e175
Testing my changes to make sure they are consistant.
2012-01-30 16:33:58 -06:00
John Harrison
7b027d39ef
Merge branch 'stringbuffer' into boostless
2012-01-30 14:44:43 -06:00