diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 11:48:51 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 11:48:51 +0200 |
commit | 2cf895332ffd54ea1a43b090859943665709e420 (patch) | |
tree | 04f02ec914052515182c97457532c2f970877024 /lib/pbdrv/pb-types.h | |
parent | 557b995f9641f7cb7a0566eefac7e576debec61a (diff) |
decide on pbdrv serialization architecture
Diffstat (limited to 'lib/pbdrv/pb-types.h')
-rw-r--r-- | lib/pbdrv/pb-types.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/pbdrv/pb-types.h b/lib/pbdrv/pb-types.h index 4974270..7156272 100644 --- a/lib/pbdrv/pb-types.h +++ b/lib/pbdrv/pb-types.h @@ -18,12 +18,6 @@ extern "C" { //! I2C address (10 or 7 bit) typedef uint16_t i2c_addr_t; -//! binary buffer struct -typedef struct { - char * data; //! pointer to data - size_t size; //! size of data -} pbdrv_buf_t; - //! puzzle bus command types enum pb_cmd_id { PB_CMD_REQ_READ, //!< request a puzzle module property @@ -66,14 +60,14 @@ typedef struct { //! PB_CMD_RES_READ data typedef struct { uint8_t propid; //!< id of returned state property - const uint8_t * value; + uint8_t * value; size_t _value_size; } pb_cmd_res_read_t; //! PB_CMD_REQ_WRITE data typedef struct { uint8_t propid; //!< state property id to write - const uint8_t * value; //!< new value of property + uint8_t * value; //!< new value of property size_t _value_size; } pb_cmd_req_write_t; |