-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make device_class an enum #2
Comments
Sorry, I don't quite understand. What did you have in mind? |
unsafe {
USB_HID = Some(HIDClass::new(&bus_allocator, MouseReport::desc(), 60));
USB_BUS = Some(
UsbDeviceBuilder::new(&bus_allocator, UsbVidPid(0x16c0, 0x27dd))
.manufacturer("Fake company")
.product("Twitchy Mousey")
.serial_number("TEST")
.device_class(0xEF) // <- MISC instead of 0xEF
.build(),
);
} |
Ah, the device class in the USB Device descriptor. I'm happy to add an enum for HID specific values, but shouldnt more generic ones like |
Yes but those that are HIDs like mouse, joystick and keyboard should be in this crate, right? Thanks for this crate! :) |
Yeppers, I think it would be nice to have the really common descriptors ready to go in this crate (keyboard/mouse/joystick/etc). But i dont think we should try and be exhaustive. From memory we already have a keyboard one (and maybe a mouse?), but feel free to send PRs for anything major missing. |
We can provide comments then so people know they want the HID one for mice, keyboards joystics etc vs googling
The text was updated successfully, but these errors were encountered: