USB device and host stack implementation expertise
This skill provides USB device and host stack implementation expertise for embedded systems, covering descriptor generation, device class implementation, and protocol debugging.
device-driver-development.js - USB driver implementationbootloader-implementation.js - USB DFU bootloaderhw-sw-interface-specification.js - USB interface specificationThis skill is invoked when tasks require:
tusb_desc_interface_t cdc_interface = {
.bLength = sizeof(tusb_desc_interface_t),
.bDescriptorType = TUSB_DESC_INTERFACE,
.bInterfaceNumber = 0,
.bAlternateSetting = 0,
.bNumEndpoints = 2,
.bInterfaceClass = TUSB_CLASS_CDC,
.bInterfaceSubClass = CDC_COMM_SUBCLASS_ACM,
.bInterfaceProtocol = CDC_COMM_PROTOCOL_NONE,
.iInterface = 0
};
uint8_t const hid_report_desc[] = {
HID_USAGE_PAGE(HID_USAGE_PAGE_DESKTOP),
HID_USAGE(HID_USAGE_DESKTOP_MOUSE),
HID_COLLECTION(HID_COLLECTION_APPLICATION),
HID_USAGE(HID_USAGE_DESKTOP_POINTER),
HID_COLLECTION(HID_COLLECTION_PHYSICAL),
// ... buttons and axes
HID_COLLECTION_END,
HID_COLLECTION_END
};