dfu-libusb-0.6.0 has been yanked.
dfu-libusb
Flash firmware to USB devices using the DFU (Device Firmware Upgrade) protocol.
Built on dfu-core for the protocol implementation and rusb for USB
access via libusb.
Features
- DFU 1.1 and DFUSe protocol support
- Works with any
rusb::UsbContext - Open a device by VID/PID or supply your own
DeviceHandleviaDfuLibusb::from_usb_device
Usage
[]
= "0.5"
use Context;
use DfuLibusb;
let context = new?;
let firmware = read?;
let size = firmware.len as u32;
let mut dfu = open?;
dfu.download?;
See the download example for a more complete program
with a progress bar, wait-for-device, and post-flash reset; and
describe to inspect a device's functional descriptor.
License
MIT OR Apache-2.0