1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 19:54:57 +08:00

114 Commits

Author SHA1 Message Date
Alec Leamas
e1dabd8649 cmake, include: Make use of v8stdint.h conditional.
Make sure that in cases v8stdint.h is not used it's not even included in
the package.  Installation of this file is problematic when packaged
since the file is used also in other packages and leads to installation
conflicts.

Gbp-Pq: Name 0007-cmake-include-Make-use-of-v8stdint.h-conditional.patch
2020-09-29 11:19:34 +02:00
Mike Purvis
d3713af096 Support 500kbps serial ports. (#167) 2018-01-09 07:22:43 -08:00
rhd
827c4a784d Fix issue with write() and a timeout of 0. (#137)
* Fix issue with write() and a timeout of 0.

* fix up style
2017-01-20 17:34:49 -08:00
Christopher Baker
d76b7d6b7f Const corrections. (#141) 2016-10-17 13:54:11 +09:00
William Woodall
52197afbc8 [doc] fixup/clarify some throws documentation 2015-04-21 21:15:51 -07:00
achronop
b376f85fb0 Add MARK/SPACE parity bit option 2014-12-07 21:33:53 +02:00
William Woodall
f1e53d17fb remove vestigial read_cache_ member variable 2014-07-02 15:07:38 -07:00
William Woodall
2df3499e81 Merge pull request #49 from clearpathrobotics/wait-functions
Wait functions
2014-04-28 10:58:55 -07:00
Mike Purvis
2906a6fe90 Add missing stubs to serial/impl/win.h header 2014-04-28 07:30:40 -04:00
Craig Lilley
5d0c5335fa Updated documentation. 2014-04-26 13:22:45 +01:00
Craig Lilley
301a3d4b27 Changed the serial::PortDescription struct.
- Renamed to PortInfo.

- "friendly_name" field is now "description".
2014-04-24 02:23:26 +01:00
Craig Lilley
b8479822f7 Refactored list_ports to return a vector of serial::PortDescription. 2014-04-22 01:02:58 +01:00
William Woodall
9f89596e85 return a vector<array<string, 3> > from list_ports
instead of a vector<vector<string> >
2014-04-17 19:54:29 +01:00
Craig Lilley
72604cec0e Added ability to enumerate ports on linux and windows.
Updated serial_example.cc to show example of port enumeration.
2014-04-17 19:54:29 +01:00
dawid
780f76c40d support for mingw (mxe.cc) 2014-01-05 18:29:04 +01:00
Nicolas Bigaouette
feb667cc97 Fix compilation warning
See issue #53
2013-12-27 16:31:24 -05:00
Mike Purvis
d74c74bf15 Fill out waitByteTimes, integrate it into read as discussed in ticket #37 2013-11-19 12:27:56 -05:00
Mike Purvis
28025034bd Add waitReadable and waitByteTimes stubs. 2013-11-19 12:27:56 -05:00
Mike Purvis
5820056aef Remove TimerExpiredException. 2013-10-31 19:43:49 -04:00
Mike Purvis
d8a1ef4ecf Rename now function to timespec_now and timeout_time to expiry, for greater clarity. 2013-10-31 19:43:49 -04:00
Mike Purvis
16a024691b Add MillisecondTimer class. 2013-10-31 19:43:49 -04:00
William Woodall
dd7259149f if not windows guard for unix.h 2013-10-30 11:54:59 -07:00
William Woodall
348cb9bdc5 fix broken ifdef _WIN32 2013-10-30 11:42:59 -07:00
William Woodall
5a43c628df Merge branch 'master' of https://github.com/bakercp/serial into bakercp-master 2013-10-30 10:49:07 -07:00
William Woodall
22f5e302be fix warnings about uninitialized class members 2013-10-28 15:10:38 -07:00
William Woodall
32b3631285 [style] white space clean up 2013-10-28 15:09:53 -07:00
Christopher Baker
9d04c09f10 Code guards for platform-specific implementations.
(when not using cmake / catkin)
2013-10-27 18:49:07 -05:00
Christopher Baker
5bcbbfb09c Explicit using. 2013-10-27 18:42:53 -05:00
Mike Purvis
8f01d23249 Move stopbits_one_point_five to the end of the enum, so that it doesn't alias with stopbits_two. 2013-10-06 01:24:42 -04:00
William Woodall
c455d053bf Fixup unix case for strerror 2013-08-02 14:24:39 -07:00
William Woodall
e11abb04f2 Fix compiler warnings on Windows 2013-08-02 21:20:25 -07:00
William Woodall
329545b282 Merge pull request #30 from wjwwood/fix_wstring_windows
Fix wide string usage in Windows impl
2013-07-30 11:26:31 -07:00
Nicolas Bigaouette
1e09770d8b Fix typo in documentation 2013-07-30 13:45:47 -04:00
William Woodall
ffc3028289 Use wstring for port_ type in Windows impl 2013-07-30 10:30:46 -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
trainman419
31e07fdb99 Update list of exceptions thrown from constructor. 2013-05-21 00:00:31 -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
William Woodall
7e46129f7d Adding explicit keyword to Timeout constructor to prevent accidental conversion from int types. 2012-07-30 18:56:16 -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
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
e12955a560 Fixed some issues with the copy constructors 2012-06-07 18:09:51 -05:00
William Woodall
088fcda295 Disabling copy constructors on the expections 2012-06-07 17:52:14 -05:00
William Woodall
565ba66271 Sorted out the stdint stuff by including a header from the v8 project. 2012-06-07 17:49:05 -05:00
William Woodall
ead96705dd Still working on std types 2012-06-07 16:44:35 -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
3039acbab9 Adding a convenience function for generating simple Timeouts based purely on the total time until a timeout occurs with no regard to inter byte timeout or timeout multipliers. 2012-05-07 13:06:28 -05:00
William Woodall
ba0c648119 Fixes #16. 2012-05-07 13:04:34 -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