4 releases

0.1.3 Nov 19, 2023
0.1.2 Sep 21, 2023
0.1.1 Feb 21, 2023
0.1.0 Feb 20, 2023

#691 in Hardware support

Download history 16/week @ 2023-11-25 64/week @ 2023-12-02 21/week @ 2023-12-09 25/week @ 2023-12-16 8/week @ 2024-01-06 43/week @ 2024-01-13 8/week @ 2024-01-20 15/week @ 2024-01-27 46/week @ 2024-02-03 161/week @ 2024-02-10 85/week @ 2024-02-17 181/week @ 2024-02-24 121/week @ 2024-03-02 87/week @ 2024-03-09

483 downloads per month
Used in boardswarm

MIT/Apache

45KB
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

~1.4–2MB
~44K SLoC