MCPcopy Index your code
hub / github.com/FrameworkComputer/framework-system / i2c_read

Method i2c_read

framework_lib/src/ccgx/device.rs:197–210  ·  view source on GitHub ↗
(&self, addr: u16, len: u16)

Source from the content-addressed store, hash-verified

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!(

Callers 1

ccgx_readMethod · 0.80

Calls 3

i2c_readFunction · 0.85
i2c_portMethod · 0.80
i2c_addressMethod · 0.80

Tested by

no test coverage detected