]> sigrok.org Git - libserialport.git/blame - README
Remove the udev dependency and parse the /sys hierarchy instead.
[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
6b93ede4
ML
28other systems enumeration is not supported, but ports can still be opened by
29name and then used.
0a16d4de
ML
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
98cac5d6 43No other libraries are required.
0a16d4de
ML
44
45Building
46========
47
48The package uses a GNU style build system and requires a Unix style shell.
49On Windows it can be built with the MinGW toolchain and MSYS environment.
50
51Run "./autogen.sh" to generate the build system, "./configure" to setup, then
52"make" to build the library and "make install" to install it.
53
54API
55===
56
cd5f5281 57Doxygen API documentation is included.