summaryrefslogtreecommitdiff
path: root/include/i2c_bitbang.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/i2c_bitbang.h')
-rw-r--r--include/i2c_bitbang.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/i2c_bitbang.h b/include/i2c_bitbang.h
index f3c07baf76..d550f1a582 100644
--- a/include/i2c_bitbang.h
+++ b/include/i2c_bitbang.h
@@ -12,6 +12,14 @@ extern const struct i2c_drv bitbang_drv;
extern const struct i2c_port_t i2c_bitbang_ports[];
extern const unsigned int i2c_bitbang_ports_used;
+/**
+ * Enable I2C raw mode for the ports which need pre-task
+ * I2C transactions in bitbang mode.
+ *
+ * @param enable Enable/disable the I2C raw mode
+ */
+void enable_i2c_raw_mode(bool enable);
+
/* expose static functions for testing */
#ifdef TEST_BUILD
int bitbang_start_cond(const struct i2c_port_t *i2c_port);