Extended MaximInterface
Dependents: mbed_DS28EC20_GPIO
Diff: Platforms/mbed/I2CMaster.hpp
- Revision:
- 3:f818ea5172ed
- Parent:
- 1:d6de0a14c777
- Child:
- 6:a8c83a2e6fa4
--- a/Platforms/mbed/I2CMaster.hpp Mon Nov 06 17:46:41 2017 -0600 +++ b/Platforms/mbed/I2CMaster.hpp Thu Jan 11 13:50:39 2018 -0600 @@ -49,12 +49,14 @@ virtual error_code start(uint_least8_t address); virtual error_code stop(); virtual error_code writeByte(uint_least8_t data); - virtual error_code writePacket(uint_least8_t address, - const uint_least8_t * data, size_t dataLen, - bool sendStop); virtual error_code readByte(AckStatus status, uint_least8_t & data); - virtual error_code readPacket(uint_least8_t address, uint_least8_t * data, - size_t dataLen, bool sendStop); + +protected: + virtual error_code readPacketImpl(uint_least8_t address, uint_least8_t * data, + size_t dataLen, bool sendStop); + virtual error_code writePacketImpl(uint_least8_t address, + const uint_least8_t * data, size_t dataLen, + bool sendStop); private: ::mbed::I2C * i2c;