Skip to content

Commit

Permalink
Add HID class codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel van Leeuwen committed Nov 4, 2024
1 parent e2ccdd4 commit 2bc1a5d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions usb_protocol/types/descriptors/hid.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
from ..descriptor import \
DescriptorField, DescriptorNumber, DescriptorFormat

class HidInterfaceClassCodes(IntEnum):
HID = 0x03

class HidInterfaceSubclassCodes(IntEnum):
NO_SUBCLASS = 0
BOOT = 1

class HidInterfaceProtocols(IntEnum):
NONE = 0
KEYBOARD = 1
MOUSE = 2

class HidClassSpecificDescriptorTypes(IntEnum):
CS_UNDEFINED = 0x20
CS_HID = 0x21
Expand Down

0 comments on commit 2bc1a5d

Please sign in to comment.