summaryrefslogtreecommitdiff
path: root/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.h')
-rw-r--r--i2c.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/i2c.h b/i2c.h
new file mode 100644
index 0000000..0681160
--- /dev/null
+++ b/i2c.h
@@ -0,0 +1,16 @@
+#ifndef I2C_H
+#define I2C_H
+
+#include <stdint.h>
+
+class I2C {
+ public:
+ void enable();
+
+ void write_reg(uint8_t addr, uint8_t reg, uint8_t data);
+ void read_reg(uint8_t addr, uint8_t reg, uint8_t len, uint8_t* buf);
+};
+
+
+
+#endif