(&self, addr: u16, len: u16)
| 195 | } |
| 196 | |
| 197 | fn i2c_read(&self, addr: u16, len: u16) -> EcResult<EcI2cPassthruResponse> { |
| 198 | trace!( |
| 199 | "I2C passthrough from I2C Port {} to I2C Addr {}", |
| 200 | self.port.i2c_port()?, |
| 201 | self.port.i2c_address()? |
| 202 | ); |
| 203 | i2c_read( |
| 204 | &self.ec, |
| 205 | self.port.i2c_port()?, |
| 206 | self.port.i2c_address()?, |
| 207 | addr, |
| 208 | len, |
| 209 | ) |
| 210 | } |
| 211 | |
| 212 | pub fn i2c_write(&self, addr: u16, data: &[u8]) -> EcResult<EcI2cPassthruResponse> { |
| 213 | trace!( |
no test coverage detected