1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Commit Graph

  • 6aabf62a90 Use new SP_ERR_SUPP error to indicate unsupported operations. Martin Ling 2013-11-22 20:12:39 +00:00
  • 6a1d6318e5 Makefile.am: Add missing linux_termios.h. Uwe Hermann 2013-11-22 20:13:17 +01:00
  • 68ec29db5e Check for termiox support at runtime. Martin Ling 2013-11-22 19:00:24 +00:00
  • 8d43110ad7 Fix memory leaks. Martin Ling 2013-11-22 18:43:41 +00:00
  • 7de20e3915 Use common 3-digit package version number. Uwe Hermann 2013-11-22 16:18:46 +01:00
  • 1d5d2a166f Temporarily disable USE_TERMIOX code (breaks the lib). Uwe Hermann 2013-11-22 16:07:32 +01:00
  • 24abdb680f Minor cosmetics. Uwe Hermann 2013-11-22 15:53:34 +01:00
  • 8645feda60 Add missing #include guards. Uwe Hermann 2013-11-22 11:59:12 +01:00
  • da21834e42 Fix the build on non-Linux platforms. Uwe Hermann 2013-11-22 11:56:40 +01:00
  • d2ac0e3bbe Ignore linux_termios leftovers. Bert Vermeulen 2013-11-22 02:23:17 +01:00
  • 82f424e6cd Fix to sp_flush() on Unix. Martin Ling 2013-11-21 17:22:16 +00:00
  • 3f099f4fe8 Add missing @param port entries to documentation. Martin Ling 2013-11-20 19:11:39 +00:00
  • 8cf7c6978f Add sp_get_signals() function. Martin Ling 2013-11-20 18:56:35 +00:00
  • 90cc3ee62b Add sp_start_break() and sp_end_break() functions. Martin Ling 2013-11-20 18:11:17 +00:00
  • 69a3739ca0 Add sp_drain() function. Martin Ling 2013-11-20 17:30:50 +00:00
  • ea34fba899 Add missing @param port entry to documentation. Martin Ling 2013-11-20 19:13:12 +00:00
  • fd8fd11a4e Make sp_flush take an option for what to flush. Martin Ling 2013-11-20 17:22:50 +00:00
  • a036341bdf Use a more logical set of SP_MODE_* flags. Martin Ling 2013-11-20 15:54:10 +00:00
  • 20e63a77b5 Define SP_PARITY_* more logically. Martin Ling 2013-11-20 19:56:11 +00:00
  • 70518e4fdd Document this madness. Martin Ling 2013-11-21 11:52:54 +00:00
  • 40978c2b41 Support non-standard flow control modes on Linux. Martin Ling 2013-11-21 11:52:41 +00:00
  • 7a6d2196e0 Support custom baudrates on Linux. Martin Ling 2013-11-21 00:35:51 +00:00
  • 31b3a8f5b5 Added support for non-standard baud rates for Apple. Matthias Heidbrink 2013-11-20 14:21:07 +01:00
  • e29b93a572 Retrieve XON/XOFF setting on Unix. Martin Ling 2013-11-19 20:46:52 +00:00
  • cf9d365ce0 Doxygen cosmetics. Uwe Hermann 2013-11-19 19:55:02 +01:00
  • 626d280fd3 Consistently use the "@" notation for Doxygen tags. Uwe Hermann 2013-11-19 19:37:03 +01:00
  • eac329d26b Cosmetics, whitespace, consistency fixes. Uwe Hermann 2013-11-19 19:31:23 +01:00
  • 705bdc6947 get_config(): Add a quickfix for xon_xoff. Uwe Hermann 2013-11-19 19:20:50 +01:00
  • 4b448bc542 .gitignore: Add libserialport.h. Uwe Hermann 2013-11-19 17:58:48 +01:00
  • 23922313b3 set_config(): Add missing CS5 handling. Uwe Hermann 2013-11-19 12:32:01 +01:00
  • c85d0a28de Fix minor Doxygen warning. Uwe Hermann 2013-11-19 12:30:55 +01:00
  • c200f5c144 Clarify usage of -1 in configuration API. Martin Ling 2013-11-19 03:14:09 +00:00
  • 091e75fedc Group functions for documentation. Martin Ling 2013-11-19 03:02:45 +00:00
  • eb6ed20f51 Use named enums instead of ints for clearer documentation. Martin Ling 2013-11-19 02:36:22 +00:00
  • cd5f52812d Add doxygen documentation. Martin Ling 2013-11-19 02:11:34 +00:00
  • bf2cbd652f Mark config argument to sp_set_config as const. Martin Ling 2013-11-18 22:07:09 +00:00
  • 823690ae3e Additional argument checking for config functions. Martin Ling 2013-11-18 20:08:25 +00:00
  • 8f189c4c0f Remove sp_ prefix from private port data structure. Martin Ling 2013-11-18 20:04:54 +00:00
  • 348e23ccbb Tidy up static functions. Martin Ling 2013-11-18 20:02:30 +00:00
  • 8f471c669f Make sure OS handles are set correctly for unopened / closed ports. Martin Ling 2013-11-18 20:00:15 +00:00
  • c6754b4517 Get Xon/Xoff status on Windows. Martin Ling 2013-11-18 19:55:43 +00:00
  • e33ab9aaf2 Refactor port configuration code. Martin Ling 2013-11-18 19:52:37 +00:00
  • 067417af4f Add sp_get_config() function. Martin Ling 2013-11-16 20:55:53 +00:00
  • 7e6fb0152c Update documentation. Martin Ling 2013-11-15 00:20:01 +00:00
  • a33d84f6a0 Remove disused flowcontrol field from sp_port_config. Martin Ling 2013-11-15 00:12:50 +00:00
  • da2748bfb3 Eliminate lengthy switch/case blocks for baudrates. Martin Ling 2013-11-14 23:24:51 +00:00
  • 18fc2dd12b Add sp_set_flowcontrol helper function. Martin Ling 2013-11-14 22:43:03 +00:00
  • 824dcb4561 Store control bits in sp_port_data on Unix. Martin Ling 2013-11-14 22:27:51 +00:00
  • e96d8bd288 Split up prototypes in include file for clarity. Martin Ling 2013-11-14 22:05:22 +00:00
  • 9069c2fbb2 Add functions for setting individual port parameters. Martin Ling 2013-11-14 22:01:11 +00:00
  • 9cb98459a8 Apply sane termios settings at port open time. Martin Ling 2013-11-14 21:43:07 +00:00
  • 80186526b2 Add prototypes for config helper functions. Martin Ling 2013-11-14 21:39:56 +00:00
  • 9f90173cbd Retrieve current control line settings in start_config. Martin Ling 2013-11-14 21:27:06 +00:00
  • d514a26f81 New API for serial control lines. Martin Ling 2013-11-14 21:12:17 +00:00
  • cbf628c7fe Move cfset{i,o}speed() calls to set_baudrate(). Martin Ling 2013-11-14 20:30:26 +00:00
  • a46f0960a2 Use negative values in sp_port_config to retain existing settings. Martin Ling 2013-11-14 19:45:42 +00:00
  • d1202734fb Replace sp_set_params with sp_set_config, which takes a struct. Martin Ling 2013-11-14 18:41:28 +00:00
  • 728f6de510 Use new project URL. Uwe Hermann 2013-11-15 11:36:14 +01:00
  • e4bffe06c2 pkg-config file: Use Requires.private to fix static build. Uwe Hermann 2013-11-14 22:09:14 +01:00
  • baba075903 libserialport.h: Add package/lib version macros. Uwe Hermann 2013-11-14 22:16:11 +01:00
  • a3d4a56e15 configure.ac: Drop unneeded AC_MSG_ERROR. Uwe Hermann 2013-11-14 22:01:08 +01:00
  • 5ef8a1ed7f libserialport: Allow C++ frontends to use the lib easily. Uwe Hermann 2013-11-14 21:58:03 +01:00
  • f92f1f0c20 Minor cosmetics, typos, and so on. Uwe Hermann 2013-11-14 17:33:53 +01:00
  • 8094e4a0ce Divide sp_set_params into separate helper functions. Martin Ling 2013-11-14 13:09:52 +00:00
  • 767c5ba80e Include <stdio.h> on Windows for sprintf, used in sp_open. Martin Ling 2013-11-04 14:08:03 +00:00
  • d1d566f27f Support 6-bit data on Unix. Martin Ling 2013-11-04 14:02:51 +00:00
  • e4cc1a537a Set data bits on Windows. Martin Ling 2013-11-04 14:02:41 +00:00
  • 32b5ac05b4 Add sp_copy_port() function. Martin Ling 2013-11-04 13:42:55 +00:00
  • 99945a1fb5 On Windows, prefix port names with '\\.\' to work with ports above COM9. Martin Ling 2013-11-04 13:08:09 +00:00
  • f6a1fb65ea Rename header to libserialport.h. Martin Ling 2013-11-04 12:53:12 +00:00
  • d9573bad9a Fix enumeration on Windows. Martin Ling 2013-11-04 02:16:21 +00:00
  • 0d34b4519c Fix enumeration on OS X. Martin Ling 2013-11-04 00:00:05 +00:00
  • c45eb4bee2 Update documentation. Martin Ling 2013-11-03 23:12:03 +00:00
  • f9796bcb86 Remove outdated inline documentation, README is now authoritative. Martin Ling 2013-11-03 22:40:39 +00:00
  • b9a462bb47 Clarify return values of sp_get_port_by_name() and sp_list_ports(). Martin Ling 2013-11-03 22:38:50 +00:00
  • 25ab82f6c0 Clarify documentation for sp_read() and sp_write(). Martin Ling 2013-11-03 22:34:17 +00:00
  • 0161932884 Update documentation. Martin Ling 2013-11-03 22:30:46 +00:00
  • e3b2f7a4e3 Add sp_free_port() function. Martin Ling 2013-11-03 22:27:59 +00:00
  • 77f262c4f9 Make sp_list_ports and sp_get_port_by_name return int. Martin Ling 2013-11-03 22:15:54 +00:00
  • d4babed247 Add sp_get_port_by_name() function. Martin Ling 2013-11-03 21:35:46 +00:00
  • 5919c9134a Port name string length now no longer needs to be passed around. Martin Ling 2013-11-03 21:30:43 +00:00
  • 8b532d9c1e Handle conversion of unicode names to char * on Windows. Martin Ling 2013-11-03 21:22:21 +00:00
  • d54e90047b Identify ports by sp_port structure, not name. Martin Ling 2013-11-03 21:17:21 +00:00
  • 24c1a4bb05 Always return an empty port list unless allocation fails. Martin Ling 2013-11-03 20:50:01 +00:00
  • e9a2f9c9d3 Add SP_ERR_MEM failure code. Martin Ling 2013-11-03 20:21:36 +00:00
  • 1ebf4347e0 Fix building on OSX and Linux. Martin Ling 2013-11-02 19:14:36 +00:00
  • bdfb5b8c08 Rename "name" to "value" to be more consistent with Windows terminology. Martin Ling 2013-10-28 01:32:06 +00:00
  • ac74fdafca Add enum values for flow control settings. Martin Ling 2013-10-27 17:24:12 +00:00
  • 0a16d4def9 Add documentation. Martin Ling 2013-10-27 17:19:39 +00:00
  • e8ffaee986 Add include guard. Martin Ling 2013-10-27 15:42:08 +00:00
  • 4b97c9fc26 Ignore non-existant serial8250 ports on Linux. Martin Ling 2013-10-27 12:51:55 +00:00
  • 08fe0bdbdb On Linux, skip virtual ttys that have no parent device. Martin Ling 2013-10-27 12:09:37 +00:00
  • 8683177b9d Minor changes to port flags on Unix, to remain in sync with libsigrok. Martin Ling 2013-10-27 11:29:25 +00:00
  • db2794cea9 Fix list append. Martin Ling 2013-05-08 02:55:43 +01:00
  • 68ab64ccdc Document enumeration functions. Martin Ling 2013-04-28 12:36:02 +01:00
  • 3b63f34dcb Add serial enumeration code. Martin Ling 2013-04-28 11:56:06 +01:00
  • d22b213120 Add .gitignore for build outputs. Martin Ling 2013-04-28 00:50:30 +01:00
  • 0662f2bb88 Add build system. Martin Ling 2013-04-28 00:32:08 +01:00
  • 64eec30d22 Avoid unused variable warning on non-Windows platforms. Martin Ling 2013-04-28 00:17:46 +01:00
  • 954e81adaf Remove unused glob.h include. Martin Ling 2013-04-28 00:15:09 +01:00