MCPcopy Create free account
hub / github.com/FrameworkComputer/framework-system / seal

Method seal

framework_lib/src/smart_battery.rs:790–793  ·  view source on GitHub ↗
(&self, ec: &CrosEc)

Source from the content-addressed store, hash-verified

788 }
789
790 fn seal(&self, ec: &CrosEc) -> EcResult<()> {
791 i2c_write_block(ec, self.i2c_port, self.i2c_addr >> 1, 0x00, &[0x30, 0x00])?;
792 Ok(())
793 }
794
795 fn read_i16(&self, ec: &CrosEc, addr: u16) -> EcResult<u16> {
796 let i2c_response = i2c_read(ec, self.i2c_port, self.i2c_addr >> 1, addr, 0x02)?;

Callers 2

collect_dataMethod · 0.80

Calls 1

i2c_write_blockFunction · 0.85

Tested by

no test coverage detected