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

Method reset_device

framework_lib/src/ccgx/device.rs:370–376  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

368 }
369
370 pub fn reset_device(&self) -> EcResult<()> {
371 self.ccgx_write(
372 ControlRegisters::ResetRequest,
373 &[HPI_RESET_SIGNATURE as u8, HPI_RESET_DEV_CMD],
374 )?;
375 Ok(())
376 }
377
378 pub fn enable_ports(&self, enable: bool) -> EcResult<()> {
379 let mask = if enable { 0b11 } else { 0b00 };

Callers 1

run_with_argsFunction · 0.80

Calls 1

ccgx_writeMethod · 0.80

Tested by

no test coverage detected