From 120df13f2ab8aedd87e615880907653ea5ae0f4e Mon Sep 17 00:00:00 2001 From: William Woodall Date: Sat, 9 Jun 2012 19:52:05 -0500 Subject: [PATCH] Updating documentation --- doc/Doxyfile | 4 +-- doc/serial.dox | 64 ++++++++++++++++++++++++++++++++++++++++++ serial.sublime-project | 3 +- 3 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 doc/serial.dox diff --git a/doc/Doxyfile b/doc/Doxyfile index 5704725..564a45c 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile @@ -37,7 +37,7 @@ PROJECT_NUMBER = 1.0 # for a project that appears at the top of each page and should give viewer # a quick idea about the purpose of the project. Keep the description short. -PROJECT_BRIEF = "Cross-platform serial port library for C++" +PROJECT_BRIEF = "Cross-platform serial port library written in C++" # With the PROJECT_LOGO tag one can specify an logo or icon that is # included in the documentation. The maximum height of the logo should not @@ -610,7 +610,7 @@ WARN_LOGFILE = # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = include src +INPUT = doc/serial.dox include src examples # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is diff --git a/doc/serial.dox b/doc/serial.dox new file mode 100644 index 0000000..a4b29e9 --- /dev/null +++ b/doc/serial.dox @@ -0,0 +1,64 @@ +/*! +\mainpage Serial Library + +\author William Woodall , John Harrison + +\section what_is What is serial? +Serial is a cross-platform, simple to use library for using serial ports on computers. This library provides a C++, object oriented interface for interacting with RS-232 like devices on Linux and Windows. + +Want to use it with ROS(Robot Operating System)? No problem, it compiles as a unary stack. + +\section getting_started Getting Started + +Ready to jump in? +- Checkout our examples: \ref serial_example.cc +- Look at the main class documentation: \ref serial::Serial + +\section features Features +- Linux, Mac OS X, and Windows Support +- Easy to use interface (modeled after PySerial) +- Minimal dependencies (cmake) +- Complete timeout control \ref serial::Serial::setTimeout +- Check and set handshaking lines (CTS, DSR, RI, CD and RTS, DTR) +- Block for changes in handshaking lines (Linux and Windows) +- Flush I/O separately and block until all writing done + +\section install Installation + +\subsection Dependencies + +- CMake: + - CMake is required for building the system and can be located here: http://www.cmake.org/ + +\subsection building Compiling + +Once you have gathered the dependencies, you need to checkout the software from github.com: + +
+    git clone git://github.com/wjwwood/serial.git
+
+ +Once you have checked out the source code from github.com you can enter the directory and build the software. + +
+    cd serial
+    make
+    make test # (optional) builds the example and tests, and runs the tests.
+    make doc  # (optional) builds _this_ documentation.
+
+ +\subsection installing Installing + +To install simply: + +
+    sudo make install
+
+ +To uninstall simply: + +
+    sudo make uninstall
+
+ + */ \ No newline at end of file diff --git a/serial.sublime-project b/serial.sublime-project index 65e92d9..baa1b80 100644 --- a/serial.sublime-project +++ b/serial.sublime-project @@ -4,7 +4,7 @@ "folders": [ { - "path": "/Users/william/devel/serial" + "path": "./" } ], "settings": @@ -13,7 +13,6 @@ [ "-I/usr/include", "-I/usr/local/include", - // "-I/usr/lib/clang/3.1/include/", "-I${folder:${project_path:serial.sublime-project}}/include" ] }