aboutsummaryrefslogtreecommitdiff
path: root/lib/i2ctcp/readme.md
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-05 16:32:46 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-05 16:32:46 +0200
commitd9093e3245f9619850cea391adcad1a12164d38e (patch)
treea28c8acd5735de423ee142afe29d218df23b873e /lib/i2ctcp/readme.md
parent36a8f66aeee73e82f28b040ca304e55034f05644 (diff)
the large library cleanup
Diffstat (limited to 'lib/i2ctcp/readme.md')
-rw-r--r--lib/i2ctcp/readme.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/i2ctcp/readme.md b/lib/i2ctcp/readme.md
new file mode 100644
index 0000000..d5bfe6d
--- /dev/null
+++ b/lib/i2ctcp/readme.md
@@ -0,0 +1,25 @@
+# i2ctcp (I<sup>2</sup>C over TCP)
+
+This folder includes protocol (de)serialization functions for sending and
+receiving I<sup>2</sup>C messages over TCP. These functions are used by the
+[main controller](../main) and the [puzzle box client (pbc)](../client). This
+folder does not include any puzzle bus specific code, and the headers for
+puzbus are in the [shared](../shared) folder instead.
+
+[MessagePack][msgpack] (specifically the [mpack][mpack] implementation) is used
+for the actual serialization/deserializtion, and the functions in this folder
+act as helpers for parsing from chunked data streams.
+
+To use these functions, include the following statement in your CMakeLists.txt:
+```cmake
+include(../i2ctcp/include.cmake)
+```
+
+The functions are available by `#include`ing the `i2ctcpv1.h` header, and are
+extensively documented using Doxygen-style comments.
+
+[msgpack]: https://msgpack.org/
+[mpack]: https://github.com/ludocode/mpack/
+
+
+