Crates.io | slabhiddevice |
lib.rs | slabhiddevice |
version | 0.1.0 |
source | src |
created_at | 2024-10-26 04:33:58.195101 |
updated_at | 2024-10-26 04:33:58.195101 |
description | HidDevice library in Rust |
homepage | https://github.com/Micheal-learns-to-code/slabhiddevice |
repository | https://github.com/Micheal-learns-to-code/slabhiddevice.git |
max_upload_size | |
id | 1423541 |
size | 24,565 |
slabhiddevice
is a Rust library designed to support USB to UART bridge controllers. This library offers a set of functionalities to efficiently interact with and manage USB HID devices.
The library is based on the API specification detailed in the HID Library API Specification.
Add the following to your Cargo.toml
:
[dependencies]
slabhiddevice = "0.1.0"
Import the slabhiddevice
. The starting point for all the functionality is to create a HidDevice object. With a HidDevice object, you can get the number of Hid devices connected to the system, open the devices, retrieve more information from them.
use slabhiddevice::hiddevice;
fn main() {
// Initialize the slabhiddevice library
let hiddev = hiddevice::HidDevice::new().unwrap();
// Perform operations with the devices
// ...
}
For more usage examples, please take a look at the examples/
directory
For detailed documentation, please visit docs.rs/slabhiddevice.
Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas. If you have a feature request or find a bug, please follow these steps:
enhancement
label to your issue.bug
label to your issue.We appreciate your contributions and look forward to collaborating with you!
This project is licensed under the MIT License. See the LICENSE file for details.