diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-25 16:30:21 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-25 16:30:21 +0200 |
commit | 9cd83d662849fe72c83038a018107d9bbf5c2398 (patch) | |
tree | aeae2f79b63f09eebbb72e56bee0facbad34fb1d /shared/protocol.c | |
parent | 4f0718caefa7f7a1baf02997fec0b448d0d6615a (diff) |
WIP serial parsing
Diffstat (limited to 'shared/protocol.c')
-rw-r--r-- | shared/protocol.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/protocol.c b/shared/protocol.c new file mode 100644 index 0000000..2707725 --- /dev/null +++ b/shared/protocol.c @@ -0,0 +1,10 @@ +#include "protocol.h" + +W2_PROTOCOL_DEFINE(W2_PROTOCOL_CMD_PING_RX) + +w2_s_cmd_ping_rx *w2_protocol_parse_cmd_ping_rx(w2_s_bin *data) { + w2_s_cmd_ping_rx *parsed = malloc(data->bytes); + memcpy(parsed, data->data, data->bytes); + return parsed; +} + |