Crates.io | slabruntime |
lib.rs | slabruntime |
version | 0.1.0 |
source | src |
created_at | 2024-10-12 16:00:00.313181 |
updated_at | 2024-10-12 16:00:00.313181 |
description | CP210X Runtime library in Rust |
homepage | https://github.com/Micheal-learns-to-code/slabruntime |
repository | https://github.com/Micheal-learns-to-code/slabruntime.git |
max_upload_size | |
id | 1406620 |
size | 20,989 |
slabruntime
is a Rust library designed to provide runtime support for the CP210x USB to UART bridge controllers. This library offers a set of functionalities to interact with and manage CP210x devices efficiently.
The library is based on the API specification in this document CP210x USB to UART API Specification.
Add the following to your Cargo.toml
:
[dependencies]
slabruntime = "0.1.0"
Import the slabruntime
. The starting point for all the functionality is to create a CP210x object. With a CP210x object, you can get the number of cp210x devices connected to the system, open the devices, retrieve more information from them.
use slabruntime::CP210x;
fn main() {
// Initialize the CP210x library
let cp210x_runtime = Cp210xRuntime::new().expect("Something wrong with the library: ");
// Perform operations with the devices
// ...
}
For detailed documentation, please visit docs.rs/slabruntime.
Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.
This project is licensed under the MIT License. See the LICENSE file for details.