X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=examples%2FREADME;h=6c3090cc78dd3c9e862bdcd3093373dd9bb9ff6e;hb=refs%2Fheads%2Fmaster;hp=1b8d2fef9d2915721c63154d25c0701933ee80a6;hpb=8c1a14e65805727ec63f4c908eb0f253a04a738b;p=libserialport.git diff --git a/examples/README b/examples/README index 1b8d2fe..6c3090c 100644 --- a/examples/README +++ b/examples/README @@ -4,10 +4,17 @@ The examples currently included are: list_ports.c - displays a list of ports on the system. port_info.c - displays info about a particular port on the system. +port_config.c - sets and displays configuration settings on a port. +send_receive.c - loopback test sending & receiving data on 1 or 2 ports. +await_events.c - awaits receive events on multiple ports simultaneously. +handle_errors.c - demonstrates handling errors returned from the library. The programs themselves are completely OS-independent, and require only a C compiler and libserialport. +The 'examples.sln' file is a solution file for Microsoft Visual Studio 2019 +which will build libserialport and all of the example programs. + The Makefile in this directory will attempt to build all the examples, using 'gcc' to compile them and 'pkg-config' to discover the include paths and linker settings needed to build with libserialport. It provides @@ -22,3 +29,5 @@ paths in your environment to suit your system. You can also build these examples using any other compiler, IDE or build system. You just need the libserialport.h header available to compile them, and the libserialport library available to link and run them. + +These example files are hereby released into the public domain by the author.