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

Method get_port_status

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

Source from the content-addressed store, hash-verified

382 }
383
384 pub fn get_port_status(&self) -> EcResult<u8> {
385 let data = self.ccgx_read(ControlRegisters::PdPortsEnable, 1)?;
386 assert_win_len(data.len(), 1);
387 Ok(data[0])
388 }
389}

Callers 1

print_single_pd_detailsFunction · 0.80

Calls 2

assert_win_lenFunction · 0.85
ccgx_readMethod · 0.80

Tested by

no test coverage detected