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

#706 in Hardware support

Download history 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 178/week @ 2024-03-09 147/week @ 2024-03-16 67/week @ 2024-03-23 50/week @ 2024-03-30 65/week @ 2024-04-06 9/week @ 2024-04-13

194 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

~0.6–1.4MB
~29K SLoC