aboutsummaryrefslogtreecommitdiff
path: root/main/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/sock.h')
-rw-r--r--main/sock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/sock.h b/main/sock.h
new file mode 100644
index 0000000..f2db35d
--- /dev/null
+++ b/main/sock.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <stdint.h>
+#include <stddef.h>
+
+/** \brief start listening for TCP socket requests */
+void serve_task();
+
+void i2c_send(uint16_t addr, const char * data, size_t data_size);
+void i2c_recv(uint16_t addr, const char * data, size_t data_size);
+