driver-cp2130 1.1.0

libusb based driver for the CP2130 USB-SPI bridge by Silicon Labs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate driver_cp2130;
use driver_cp2130::prelude::*;

#[test]
#[ignore]
fn integration() {
    // Find matching devices
    let (device, descriptor) = Manager::device(Filter::default(), 0).unwrap();

    // Create CP2130 connection
    let mut cp2130 = Cp2130::new(device, descriptor, UsbOptions::default()).unwrap();

    // TODO

    let _ = &mut cp2130;
}