All Projects → ruabmbua → hidapi-rs

ruabmbua / hidapi-rs

Licence: MIT license
Rust bindings for the hidapi C library

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to hidapi-rs

mx3000control
Perixx MX-3000 mouse unofficial configuration tool for Linux
Stars: ✭ 20 (-80.58%)
Mutual labels:  hid, hidapi
Usbdevice
Highly flexible Composite USB Device Library
Stars: ✭ 144 (+39.81%)
Mutual labels:  hid
Vigembus
Windows kernel-mode driver emulating well-known USB game controllers.
Stars: ✭ 721 (+600%)
Mutual labels:  hid
Bettercap
The Swiss Army knife for 802.11, BLE, IPv4 and IPv6 networks reconnaissance and MITM attacks.
Stars: ✭ 10,735 (+10322.33%)
Mutual labels:  hid
Hidpytoy
A GUI app for playing with HID devices, written in Python
Stars: ✭ 25 (-75.73%)
Mutual labels:  hid
Karabiner Driverkit Virtualhiddevice
Stars: ✭ 108 (+4.85%)
Mutual labels:  hid
Hidviz
A tool for in-depth analysis of USB HID devices communication
Stars: ✭ 505 (+390.29%)
Mutual labels:  hid
Streamdecksharp
A simple .NET wrapper for Stream Deck
Stars: ✭ 203 (+97.09%)
Mutual labels:  hid
Ble Hid Peripheral For Android
BLE HID over GATT Profile for Android
Stars: ✭ 143 (+38.83%)
Mutual labels:  hid
Bthidhub
Bluetooth HID hub
Stars: ✭ 65 (-36.89%)
Mutual labels:  hid
Node Hid
Access USB & Bluetooth HID devices through Node.js
Stars: ✭ 1,064 (+933.01%)
Mutual labels:  hid
Logiops
An unofficial userspace driver for HID++ Logitech devices
Stars: ✭ 861 (+735.92%)
Mutual labels:  hid
Android Usb Gadget
Convert your Android phone to any USB device you like! USB Gadget Tool allows you to create and activate USB device roles, like a mouse or a keyboard. 🛠🛡📱
Stars: ✭ 118 (+14.56%)
Mutual labels:  hid
Xpadneo
Advanced Linux Driver for Xbox One Wireless Controller (shipped with Xbox One S)
Stars: ✭ 797 (+673.79%)
Mutual labels:  hid
Authorizer
Authorizer is a Password Manager for Android. It emulates an HID keyboard over USB and enters your credentials on your target device. Additionally it supports OTP 🔑📴
Stars: ✭ 172 (+66.99%)
Mutual labels:  hid
Wifiduck
Wireless keystroke injection attack platform
Stars: ✭ 723 (+601.94%)
Mutual labels:  hid
Pxt Bluetooth Keyboard
BLE HID Keyboard module for micro:bit
Stars: ✭ 44 (-57.28%)
Mutual labels:  hid
Duckyspark
Translator from USB-Rubber-Ducky payloads to a Digispark code.
Stars: ✭ 107 (+3.88%)
Mutual labels:  hid
SerialPundit
Serial port communication in Java - FTDI D2XX, HID API, X/Y modem
Stars: ✭ 116 (+12.62%)
Mutual labels:  hid
Mixxx
Mixxx is Free DJ software that gives you everything you need to perform live mixes.
Stars: ✭ 2,510 (+2336.89%)
Mutual labels:  hid

hidapi Version License: MIT Documentation Chat

This crate provides a rust abstraction over the features of the C library hidapi. Based off of hidapi-rs by Osspial.

Usage

This crate is on crates.io and can be used by adding hidapi to the dependencies in your project's Cargo.toml.

Example

extern crate hidapi;

let api = hidapi::HidApi::new().unwrap();
// Print out information about all connected devices
for device in api.device_list() {
    println!("{:#?}", device);
}

// Connect to device using its VID and PID
let (VID, PID) = (0x0123, 0x3456);
let device = api.open(VID, PID).unwrap();

// Read data from device
let mut buf = [0u8; 8];
let res = device.read(&mut buf[..]).unwrap();
println!("Read: {:?}", &buf[..res]);

// Write data to device
let buf = [0u8, 1, 2, 3, 4];
let res = device.write(&buf).unwrap();
println!("Wrote: {:?} byte(s)", res);

Documentation

Available at docs.rs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].