taiyou komazawa / I2C_beta

Dependencies:   Beta_Apper_beta ctrl

Fork of I2C by taiyou komazawa

Revision:
0:45f0d9b73179
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/I2CTransporter.h	Fri Sep 08 03:29:55 2017 +0000
@@ -0,0 +1,25 @@
+#ifndef I2C_TRANSPORTER_H
+#define I2C_TRANSPORTER_H
+
+#include <mbed.h>
+
+class I2CTransporter
+{
+    public:
+        I2CTransporter(I2C *master_);
+        
+        void transport_begin(int addr_, char *target_array_, int data_size_);
+        bool read();
+        bool write();
+        void transport_end();
+        
+    private:
+        I2C *_master;
+        
+        int address;
+        char *target_array;
+        int data_size;
+        bool Transport_Began;  
+};
+
+#endif