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

Function print_pd_details

framework_lib/src/commandline/mod.rs:384–399  ·  view source on GitHub ↗
(ec: &CrosEc)

Source from the content-addressed store, hash-verified

382}
383
384fn print_pd_details(ec: &CrosEc) {
385 if !is_framework() {
386 println!("Only supported on Framework systems");
387 return;
388 }
389 let pd_01 = PdController::new(PdPort::Right01, ec.clone());
390 let pd_23 = PdController::new(PdPort::Left23, ec.clone());
391 let pd_back = PdController::new(PdPort::Back, ec.clone());
392
393 println!("Right / Ports 01");
394 print_single_pd_details(&pd_01);
395 println!("Left / Ports 23");
396 print_single_pd_details(&pd_23);
397 println!("Back");
398 print_single_pd_details(&pd_back);
399}
400
401#[cfg(feature = "hidapi")]
402const NOT_SET: &str = "NOT SET";

Callers 1

run_with_argsFunction · 0.85

Calls 2

is_frameworkFunction · 0.85
print_single_pd_detailsFunction · 0.85

Tested by

no test coverage detected