aboutsummaryrefslogtreecommitdiff
path: root/shared/protocol.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-14 16:47:12 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-14 16:47:12 +0200
commitec475b0469104a0a76542c52286ed08933ac750c (patch)
treebeb60a88481e3e9b9e94670383850eb90e7c7abe /shared/protocol.h
parentf58ed35f0b73e933b6dd1f98472941c1d5d7ce9c (diff)
more protocol stuff working
Diffstat (limited to 'shared/protocol.h')
-rw-r--r--shared/protocol.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/protocol.h b/shared/protocol.h
index a19fe48..74b289c 100644
--- a/shared/protocol.h
+++ b/shared/protocol.h
@@ -119,6 +119,15 @@ ws_s_bin* ws_protocol_req_last_records(unsigned int record_amount);
*/
void ws_protocol_res_last_records(ws_s_protocol_parsed_cmd* parsed_cmd, ws_s_protocol_response* response);
+/**
+ * @brief data sender wrapper
+ *
+ * this function should be implemented in the source files of each target
+ * platform, as the send interface will be different on desktop and on the
+ * stm32.
+ */
+void ws_protocol_send_data(ws_s_bin* data);
+
/** @brief cmd codes (used to call handlers) */
typedef enum {
WS_PROTOCOL_CMD_UNKNOWN = -1,