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

Function flashing_mode

framework_lib/src/ccgx/hid.rs:89–94  ·  view source on GitHub ↗
(device: &HidDevice)

Source from the content-addressed store, hash-verified

87}
88
89fn flashing_mode(device: &HidDevice) {
90 // Probably enter flashing mode?
91 info!("Enter flashing mode");
92 let _ = send_command(device, CmdId::CmdFlash, CmdParam::Enable as u8)
93 .expect("Failed to enter flashing mode");
94}
95
96fn magic_unlock(device: &HidDevice) {
97 device.set_blocking_mode(true).unwrap();

Callers 1

get_fw_infoFunction · 0.85

Calls 1

send_commandFunction · 0.70

Tested by

no test coverage detected