Extended MaximInterface
Dependents: mbed_DS28EC20_GPIO
Diff: Platforms/mbed/I2CMaster.hpp
- Revision:
- 6:a8c83a2e6fa4
- Parent:
- 3:f818ea5172ed
--- a/Platforms/mbed/I2CMaster.hpp Fri Jan 19 10:25:02 2018 -0600 +++ b/Platforms/mbed/I2CMaster.hpp Wed Jan 23 13:11:04 2019 -0600 @@ -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: