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

Function device_name

framework_lib/src/ccgx/hid.rs:252–258  ·  view source on GitHub ↗

Turn CCG3 Expansion Card VID/PID into their name

(vid: u16, pid: u16)

Source from the content-addressed store, hash-verified

250
251/// Turn CCG3 Expansion Card VID/PID into their name
252pub 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
261pub fn find_devices(api: &HidApi, filter_devs: &[u16], sn: Option<&str>) -> Vec<DeviceInfo> {

Callers 2

flash_firmwareFunction · 0.85
print_dp_hdmi_detailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected