aboutsummaryrefslogtreecommitdiff
path: root/main/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/i2c.h')
-rw-r--r--main/i2c.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/i2c.h b/main/i2c.h
index 05acb1c..42cf34a 100644
--- a/main/i2c.h
+++ b/main/i2c.h
@@ -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();