| 35 | } |
| 36 | |
| 37 | int DynamicHID_::getInterface(uint8_t* interfaceCount) |
| 38 | { |
| 39 | *interfaceCount += 1; // uses 1 |
| 40 | DYNAMIC_HIDDescriptor hidInterface = { |
| 41 | D_INTERFACE(pluggedInterface, 1, USB_DEVICE_CLASS_HUMAN_INTERFACE, DYNAMIC_HID_SUBCLASS_NONE, DYNAMIC_HID_PROTOCOL_NONE), |
| 42 | D_HIDREPORT(descriptorSize), |
| 43 | D_ENDPOINT(USB_ENDPOINT_IN(pluggedEndpoint), USB_ENDPOINT_TYPE_INTERRUPT, USB_EP_SIZE, 0x01) |
| 44 | }; |
| 45 | return USB_SendControl(0, &hidInterface, sizeof(hidInterface)); |
| 46 | } |
| 47 | |
| 48 | int DynamicHID_::getDescriptor(USBSetup& setup) |
| 49 | { |
nothing calls this directly
no outgoing calls
no test coverage detected