Commit Graph

  • 859874648e Fix error in documentation. Martin Ling 2013-11-27 14:12:04 +0000
  • 2007ce5e14 Document EINTR handling. Martin Ling 2013-11-27 13:18:29 +0000
  • 63a17c64ae Handle EINTR by repeating the call. Martin Ling 2013-11-27 12:42:27 +0000
  • 1b34204261 Fix conversion of timeout to struct timeval. Martin Ling 2013-11-27 11:11:55 +0000
  • 3353c22f32 Add sp_input_waiting() and sp_output_waiting() functions. Martin Ling 2013-11-27 02:55:18 +0000
  • e3dcf9068e New API and implementation for blocking and non-blocking I/O. Martin Ling 2013-11-25 22:12:10 +0000
  • 8fbf876dfd Set VMIN = 1, not zero which forces non-blocking reads. Martin Ling 2013-11-27 01:16:51 +0000
  • afb518f04a Return SP_ERR_SUPP on attempt to set mark/space parity without CMSPAR. Martin Ling 2013-11-26 15:26:18 +0000
  • 00d8c56d91 Minor cosmetics. Uwe Hermann 2013-11-26 16:12:20 +0100
  • dd7742fb15 Use "sp: " as prefix for debug logs (nicer/shorter). Uwe Hermann 2013-11-26 08:29:18 +0100
  • c3e0509275 Fix the build on NetBSD/OpenBSD/FreeBSD, possibly others. Uwe Hermann 2013-11-26 08:12:15 +0100
  • bccc7c9fa0 Set some sane defaults in sp_open() on Windows too. Martin Ling 2013-11-25 18:30:34 +0000
  • 3f5c06d067 Apply termios setting changes immediately. Martin Ling 2013-11-25 18:21:49 +0000
  • e432ce6006 Support mark/space parity settings. Martin Ling 2013-11-25 18:05:58 +0000
  • b251be4b26 Turn off all the fancy termios features. Martin Ling 2013-11-25 17:55:37 +0000
  • 0765af5644 Windows nonblocking write: 1 byte at a time to know when buffer fills. Martin Ling 2013-11-25 15:21:19 +0000
  • a3cb91f5e1 Implement non-blocking I/O on Windows. Martin Ling 2013-11-25 11:47:19 +0000
  • aac4d7f292 Fix SET_FAIL macro. Martin Ling 2013-11-25 11:34:42 +0000
  • 33d5ff47b5 Handle -EAGAIN in non-blocking reads on Unix, and return 0 from sp_read(). Martin Ling 2013-11-25 10:23:13 +0000
  • 0ba3e49b45 Fix bug in debug message generation in sp_flush(). Martin Ling 2013-11-23 21:21:18 +0000
  • 59131d6028 Initialise structure in sp_new_config(). Martin Ling 2013-11-23 20:55:18 +0000
  • 35ff018b49 Add generator program for configuration accessor headers. Martin Ling 2013-11-23 20:45:09 +0000
  • 9b1502efce Make configuration structure opaque. Martin Ling 2013-11-23 20:41:01 +0000
  • 0151b15710 Clarify documentation. Martin Ling 2013-11-23 18:23:45 +0000
  • 3c126654b3 Add sp_get_port_handle() function. Martin Ling 2013-11-23 17:50:45 +0000
  • 1c5aae9dc5 Make port structure opaque. Martin Ling 2013-11-23 17:11:19 +0000
  • 70cd37def2 Add back previously deleted sp_get_config function. Martin Ling 2013-11-23 12:04:21 +0000
  • a6cda1e8c7 Fix swapped DCD & RI signals on Windows. Martin Ling 2013-11-23 11:59:42 +0000
  • 6b93ede419 Return SP_ERR_SUPP from sp_list_ports() on unsupported platforms. Martin Ling 2013-11-23 11:57:17 +0000
  • 64690702cb Generate debug output when returning using TRY() macro. Martin Ling 2013-11-23 11:49:35 +0000
  • dec10e31d0 Additional argument checking. Martin Ling 2013-11-23 11:39:59 +0000
  • ea667be751 Add additional debug messages. Martin Ling 2013-11-23 01:08:57 +0000
  • c33efc482e Add debug output for all entry and exit points. Martin Ling 2013-11-23 00:26:44 +0000
  • 92f756f8c1 Add debug macros. Martin Ling 2013-11-22 22:44:19 +0000
  • 863b35e69c Add API for and default handler for debug messages. Martin Ling 2013-11-22 22:41:03 +0000
  • 71c8a9b906 serialport.c: Add missing linux_termios.h #include. Uwe Hermann 2013-11-22 22:37:15 +0100
  • f36c639545 Remove dupliate/redundant return value documentation. Martin Ling 2013-11-22 20:27:39 +0000
  • 6aabf62a90 Use new SP_ERR_SUPP error to indicate unsupported operations. Martin Ling 2013-11-22 20:12:39 +0000
  • 6a1d6318e5 Makefile.am: Add missing linux_termios.h. Uwe Hermann 2013-11-22 20:13:17 +0100
  • 68ec29db5e Check for termiox support at runtime. Martin Ling 2013-11-22 19:00:24 +0000
  • 8d43110ad7 Fix memory leaks. Martin Ling 2013-11-22 18:43:41 +0000
  • 7de20e3915 Use common 3-digit package version number. Uwe Hermann 2013-11-22 16:18:46 +0100
  • 1d5d2a166f Temporarily disable USE_TERMIOX code (breaks the lib). Uwe Hermann 2013-11-22 16:07:32 +0100
  • 24abdb680f Minor cosmetics. Uwe Hermann 2013-11-22 15:53:34 +0100
  • 8645feda60 Add missing #include guards. Uwe Hermann 2013-11-22 11:59:12 +0100
  • da21834e42 Fix the build on non-Linux platforms. Uwe Hermann 2013-11-22 11:56:40 +0100
  • d2ac0e3bbe Ignore linux_termios leftovers. Bert Vermeulen 2013-11-22 02:23:17 +0100
  • 82f424e6cd Fix to sp_flush() on Unix. Martin Ling 2013-11-21 17:22:16 +0000
  • 3f099f4fe8 Add missing @param port entries to documentation. Martin Ling 2013-11-20 19:11:39 +0000
  • 8cf7c6978f Add sp_get_signals() function. Martin Ling 2013-11-20 18:56:35 +0000
  • 90cc3ee62b Add sp_start_break() and sp_end_break() functions. Martin Ling 2013-11-20 18:11:17 +0000
  • 69a3739ca0 Add sp_drain() function. Martin Ling 2013-11-20 17:30:50 +0000
  • ea34fba899 Add missing @param port entry to documentation. Martin Ling 2013-11-20 19:13:12 +0000
  • fd8fd11a4e Make sp_flush take an option for what to flush. Martin Ling 2013-11-20 17:22:50 +0000
  • a036341bdf Use a more logical set of SP_MODE_* flags. Martin Ling 2013-11-20 15:54:10 +0000
  • 20e63a77b5 Define SP_PARITY_* more logically. Martin Ling 2013-11-20 19:56:11 +0000
  • 70518e4fdd Document this madness. Martin Ling 2013-11-21 11:52:54 +0000
  • 40978c2b41 Support non-standard flow control modes on Linux. Martin Ling 2013-11-21 11:52:41 +0000
  • 7a6d2196e0 Support custom baudrates on Linux. Martin Ling 2013-11-21 00:35:51 +0000
  • 31b3a8f5b5 Added support for non-standard baud rates for Apple. Matthias Heidbrink 2013-11-20 14:21:07 +0100
  • e29b93a572 Retrieve XON/XOFF setting on Unix. Martin Ling 2013-11-19 20:46:52 +0000
  • cf9d365ce0 Doxygen cosmetics. Uwe Hermann 2013-11-19 19:55:02 +0100
  • 626d280fd3 Consistently use the "@" notation for Doxygen tags. Uwe Hermann 2013-11-19 19:37:03 +0100
  • eac329d26b Cosmetics, whitespace, consistency fixes. Uwe Hermann 2013-11-19 19:31:23 +0100
  • 705bdc6947 get_config(): Add a quickfix for xon_xoff. Uwe Hermann 2013-11-19 19:20:50 +0100
  • 4b448bc542 .gitignore: Add libserialport.h. Uwe Hermann 2013-11-19 17:58:48 +0100
  • 23922313b3 set_config(): Add missing CS5 handling. Uwe Hermann 2013-11-19 12:32:01 +0100
  • c85d0a28de Fix minor Doxygen warning. Uwe Hermann 2013-11-19 12:30:55 +0100
  • c200f5c144 Clarify usage of -1 in configuration API. Martin Ling 2013-11-19 03:14:09 +0000
  • 091e75fedc Group functions for documentation. Martin Ling 2013-11-19 03:02:45 +0000
  • eb6ed20f51 Use named enums instead of ints for clearer documentation. Martin Ling 2013-11-19 02:36:22 +0000
  • cd5f52812d Add doxygen documentation. Martin Ling 2013-11-19 02:11:34 +0000
  • bf2cbd652f Mark config argument to sp_set_config as const. Martin Ling 2013-11-18 22:07:09 +0000
  • 823690ae3e Additional argument checking for config functions. Martin Ling 2013-11-18 20:08:25 +0000
  • 8f189c4c0f Remove sp_ prefix from private port data structure. Martin Ling 2013-11-18 20:04:54 +0000
  • 348e23ccbb Tidy up static functions. Martin Ling 2013-11-18 20:02:30 +0000
  • 8f471c669f Make sure OS handles are set correctly for unopened / closed ports. Martin Ling 2013-11-18 20:00:15 +0000
  • c6754b4517 Get Xon/Xoff status on Windows. Martin Ling 2013-11-18 19:55:43 +0000
  • e33ab9aaf2 Refactor port configuration code. Martin Ling 2013-11-18 19:52:37 +0000
  • 067417af4f Add sp_get_config() function. Martin Ling 2013-11-16 20:55:53 +0000
  • 7e6fb0152c Update documentation. Martin Ling 2013-11-15 00:20:01 +0000
  • a33d84f6a0 Remove disused flowcontrol field from sp_port_config. Martin Ling 2013-11-15 00:12:50 +0000
  • da2748bfb3 Eliminate lengthy switch/case blocks for baudrates. Martin Ling 2013-11-14 23:24:51 +0000
  • 18fc2dd12b Add sp_set_flowcontrol helper function. Martin Ling 2013-11-14 22:43:03 +0000
  • 824dcb4561 Store control bits in sp_port_data on Unix. Martin Ling 2013-11-14 22:27:51 +0000
  • e96d8bd288 Split up prototypes in include file for clarity. Martin Ling 2013-11-14 22:05:22 +0000
  • 9069c2fbb2 Add functions for setting individual port parameters. Martin Ling 2013-11-14 22:01:11 +0000
  • 9cb98459a8 Apply sane termios settings at port open time. Martin Ling 2013-11-14 21:43:07 +0000
  • 80186526b2 Add prototypes for config helper functions. Martin Ling 2013-11-14 21:39:56 +0000
  • 9f90173cbd Retrieve current control line settings in start_config. Martin Ling 2013-11-14 21:27:06 +0000
  • d514a26f81 New API for serial control lines. Martin Ling 2013-11-14 21:12:17 +0000
  • cbf628c7fe Move cfset{i,o}speed() calls to set_baudrate(). Martin Ling 2013-11-14 20:30:26 +0000
  • a46f0960a2 Use negative values in sp_port_config to retain existing settings. Martin Ling 2013-11-14 19:45:42 +0000
  • d1202734fb Replace sp_set_params with sp_set_config, which takes a struct. Martin Ling 2013-11-14 18:41:28 +0000
  • 728f6de510 Use new project URL. Uwe Hermann 2013-11-15 11:36:14 +0100
  • e4bffe06c2 pkg-config file: Use Requires.private to fix static build. Uwe Hermann 2013-11-14 22:09:14 +0100
  • baba075903 libserialport.h: Add package/lib version macros. Uwe Hermann 2013-11-14 22:16:11 +0100
  • a3d4a56e15 configure.ac: Drop unneeded AC_MSG_ERROR. Uwe Hermann 2013-11-14 22:01:08 +0100
  • 5ef8a1ed7f libserialport: Allow C++ frontends to use the lib easily. Uwe Hermann 2013-11-14 21:58:03 +0100
  • f92f1f0c20 Minor cosmetics, typos, and so on. Uwe Hermann 2013-11-14 17:33:53 +0100