CH567 实现MIDI 设备
使用 Lufa 的示例,作为 MIDI 的参考USB Composite Device
Connection StatusDevice connected
Current Configuration1
SpeedFull (12 Mbit/s)
Device Address4
Number Of Open Pipes2
Device Descriptor LUFAMIDI Demo
OffsetFieldSizeValueDescription
0bLength112h
1bDescriptorType101hDevice
2bcdUSB20110hUSB Spec 1.1
4bDeviceClass100hClass info in IfcDescriptors
5bDeviceSubClass100h
6bDeviceProtocol100h
7bMaxPacketSize0108h8 bytes
8idVendor203EBh
10idProduct22048h
12bcdDevice20001h0.01
14iManufacturer101h"DeanCamera"
15iProduct102h"LUFA MIDIDemo"
16iSerialNumber100h
17bNumConfigurations101h
Configuration Descriptor1
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType102hConfiguration
2wTotalLength20065h
4bNumInterfaces102h
5bConfigurationValue101h
6iConfiguration100h
7bmAttributes1C0hSelf Powered
4..0: Reserved...00000
5: Remote Wakeup..0..... No
6: Self Powered.1...... Yes
7: Reserved (set toone)
(bus-powered for 1.0)1.......
8bMaxPower132h100 mA
Interface Descriptor 0/0 Audio,0 Endpoints
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType104hInterface
2bInterfaceNumber100h
3bAlternateSetting100h
4bNumEndpoints100h
5bInterfaceClass101hAudio
6bInterfaceSubClass101hAudio Control
7bInterfaceProtocol100h
8iInterface100h
Audio Control InterfaceHeader Descriptor
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType124hAudio ControlInterface Header
2701 00 01 09 00 01 01
Interface Descriptor 1/0 Audio,2 Endpoints
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType104hInterface
2bInterfaceNumber101h
3bAlternateSetting100h
4bNumEndpoints102h
5bInterfaceClass101hAudio
6bInterfaceSubClass103hMIDI Streaming
7bInterfaceProtocol100h
8iInterface100h
MIDI Streaming InterfaceHeader Descriptor
OffsetFieldSizeValueDescription
0bLength107h
1bDescriptorType124hMIDI StreamingInterface Header
2501 00 01 41 00
MIDI In Jack Descriptor
OffsetFieldSizeValueDescription
0bLength106h
1bDescriptorType124hMIDI In Jack
2402 01 01 00
MIDI In Jack Descriptor
OffsetFieldSizeValueDescription
0bLength106h
1bDescriptorType124hMIDI In Jack
2402 02 02 00
MIDI Out Jack Descriptor
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType124hMIDI Out Jack
2703 01 03 01 02 01 00
MIDI Out Jack Descriptor
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType124hMIDI Out Jack
2703 02 04 01 01 01 00
Endpoint Descriptor 01 1Out, Bulk, 64 bytes
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType105hEndpoint
2bEndpointAddress101h1 Out
3bmAttributes102hBulk
1..0: Transfer Type......10 Bulk
7..2: Reserved000000..
4wMaxPacketSize20040h64 bytes
6bInterval105h
7bRefresh100h
8bSynchAddress100h
Unrecognized AudioClass-Specific Descriptor
OffsetFieldSizeValueDescription
0bLength105h
1bDescriptorType125hUnrecognized AudioClass-Specific
2301 01 01
Endpoint Descriptor 82 2In, Bulk, 64 bytes
OffsetFieldSizeValueDescription
0bLength109h
1bDescriptorType105hEndpoint
2bEndpointAddress182h2 In
3bmAttributes102hBulk
1..0: Transfer Type......10 Bulk
7..2: Reserved000000..
4wMaxPacketSize20040h64 bytes
6bInterval105h
7bRefresh100h
8bSynchAddress100h
Unrecognized AudioClass-Specific Descriptor
OffsetFieldSizeValueDescription
0bLength105h
1bDescriptorType125hUnrecognized AudioClass-Specific
2301 01 03
代码上和之前的串口非常类似(MIDI 可以看作是波特率特殊的串口)
This report was generated by USBlyzer
页:
[1]