Class for representing and controlling entire I2C transactions (the master side). This class allows one to separate in code the configuration of I2C transactions from their use. This property simplifies the process of executing transactions in, for example, the body of a real-time control loop.

Revision:
7:61e9a1da1f20
Parent:
6:4775131da69b
--- a/I2CTransaction.h	Tue Jun 10 19:21:54 2014 +0000
+++ b/I2CTransaction.h	Tue Aug 05 21:54:32 2014 +0000
@@ -16,10 +16,12 @@
     bool success();
     bool transmissionError(); 
     bool checkTransaction();
+    void clearStatus();
     static int getI2CQueueLength();
     static void reset();
     static void resetBus();
     static void cycleBus();
+    static void initI2C(PinName sda, PinName scl);
 
 private:
     static MODI2C *i2c;