summaryrefslogtreecommitdiffstats
path: root/src/hw/i2c/bitbang_i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hw/i2c/bitbang_i2c.h')
-rw-r--r--src/hw/i2c/bitbang_i2c.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/hw/i2c/bitbang_i2c.h b/src/hw/i2c/bitbang_i2c.h
new file mode 100644
index 0000000..3a7126d
--- /dev/null
+++ b/src/hw/i2c/bitbang_i2c.h
@@ -0,0 +1,14 @@
+#ifndef BITBANG_I2C_H
+#define BITBANG_I2C_H
+
+#include "hw/i2c/i2c.h"
+
+typedef struct bitbang_i2c_interface bitbang_i2c_interface;
+
+#define BITBANG_I2C_SDA 0
+#define BITBANG_I2C_SCL 1
+
+bitbang_i2c_interface *bitbang_i2c_init(I2CBus *bus);
+int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level);
+
+#endif
OpenPOWER on IntegriCloud