(MBED) implementation of the I2C interface
Dependents: MCP23009tst AT30TSE752TST MCP4728setaddrProg mbedSerialInterface_talkback2 ... more
Diff: MBEDI2CInterface.h
- Revision:
- 2:b7ebe53e8fac
- Parent:
- 1:80ebfbf95667
- Child:
- 3:06e9e208a2b0
--- a/MBEDI2CInterface.h Tue Jan 12 15:45:51 2016 +0000 +++ b/MBEDI2CInterface.h Wed Mar 15 17:17:46 2017 +0000 @@ -1,7 +1,11 @@ #ifndef __MBEDI2CINTERFACE_H #define __MBEDI2CINTERFACE_H -#define VERSION_MBEDI2CInterface_HDR "1.00" +/* + * version 1.10 :added wait_for_ms + + */ +#define VERSION_MBEDI2CInterface_HDR "1.10" class MBEDI2CInterface :public I2CInterface { @@ -28,7 +32,7 @@ return -1; // seems transfer not supported in mbed or not correctly called below // return i2cdev.transfer (address, tx_buffer, tx_length, rx_buffer, rx_length, callback, event, repeated); }; - +virtual void wait_for_ms(int x) { wait_ms(x); } } ;