| 5 | namespace tt::hal::i2c { |
| 6 | |
| 7 | bool I2cDevice::read(uint8_t* data, size_t dataSize, TickType_t timeout) { |
| 8 | return i2c_controller_read(controller, address, data, dataSize, timeout) == ERROR_NONE; |
| 9 | } |
| 10 | |
| 11 | bool I2cDevice::write(const uint8_t* data, uint16_t dataSize, TickType_t timeout) { |
| 12 | return i2c_controller_write(controller, address, data, dataSize, timeout) == ERROR_NONE; |