rockusb 0.1.0

Rockchip usb protocol host implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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

```rust,no_run
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(())
}
```