aboutsummaryrefslogtreecommitdiff
path: root/proto/puzbusv1.h
blob: 071c8870d85d96e4914d38f49df01ef3547e5aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <stddef.h>
#include <stdint.h>

#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