slabruntime

Crates.ioslabruntime
lib.rsslabruntime
version0.1.0
sourcesrc
created_at2024-10-12 16:00:00.313181
updated_at2024-10-12 16:00:00.313181
descriptionCP210X Runtime library in Rust
homepagehttps://github.com/Micheal-learns-to-code/slabruntime
repositoryhttps://github.com/Micheal-learns-to-code/slabruntime.git
max_upload_size
id1406620
size20,989
Nobita (Micheal-learns-to-code)

documentation

README

slabruntime

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.

Installation

Add the following to your Cargo.toml:

[dependencies]
slabruntime = "0.1.0"

Usage

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
    // ...
}

Documentation

For detailed documentation, please visit docs.rs/slabruntime.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Commit count: 2

cargo fmt