Turn CCG3 Expansion Card VID/PID into their name
(vid: u16, pid: u16)
| 250 | |
| 251 | /// Turn CCG3 Expansion Card VID/PID into their name |
| 252 | pub fn device_name(vid: u16, pid: u16) -> Option<&'static str> { |
| 253 | match (vid, pid) { |
| 254 | (FRAMEWORK_VID, HDMI_CARD_PID) => Some("HDMI Expansion Card"), |
| 255 | (FRAMEWORK_VID, DP_CARD_PID) => Some("DisplayPort Expansion Card"), |
| 256 | _ => None, |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | /// Find HDMI/DP Expansion cards, optionally filter by product ID or serial number |
| 261 | pub fn find_devices(api: &HidApi, filter_devs: &[u16], sn: Option<&str>) -> Vec<DeviceInfo> { |
no outgoing calls
no test coverage detected