Crates.io | kiibohd-usb |
lib.rs | kiibohd-usb |
version | 0.1.6 |
source | src |
created_at | 2022-04-30 04:49:06.952393 |
updated_at | 2023-05-19 05:46:10.646604 |
description | Kiibohd USB HID Interface |
homepage | |
repository | https://github.com/kiibohd/kiibohd-core |
max_upload_size | |
id | 578000 |
size | 58,636 |
Combination USB HID interface from the kiibohd project. Instanciates the following USB HID interfaces:
let (mut kbd_producer, mut kbd_consumer) = KBD_QUEUE.split();
let (mut mouse_producer, mut mouse_consumer) = MOUSE_QUEUE.split();
let (mut ctrl_producer, mut ctrl_consumer) = CTRL_QUEUE.split();
let (mut hidio_rx_producer, mut hidio_rx_consumer) = HIDIO_RX_QUEUE.split();
let (mut hidio_tx_producer, mut hidio_tx_consumer) = HIDIO_TX_QUEUE.split();
let usb_hid = HidInterface::new(
usb_bus, /* UsbBusAllocator */
HidCountryCode::NotSupported,
kbd_consumer,
mouse_consumer,
ctrl_consumer,
hidio_rx_producer,
hidio_tx_consumer,
);
usb_hid.poll(); // Poll HID-IO
usb_hid.push(); // Push hid reports and poll HID-IO
See docs.rs for more details.
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.