Difference between revisions of "Libserialport"
Jump to navigation
Jump to search
(Added description for enabling debug output.) |
|||
Line 35: | Line 35: | ||
== Debugging == | == Debugging == | ||
To examine problems related to libserialport, verbose debug output can be enabled by setting the environment variable LIBSERIALPORT_DEBUG to any value. | To examine problems related to libserialport, verbose debug output can be enabled by setting the environment variable LIBSERIALPORT_DEBUG to any value. | ||
[[Category:APIs]] |
Revision as of 20:50, 4 February 2014
libserialport is a minimal, cross-platform shared library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports.
It is licensed under the terms of the GNU Lesser General Public License, version 3 or later.
Supported operating systems
- Linux
- Mac OS X
- Windows
- Android
API documentation
You can browse the API documentation of the library online.
Getting the code
$ git clone git://sigrok.org/libserialport
You can also browse the source code via gitweb.
Requirements
- libudev (only needed on Linux)
- There are no dependencies at all on other OSes.
Building from source
$ ./autogen.sh $ ./configure $ make $ sudo make install
Debugging
To examine problems related to libserialport, verbose debug output can be enabled by setting the environment variable LIBSERIALPORT_DEBUG to any value.