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

Method smbus_write_block

framework_lib/src/smart_battery.rs:863–866  ·  view source on GitHub ↗
(&self, ec: &CrosEc, reg: u8, data: &[u8])

Source from the content-addressed store, hash-verified

861 }
862
863 fn smbus_write_block(&self, ec: &CrosEc, reg: u8, data: &[u8]) -> EcResult<()> {
864 i2c_write_block(ec, self.i2c_port, self.i2c_addr >> 1, reg, data)?;
865 Ok(())
866 }
867
868 /// Read a ManufacturerAccess block command by writing the sub-command
869 /// to register 0x00 and reading the response from 0x44

Callers 2

mac_readMethod · 0.80
authenticate_batteryMethod · 0.80

Calls 1

i2c_write_blockFunction · 0.85

Tested by

no test coverage detected