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/bin.h | |
parent | 4f0718caefa7f7a1baf02997fec0b448d0d6615a (diff) |
WIP serial parsing
Diffstat (limited to 'shared/bin.h')
-rw-r--r-- | shared/bin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/bin.h b/shared/bin.h index 1c9b951..d9eacd7 100644 --- a/shared/bin.h +++ b/shared/bin.h @@ -27,6 +27,9 @@ typedef struct { uint8_t data[]; } w2_s_bin; +/** allocate new w2_s_bin struct and fill with `*data` for `bytes` bytes */ +w2_s_bin *w2_bin_s_alloc(uint16_t bytes, uint8_t *data); + typedef struct { enum w2_e_struct_types type; uint16_t length; |