#driver #spi-driver #spi #usb #embedded #spi-interface #cp2130

bin+lib driver-cp2130

libusb based driver for the CP2130 USB-SPI bridge by Silicon Labs

11 releases (2 stable)

1.1.0 Apr 18, 2024
1.0.0-alpha.5 Feb 14, 2022
1.0.0-alpha.4 Oct 7, 2021
1.0.0-alpha.2 Dec 31, 2020
0.2.0 Dec 13, 2019

#448 in Hardware support

Download history 3/week @ 2024-06-25 5/week @ 2024-07-02 7/week @ 2024-07-09 7/week @ 2024-07-16 102/week @ 2024-07-30 4/week @ 2024-08-06 14/week @ 2024-08-27 2/week @ 2024-09-10 12/week @ 2024-09-17 46/week @ 2024-09-24 8/week @ 2024-10-01 2/week @ 2024-10-08

70 downloads per month
Used in 5 crates (2 directly)

MPL-2.0 license

47KB
1K SLoC

Rust CP2130 Driver

A driver for the Silicon Labs CP2130 USB->SPI bridge IC, exposing an embedded-hal compatible interface as well as a command line utility for interacting with (and testing interaction with) CP2130 devices.

Status

WIP. Basic functionality working, PRs for extended features (non-volatile programming, alternate pin modes, etc.) are absolutely welcome.

Build Status GitHub tag Crates.io Docs.rs

Open Issues

Getting started

You can install the utility with cargo install driver-cp2130 or grab a pre-compiled release from here

You may wish to copy 40-cp2130.rules to /etc/udev/rules.d to allow all users with plugdev permissions to interact with the CP2130 device.

References

Dependencies

~1.7–9.5MB
~95K SLoC