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

Function check_ccg_fw_version

framework_lib/src/ccgx/hid.rs:135–139  ·  view source on GitHub ↗
(device: &HidDevice, verbose: bool)

Source from the content-addressed store, hash-verified

133}
134
135pub fn check_ccg_fw_version(device: &HidDevice, verbose: bool) {
136 magic_unlock(device);
137 let info = get_fw_info(device);
138 print_fw_info(&info, verbose);
139}
140
141fn decode_fw_info(buf: &[u8]) -> HidFirmwareInfo {
142 let info_len = std::mem::size_of::<HidFirmwareInfo>();

Callers 1

print_dp_hdmi_detailsFunction · 0.85

Calls 3

magic_unlockFunction · 0.85
get_fw_infoFunction · 0.85
print_fw_infoFunction · 0.85

Tested by

no test coverage detected