diff options
Diffstat (limited to 'main/i2c.h')
-rw-r--r-- | main/i2c.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,7 @@ #define SCL_PIN 17 #define I2C_PORT i2c0 #define MAX_SLAVES 10 +#define MAX_TIMEOUT_TIME 50 //ms /** * \brief initialize all required gpio for i2c usage on the pico @@ -41,5 +42,10 @@ int read_i2c(uint8_t addr, uint8_t *output, size_t len); */ int write_i2c(uint8_t addr, uint8_t *input, size_t len); +/** + * \brief +*/ +int write_read_i2c(uint8_t addr, uint8_t *input, size_t input_len, uint8_t *output, size_t output_len); + /** \brief looking for slave addresses and requesting updates */ void bus_task(); |