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

87 Commits

Author SHA1 Message Date
69a3739ca0 Add sp_drain() function. 2013-11-22 02:11:34 +01:00
ea34fba899 Add missing @param port entry to documentation. 2013-11-22 01:53:27 +01:00
fd8fd11a4e Make sp_flush take an option for what to flush. 2013-11-22 01:53:22 +01:00
a036341bdf Use a more logical set of SP_MODE_* flags. 2013-11-22 01:48:02 +01:00
20e63a77b5 Define SP_PARITY_* more logically. 2013-11-22 01:47:34 +01:00
70518e4fdd Document this madness. 2013-11-21 11:52:54 +00:00
40978c2b41 Support non-standard flow control modes on Linux. 2013-11-21 11:52:41 +00:00
7a6d2196e0 Support custom baudrates on Linux. 2013-11-21 11:51:08 +00:00
31b3a8f5b5 Added support for non-standard baud rates for Apple. 2013-11-20 19:18:36 +00:00
e29b93a572 Retrieve XON/XOFF setting on Unix. 2013-11-19 20:46:52 +00:00
cf9d365ce0 Doxygen cosmetics. 2013-11-19 20:10:56 +01:00
626d280fd3 Consistently use the "@" notation for Doxygen tags. 2013-11-19 19:37:03 +01:00
eac329d26b Cosmetics, whitespace, consistency fixes. 2013-11-19 19:32:01 +01:00
705bdc6947 get_config(): Add a quickfix for xon_xoff.
The config->xon_xoff variable is not filled correctly with data read
from the current serial port config. Without this, the value of the
variable will be bogus and some code that depends on the variable will fail.

Note: This is just a temporary quickfix, not a proper final solution.
2013-11-19 19:32:01 +01:00
4b448bc542 .gitignore: Add libserialport.h. 2013-11-19 17:58:48 +01:00
23922313b3 set_config(): Add missing CS5 handling. 2013-11-19 12:32:01 +01:00
c85d0a28de Fix minor Doxygen warning. 2013-11-19 12:30:55 +01:00
c200f5c144 Clarify usage of -1 in configuration API. 2013-11-19 03:14:09 +00:00
091e75fedc Group functions for documentation. 2013-11-19 03:02:45 +00:00
eb6ed20f51 Use named enums instead of ints for clearer documentation. 2013-11-19 02:36:22 +00:00
cd5f52812d Add doxygen documentation. 2013-11-19 02:17:38 +00:00
bf2cbd652f Mark config argument to sp_set_config as const. 2013-11-19 01:13:09 +00:00
823690ae3e Additional argument checking for config functions. 2013-11-18 20:08:25 +00:00
8f189c4c0f Remove sp_ prefix from private port data structure. 2013-11-18 20:04:54 +00:00
348e23ccbb Tidy up static functions. 2013-11-18 20:02:30 +00:00
8f471c669f Make sure OS handles are set correctly for unopened / closed ports. 2013-11-18 20:00:15 +00:00
c6754b4517 Get Xon/Xoff status on Windows. 2013-11-18 19:55:43 +00:00
e33ab9aaf2 Refactor port configuration code. 2013-11-18 19:52:37 +00:00
067417af4f Add sp_get_config() function. 2013-11-16 20:55:53 +00:00
7e6fb0152c Update documentation. 2013-11-15 11:43:07 +00:00
a33d84f6a0 Remove disused flowcontrol field from sp_port_config. 2013-11-15 11:43:07 +00:00
da2748bfb3 Eliminate lengthy switch/case blocks for baudrates. 2013-11-15 11:43:07 +00:00
18fc2dd12b Add sp_set_flowcontrol helper function. 2013-11-15 11:43:07 +00:00
824dcb4561 Store control bits in sp_port_data on Unix. 2013-11-15 11:43:07 +00:00
e96d8bd288 Split up prototypes in include file for clarity. 2013-11-15 11:43:07 +00:00
9069c2fbb2 Add functions for setting individual port parameters. 2013-11-15 11:43:07 +00:00
9cb98459a8 Apply sane termios settings at port open time. 2013-11-15 11:43:07 +00:00
80186526b2 Add prototypes for config helper functions. 2013-11-15 11:43:07 +00:00
9f90173cbd Retrieve current control line settings in start_config. 2013-11-15 11:43:07 +00:00
d514a26f81 New API for serial control lines. 2013-11-15 11:43:07 +00:00
cbf628c7fe Move cfset{i,o}speed() calls to set_baudrate(). 2013-11-15 11:43:07 +00:00
a46f0960a2 Use negative values in sp_port_config to retain existing settings. 2013-11-15 11:43:07 +00:00
d1202734fb Replace sp_set_params with sp_set_config, which takes a struct. 2013-11-15 11:43:07 +00:00
728f6de510 Use new project URL. 2013-11-15 11:36:14 +01:00
e4bffe06c2 pkg-config file: Use Requires.private to fix static build.
Any libs needed when building static binaries must be listed in the
'Requires.private' field of the installed pkg-config file libserialport.pc.

Currently, this is libudev (but only when building on/for Linux).
2013-11-15 09:28:34 +01:00
baba075903 libserialport.h: Add package/lib version macros.
These can be used by frontends e.g. for conditional compilation, or
simply for printing, logging to debug output, and so on.
2013-11-15 09:28:34 +01:00
a3d4a56e15 configure.ac: Drop unneeded AC_MSG_ERROR.
The default behaviour of PKG_CHECK_MODULES is to abort with an error
anyway, but it will also print a more usable error message and hints
for the user about how to use PKG_CONFIG_PATH and so on.
2013-11-15 00:42:40 +01:00
5ef8a1ed7f libserialport: Allow C++ frontends to use the lib easily. 2013-11-15 00:42:40 +01:00
f92f1f0c20 Minor cosmetics, typos, and so on. 2013-11-15 00:42:40 +01:00
8094e4a0ce Divide sp_set_params into separate helper functions. 2013-11-15 00:42:40 +01:00