code cleanup, dropped the sniffer
[tv_i2c_hack] / src / i2c.h
diff --git a/src/i2c.h b/src/i2c.h
new file mode 100644 (file)
index 0000000..e26e43d
--- /dev/null
+++ b/src/i2c.h
@@ -0,0 +1,15 @@
+#ifndef I2C_H_
+#define I2C_H_
+
+void i2c_init(void);
+void i2c_write(unsigned char addr, unsigned char subaddr, unsigned char *data, int ndata);
+void i2c_read(unsigned char addr, unsigned char subaddr, unsigned char *buf, int size);
+void i2c_wait(void);
+void i2c_async(void (*donecb)(void));
+void i2c_check_async(void);
+void i2c_hold(void);
+void i2c_release(void);
+void i2c_abort(void);
+
+
+#endif /* I2C_H_ */