summaryrefslogtreecommitdiffstats
path: root/i2c.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-04-04 14:08:03 +0200
committerneoraider <devnull@localhost>2007-04-04 14:08:03 +0200
commite26a1dc73313098cef235918d237f9b1a6e4cb5f (patch)
tree0dfc7f873db2f228b39509daed9b1e01cb5739dd /i2c.h
parentdc1306244e3a7853c31cd94c5ac3d97aa6e6c0d5 (diff)
downloadrc2007-rescue-e26a1dc73313098cef235918d237f9b1a6e4cb5f.tar
rc2007-rescue-e26a1dc73313098cef235918d237f9b1a6e4cb5f.zip
Rescue: Weitere Grundfunktionen implementiert
Diffstat (limited to 'i2c.h')
-rw-r--r--i2c.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/i2c.h b/i2c.h
new file mode 100644
index 0000000..4f6a5b7
--- /dev/null
+++ b/i2c.h
@@ -0,0 +1,13 @@
+#ifndef _ROBOCUP_I2C_H_
+#define _ROBOCUP_I2C_H_
+
+#include <stdint.h>
+
+
+void initI2C();
+bool I2CSendByte(uint8_t addr, uint8_t data);
+bool I2CSend(uint8_t addr, uint8_t *data, int length);
+bool I2CRecvByte(uint8_t addr, uint8_t *data);
+int I2CRecv(uint8_t addr, uint8_t *data, int length);
+
+#endif