From cddfbb715d6f4f9d022d383ab8737b6af57a1d6f Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 18 May 2024 15:08:20 +0200 Subject: cmake build config for mpack --- proto/puzbusv1.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 proto/puzbusv1.h (limited to 'proto/puzbusv1.h') diff --git a/proto/puzbusv1.h b/proto/puzbusv1.h new file mode 100644 index 0000000..071c887 --- /dev/null +++ b/proto/puzbusv1.h @@ -0,0 +1,22 @@ +#pragma once + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct pb_msg { + uint16_t addr; + char* data; + size_t length; +}; + +int pb_read(struct pb_msg* target, char* buf, size_t buf_sz); +void pb_free(struct pb_msg* msg); + +#ifdef __cplusplus +} +#endif + -- cgit v1.2.3