(ec: &CrosEc, ports: u8)
| 737 | } |
| 738 | |
| 739 | pub 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)] |
| 750 | enum CypdTypeCState { |
no test coverage detected