From da57aaed1295d72d8d840c69c0e08c0bcab46aee Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 11 Jun 2024 11:53:24 +0200 Subject: WIP pb-read --- lib/pbdrv/pb-types.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/pbdrv/pb-types.h') diff --git a/lib/pbdrv/pb-types.h b/lib/pbdrv/pb-types.h index 76292f6..0cafab5 100644 --- a/lib/pbdrv/pb-types.h +++ b/lib/pbdrv/pb-types.h @@ -1,4 +1,5 @@ #pragma once + #include #include @@ -14,8 +15,15 @@ extern "C" { #define __weak #endif +//! 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 -- cgit v1.2.3