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

Download history 5/week @ 2023-06-04 5/week @ 2023-06-18 2/week @ 2023-06-25 2/week @ 2023-07-02 18/week @ 2023-07-09 19/week @ 2023-07-16 33/week @ 2023-07-23 26/week @ 2023-07-30 12/week @ 2023-08-06 20/week @ 2023-08-13 15/week @ 2023-08-20 5/week @ 2023-08-27 7/week @ 2023-09-03 14/week @ 2023-09-10 28/week @ 2023-09-17

54 downloads per month

MIT/Apache

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