diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 18:49:03 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 18:49:03 +0200 |
commit | 33ff43ccd7c619f885b3dd4e9a2e0ffe7ed0875c (patch) | |
tree | d9a42ad176f6ea2094b75026b221f44bae45071a /lib/pbdrv/pb-send.h | |
parent | 959d43a0aeedcbc80c9bb2d4c99b4f5bd4e7b3d2 (diff) |
finish message send functions
Diffstat (limited to 'lib/pbdrv/pb-send.h')
-rw-r--r-- | lib/pbdrv/pb-send.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/pbdrv/pb-send.h b/lib/pbdrv/pb-send.h new file mode 100644 index 0000000..fff9956 --- /dev/null +++ b/lib/pbdrv/pb-send.h @@ -0,0 +1,22 @@ +#pragma once + +#include "pb-types.h" +#include "pb-buf.h" + +#ifdef __cplusplus +extern "C" { +#endif + +pb_buf_t pb_send_req_read(uint8_t propid); +pb_buf_t pb_send_res_read(uint8_t propid, uint8_t * value, size_t size); +pb_buf_t pb_send_req_write(uint8_t propid, uint8_t * value, size_t size); +pb_buf_t pb_send_req_state(); +pb_buf_t pb_send_res_state(pb_global_state_t state); +pb_buf_t pb_send_req_set_state(pb_global_state_t state); +pb_buf_t pb_send_req_magic(); +pb_buf_t pb_send_res_magic(); + +#ifdef __cplusplus +} +#endif + |