]> sigrok.org Git - libserialport.git/blame - README
Generate debug output when returning using TRY() macro.
[libserialport.git] / README
CommitLineData
f92f1f0c 1-------------------------------------------------------------------------------
0a16d4de 2libserialport: cross-platform library for accessing serial ports
f92f1f0c 3-------------------------------------------------------------------------------
0a16d4de
ML
4
5libserialport is a minimal library written in C that is intended to take care
6of the OS-specific details when writing software that uses serial ports.
7
8By writing your serial code to use libserialport, you enable it to work
9transparently on any platform supported by the library.
10
11The operations that are supported are:
12
13- Port enumeration (obtaining a list of serial ports on the system).
14- Opening and closing ports.
15- Setting port parameters (baud rate, parity, etc).
16- Reading, writing and flushing data.
17- Obtaining error information.
18
19libserialport is an open source project released under the LGPL3+ license.
20
21Status
22======
23
24The library should build and work on any Windows or Unix-based system. If it
25does not, please submit a bug.
26
27Enumeration is currently only implemented on Windows, Mac OS X and Linux. On
28other systems enumeration will return no results, but ports can still be opened
29by name and then used.
30
31If you know how to enumerate available ports on another OS, please submit a bug
32with this information, or better still a patch implementing it.
33
34Future
35======
36
37Future versions will add additional API calls for obtaining metadata about a
38port, e.g. for USB devices the USB VID and PID of the underlying device.
39
40Dependencies
41============
42
43On Linux, libudev is required. On other systems no other libraries are required.
44
45The libudev dependency could be eliminated in favour of direct sysfs queries at
46the cost of some brevity. This is not currently a priority but if you feel like
47doing this feel free to submit a patch.
48
49Building
50========
51
52The package uses a GNU style build system and requires a Unix style shell.
53On Windows it can be built with the MinGW toolchain and MSYS environment.
54
55Run "./autogen.sh" to generate the build system, "./configure" to setup, then
56"make" to build the library and "make install" to install it.
57
58API
59===
60
cd5f5281 61Doxygen API documentation is included.