Add parameter to control i2c stop signal at endTransmission (#3370)

This commit is contained in:
Keilin Bickar
2022-04-10 16:38:29 -04:00
committed by GitHub
parent 5e79a1f500
commit a9e653724c
8 changed files with 29 additions and 19 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class TCA9548AChannel : public i2c::I2CBus {
void set_parent(TCA9548AComponent *parent) { parent_ = parent; }
i2c::ErrorCode readv(uint8_t address, i2c::ReadBuffer *buffers, size_t cnt) override;
i2c::ErrorCode writev(uint8_t address, i2c::WriteBuffer *buffers, size_t cnt) override;
i2c::ErrorCode writev(uint8_t address, i2c::WriteBuffer *buffers, size_t cnt, bool stop) override;
protected:
uint8_t channel_;