Extended MaximInterface
Dependents: mbed_DS28EC20_GPIO
Diff: Platforms/mbed/I2CMaster.hpp
- Revision:
- 8:211d1b8f730c
- Parent:
- 6:a8c83a2e6fa4
diff -r 3523abdda8ed -r 211d1b8f730c Platforms/mbed/I2CMaster.hpp --- a/Platforms/mbed/I2CMaster.hpp Tue Jul 24 08:33:31 2018 +0000 +++ b/Platforms/mbed/I2CMaster.hpp Wed Apr 03 12:33:10 2019 +0000 @@ -50,12 +50,13 @@ virtual error_code stop(); virtual error_code writeByte(uint_least8_t data); virtual error_code readByte(AckStatus status, uint_least8_t & data); - + protected: - virtual error_code readPacketImpl(uint_least8_t address, uint_least8_t * data, - size_t dataLen, bool sendStop); + virtual error_code readPacketImpl(uint_least8_t address, + span<uint_least8_t> data, bool sendStop); + virtual error_code writePacketImpl(uint_least8_t address, - const uint_least8_t * data, size_t dataLen, + span<const uint_least8_t> data, bool sendStop); private: