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

Function get_pd_info

framework_lib/src/power.rs:739–747  ·  view source on GitHub ↗
(ec: &CrosEc, ports: u8)

Source from the content-addressed store, hash-verified

737}
738
739pub fn get_pd_info(ec: &CrosEc, ports: u8) -> Vec<EcResult<UsbPdPowerInfo>> {
740 // 4 ports on our current laptops
741 let mut info = vec![];
742 for port in 0..ports {
743 info.push(check_ac(ec, port));
744 }
745
746 info
747}
748
749#[derive(Debug)]
750enum CypdTypeCState {

Callers 2

get_and_print_pd_infoFunction · 0.85
selftestFunction · 0.85

Calls 1

check_acFunction · 0.85

Tested by

no test coverage detected