6 #ifndef DRV_I2C_MASTER_HPP_
7 #define DRV_I2C_MASTER_HPP_
10 #include "DrvTypes.hpp"
11 #include "RtosSemaphore.hpp"
12 #include "RtosInterrupt.hpp"
15 friend class RtosInterrupt;
17 static DrvI2cMaster* sInstances[];
30 void init(DrvTypes::I2C port);
31 void setSlaveAddr(uint16_t slaveAddr);
32 bool readWrite(
const uint8_t* src,
int srcLen, uint8_t* dst,
int dstLen);