3 releases
new 0.1.2 | Sep 21, 2023 |
---|---|
0.1.1 | Feb 21, 2023 |
0.1.0 | Feb 20, 2023 |
#534 in Hardware support
54 downloads per month
44KB
1K
SLoC
Rockchip usb protocol host implementation
Rockchip bootroms and early loaders implement an USB protocol to help loader early firmware, flashing persistant storage etc. This crate contains a sans-io implementation of that protocol as well as an optional (enabled by default) implementation of IO using libusb
fn main() -> anyhow::Result<()> {
let devices = rockusb::libusb::Devices::new()?;
let mut transport = devices.iter().next()
.ok_or_else(|| anyhow::anyhow!("No Device found"))??;
println!("Chip Info: {:0x?}", transport.chip_info()?);
Ok(())
}
Dependencies
~0.6–1.3MB
~29K SLoC