/* A.7 Group Terminal Default MIDI Protocol */ #define USB_MS_MIDI_PROTO_UNKNOWN 0x00 /* Unknown (Use MIDI-CI) */ #define USB_MS_MIDI_PROTO_1_0_64 0x01 /* MIDI 1.0, UMP up to 64bits */ #define USB_MS_MIDI_PROTO_1_0_64_JRTS 0x02 /* MIDI 1.0, UMP up to 64bits, Jitter Reduction Timestamps */ #define USB_MS_MIDI_PROTO_1_0_128 0x03 /* MIDI 1.0, UMP up to 128bits */ #define USB_MS_MIDI_PROTO_1_0_128_JRTS 0x04 /* MIDI 1.0, UMP up to 128bits, Jitter Reduction Timestamps */ #define USB_MS_MIDI_PROTO_2_0 0x11 /* MIDI 2.0 */ #define USB_MS_MIDI_PROTO_2_0_JRTS 0x12 /* MIDI 2.0, Jitter Reduction Timestamps */
/* 5.2.2.1 Class-Specific MS Interface Header Descriptor */ /* Same as MIDI 1.0, use struct usb_ms_header_descriptor */
/* 5.3.2 Class-Specific MIDI Streaming Data Endpoint Descriptor */ struct usb_ms20_endpoint_descriptor {
__u8 bLength; /* 4+n */
__u8 bDescriptorType; /* USB_DT_CS_ENDPOINT */
__u8 bDescriptorSubtype; /* USB_MS_GENERAL_2_0 */
__u8 bNumGrpTrmBlock; /* Number of Group Terminal Blocks: n */
__u8 baAssoGrpTrmBlkID[]; /* ID of the Group Terminal Blocks [n] */
} __packed;
#define USB_DT_MS20_ENDPOINT_SIZE(n) (4 + (n))
/* As above, but more useful for defining your own descriptors: */ #define DECLARE_USB_MS20_ENDPOINT_DESCRIPTOR(n) \ struct usb_ms20_endpoint_descriptor_##n { \
__u8 bLength; \
__u8 bDescriptorType; \
__u8 bDescriptorSubtype; \
__u8 bNumGrpTrmBlock; \
__u8 baAssoGrpTrmBlkID[n]; \
} __packed
/* 5.4.1 Class-Specific Group Terminal Block Header Descriptor */ struct usb_ms20_gr_trm_block_header_descriptor {
__u8 bLength; /* 5 */
__u8 bDescriptorType; /* USB_DT_CS_GR_TRM_BLOCK */
__u8 bDescriptorSubtype; /* USB_MS_GR_TRM_BLOCK_HEADER */
__le16 wTotalLength; /* Total number of bytes */
} __packed;
/* 5.4.2.1 Group Terminal Block Descriptor */ struct usb_ms20_gr_trm_block_descriptor {
__u8 bLength; /* 13 */
__u8 bDescriptorType; /* USB_DT_CS_GR_TRM_BLOCK */
__u8 bDescriptorSubtype; /* USB_MS_GR_TRM_BLOCK */
__u8 bGrpTrmBlkID; /* ID of this Group Terminal Block */
__u8 bGrpTrmBlkType; /* Group Terminal Block Type */
__u8 nGroupTrm; /* The first member Group Terminal in this block */
__u8 nNumGroupTrm; /* Number of member Group Terminals spanned */
__u8 iBlockItem; /* String ID of Block item */
__u8 bMIDIProtocol; /* Default MIDI protocol */
__le16 wMaxInputBandwidth; /* Max input bandwidth capability in 4kB/s */
__le16 wMaxOutputBandwidth; /* Max output bandwidth capability in 4kB/s */
} __packed;
#endif/* __LINUX_USB_MIDI_V2_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.