aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-write.h
blob: 324589811c9910396efd7f9349421b3af6888fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include "pb-types.h"

#ifdef __cplusplus
extern "C" {
#endif

//! binary buffer struct
typedef struct {
	char * data; //! pointer to data
	size_t size; //! size of data
} pbdrv_buf_t;

pbdrv_buf_t pbdrv_write_cmd_req_read(pb_cmd_req_read_t data);
pbdrv_buf_t pbdrv_write_cmd_res_read(pb_cmd_res_read_t data);
pbdrv_buf_t pbdrv_write_cmd_req_write(pb_cmd_req_write_t data);
pbdrv_buf_t pbdrv_write_cmd_req_state(pb_cmd_req_state_t data);
pbdrv_buf_t pbdrv_write_cmd_res_state(pb_cmd_res_state_t data);
pbdrv_buf_t pbdrv_write_cmd_req_set_state(pb_cmd_req_set_state_t data);
pbdrv_buf_t pbdrv_write_cmd_magic(pb_cmd_magic_t data);

#ifdef __cplusplus
}
#endif