aboutsummaryrefslogtreecommitdiffstats
path: root/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.h')
-rw-r--r--i2c.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/i2c.h b/i2c.h
new file mode 100644
index 0000000..987d109
--- /dev/null
+++ b/i2c.h
@@ -0,0 +1,26 @@
+/*
+ * i2c.h
+ *
+ * Created on: 28 de abr de 2017
+ * Author: helio.capella
+ */
+
+#ifndef I2C_H_
+#define I2C_H_
+
+#include <stdint.h>
+
+uint8_t *PTxData; // Pointer to TX data
+uint8_t *PRxData; // Pointer to RX data
+
+uint8_t TxByteCtr;
+uint8_t RxByteCtr;
+
+//uint8_t isRx;
+
+void I2C_init(uint8_t slaveAddress);
+void I2C_write(uint8_t ByteCtr, uint8_t *TxData);
+void I2C_read(uint8_t ByteCtr, volatile uint8_t *RxData);
+
+#endif /* I2C_H_ */
+