An improved version of mbed's I2C class.
Dependents: acd52832_Humidity_Temp_Example BB acnSensa_LIS aconnoCellularGnss ... more
Diff: aconno_i2c.h
- Revision:
- 1:5ae1807e3902
- Parent:
- 0:bfefd65ef71d
- Child:
- 2:3c0eab894a4b
--- a/aconno_i2c.h Fri Sep 22 12:46:17 2017 +0000 +++ b/aconno_i2c.h Fri Sep 22 16:48:28 2017 +0000 @@ -18,6 +18,8 @@ uint8_t writeToReg(char regAddress, char *data, int len); uint8_t readFromReg(char regAddress, char *dataBuffer, int len); uint8_t sendCommand(char *command, uint8_t len, char *response, uint8_t responseLen); + uint8_t sendCommand(char *command, uint8_t len); + uint8_t readBus(char *dataBuffer, int len); private: uint8_t i2cAddress; };