aboutsummaryrefslogtreecommitdiff
path: root/client/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/sock.h')
-rw-r--r--client/sock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/sock.h b/client/sock.h
index 0f9a3fc..818ea72 100644
--- a/client/sock.h
+++ b/client/sock.h
@@ -13,6 +13,8 @@ public:
void sock_connect();
+ void send(char* buf, size_t buf_sz);
+
private:
void sock_task();
void sock_close();
@@ -26,3 +28,8 @@ private:
};
+extern PBSocket* sock;
+
+void i2c_send(uint16_t addr, char* data, size_t data_size);
+void i2c_recv(uint16_t addr, char* data, size_t data_size);
+