xref: /haiku/headers/os/drivers/usb/USB_midi.h (revision 93aeb8c3bc3f13cb1f282e3e749258a23790d947)
1 #ifndef USB_MIDI_H
2 #define USB_MIDI_H
3 
4 #include "USB_audio.h"
5 
6 // (Partial) USB Class Definitions for MIDI Devices, version 1.0
7 // Reference: http://www.usb.org/developers/devclass_docs/midi10.pdf
8 
9 #define USB_MIDI_CLASS_VERSION		0x0100	// Class specification version 1.0
10 
11 // USB MIDI Event Packet
12 
13 // ... as clean structure:
14 typedef struct {	// USB MIDI Event Packet
15 	uint8	cin:4;	// Code Index Number
16 	uint8	cn:4;	// Cable Number
17 	uint8	midi[3];
18 } _PACKED usb_midi_event_packet;
19 
20 #endif	// USB_MIDI_H
21