https://github.com/rust-iot/rust-driver-cp2130
Rust driver for the Silicon Labs CP2130 SPI to USB IC
https://github.com/rust-iot/rust-driver-cp2130
Last synced: 4 months ago
JSON representation
Rust driver for the Silicon Labs CP2130 SPI to USB IC
- Host: GitHub
- URL: https://github.com/rust-iot/rust-driver-cp2130
- Owner: rust-iot
- Created: 2019-12-08T02:51:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-25T18:11:35.000Z (about 2 years ago)
- Last Synced: 2026-01-11T18:40:16.007Z (6 months ago)
- Language: Rust
- Size: 228 KB
- Stars: 5
- Watchers: 2
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust CP2130 Driver
A driver for the Silicon Labs [CP2130](https://www.silabs.com/interface/usb-bridges/classic/device.cp2130) USB->SPI bridge IC, exposing an [embedded-hal](https://github.com/rust-embedded/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.

[](https://github.com/ryankurte/rust-driver-cp2130)
[](https://crates.io/crates/driver-cp2130)
[](https://docs.rs/driver-cp2130)
[Open Issues](https://github.com/ryankurte/rust-driver-cp2130/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](40-cp2130.rules) to `/etc/udev/rules.d` to allow all users with `plugdev` permissions to interact with the CP2130 device.
## References
- Datasheet: https://www.silabs.com/documents/public/data-sheets/CP2130.pdf
- Interface specification: https://www.silabs.com/documents/public/application-notes/AN792.pdf