dfu-rs
Implements DFU operations for USB devices.
Based on rusb for USB communication, this crate provides a simple interface for discovering DFU-capable devices and performing DFU operations.
It is designed for use in host applications that need to update firmware on embedded devices via USB DFU.
It is intended to work on Windows, Linux, and macOS.
Features
- Upload (read) data from DFU devices
- Download (write) data to DFU devices
- Erase flash memory (page-wise and mass erase)
- Device discovery with filtering by DFU type (e.g. internal flash)
- Error handling with detailed DFU and USB errors
- Uses blocking calls via
rusb- wrap intokio::task::spawn_blockingfor async runtimes - Customizable USB timeout
Usage
use ;
if let Some = search.unwrap.first
See the docs for more examples.