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:
3:a9d61e73fe97
Parent:
1:5d9e9c0682f0
Child:
4:73de554a67ff
--- a/I2CTransaction.cpp	Wed May 21 21:37:49 2014 +0000
+++ b/I2CTransaction.cpp	Thu May 22 20:15:04 2014 +0000
@@ -165,11 +165,10 @@
 
     @return true if error, false if not
 */
-/*
-bool I2CTransaction::error()
+
+bool I2CTransaction::transmissionError()
 {
     // Write transaction has completed with an error code (can't be 0 (in progress) or 40 (correct))
     // Read transaction, if it exists, has completed with an error code (can't be 0 (in progress) or 88 (correct))
     return (status[0] != 0 && status[0] != 40) || (readPacket != NULL && status[1] != 0 && status[1] != 88);
 }
-*/