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.
Diff: I2CTransaction.h
- Revision:
- 2:19e7e472a51f
- Parent:
- 0:96a7926b9d64
--- a/I2CTransaction.h Wed May 21 21:12:32 2014 +0000 +++ b/I2CTransaction.h Thu May 22 20:13:48 2014 +0000 @@ -13,7 +13,7 @@ bool waitForCompletion(int timeout = 1000); void displayStatus(Serial *pc, char * strg); bool success(); - bool error(); + bool transmissionError(); private: static MODI2C *i2c;