]> sigrok.org Git - libserialport.git/blame - README
windows: Always check return value of GetOverlappedResult().
[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).
e33dcf90 14- Obtaining port metadata (USB device information, Bluetooth address, etc).
0a16d4de
ML
15- Opening and closing ports.
16- Setting port parameters (baud rate, parity, etc).
17- Reading, writing and flushing data.
18- Obtaining error information.
19
20libserialport is an open source project released under the LGPL3+ license.
21
22Status
23======
24
25The library should build and work on any Windows or Unix-based system. If it
26does not, please submit a bug.
27
a24671ad
UH
28Enumeration is currently implemented on Windows, Mac OS X, FreeBSD and Linux.
29On other systems enumeration is not supported, but ports can still be opened
30by name and then used.
0a16d4de
ML
31
32If you know how to enumerate available ports on another OS, please submit a bug
33with this information, or better still a patch implementing it.
34
0a16d4de
ML
35Dependencies
36============
37
98cac5d6 38No other libraries are required.
0a16d4de
ML
39
40Building
41========
42
43The package uses a GNU style build system and requires a Unix style shell.
a46ee5b4
UH
44
45Windows builds can be created natively with the MinGW-w64 toolchain and
f11a67ed 46MSYS2 environment, or cross-compiled using a MinGW-w64 toolchain:
a46ee5b4
UH
47
48 http://mingw-w64.sourceforge.net/
49
50The "old" MinGW from http://mingw.org/ is not supported.
0a16d4de
ML
51
52Run "./autogen.sh" to generate the build system, "./configure" to setup, then
53"make" to build the library and "make install" to install it.
54
55API
56===
57
cd5f5281 58Doxygen API documentation is included.
eb82be98 59
cd71af4b
UH
60It can also be viewed online at:
61
62 http://sigrok.org/api/libserialport/unstable/
63
eb82be98
UH
64Website
65=======
66
67http://sigrok.org/wiki/Libserialport
68