mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Check subclasses during enumeration
This commit is contained in:
parent
a58c6db580
commit
f2bfe0671e
1 changed files with 8 additions and 0 deletions
|
@ -214,6 +214,14 @@ public:
|
|||
|
||||
// UsbConfigXtracter implementation
|
||||
virtual void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep);
|
||||
|
||||
virtual boolean DEVCLASSOK(uint8_t klass) {
|
||||
return (klass == USB_CLASS_HID);
|
||||
}
|
||||
|
||||
virtual boolean DEVSUBCLASSOK(uint8_t subklass) {
|
||||
return (subklass == BOOT_PROTOCOL);
|
||||
}
|
||||
};
|
||||
|
||||
template <const uint8_t BOOT_PROTOCOL>
|
||||
|
|
Loading…
Reference in a new issue