MCPcopy Create free account
hub / github.com/MHeironimus/ArduinoJoystickLibrary / getInterface

Method getInterface

src/DynamicHID/DynamicHID.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37int 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
48int DynamicHID_::getDescriptor(USBSetup& setup)
49{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected