diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-08-20 00:42:08 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-08-20 00:42:08 -0400 |
commit | e528087ee539fda2f13795d4a6c03403faef44d5 (patch) | |
tree | 6f80bd86bdd5e5a044deee9bb195c0ecc9bfd670 /protocol/lufa/descriptor.h | |
parent | 2d76b5c3d421c984f6b4b9da757383cc87e3f808 (diff) |
midi
Diffstat (limited to 'protocol/lufa/descriptor.h')
-rw-r--r-- | protocol/lufa/descriptor.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/protocol/lufa/descriptor.h b/protocol/lufa/descriptor.h index 42af07917c..58a7df4407 100644 --- a/protocol/lufa/descriptor.h +++ b/protocol/lufa/descriptor.h @@ -85,6 +85,23 @@ typedef struct USB_HID_Descriptor_HID_t NKRO_HID; USB_Descriptor_Endpoint_t NKRO_INEndpoint; #endif + + // MIDI Audio Control Interface + USB_Descriptor_Interface_t Audio_ControlInterface; + USB_Audio_Descriptor_Interface_AC_t Audio_ControlInterface_SPC; + + // MIDI Audio Streaming Interface + USB_Descriptor_Interface_t Audio_StreamInterface; + USB_MIDI_Descriptor_AudioInterface_AS_t Audio_StreamInterface_SPC; + USB_MIDI_Descriptor_InputJack_t MIDI_In_Jack_Emb; + USB_MIDI_Descriptor_InputJack_t MIDI_In_Jack_Ext; + USB_MIDI_Descriptor_OutputJack_t MIDI_Out_Jack_Emb; + USB_MIDI_Descriptor_OutputJack_t MIDI_Out_Jack_Ext; + USB_Audio_Descriptor_StreamEndpoint_Std_t MIDI_In_Jack_Endpoint; + USB_MIDI_Descriptor_Jack_Endpoint_t MIDI_In_Jack_Endpoint_SPC; + USB_Audio_Descriptor_StreamEndpoint_Std_t MIDI_Out_Jack_Endpoint; + USB_MIDI_Descriptor_Jack_Endpoint_t MIDI_Out_Jack_Endpoint_SPC; + } USB_Descriptor_Configuration_t; @@ -117,7 +134,7 @@ typedef struct /* nubmer of interfaces */ -#define TOTAL_INTERFACES (NKRO_INTERFACE + 1) +#define TOTAL_INTERFACES (NKRO_INTERFACE + 3) // Endopoint number and size @@ -150,12 +167,16 @@ typedef struct # endif #endif +#define MIDI_STREAM_IN_EPNUM (NKRO_IN_EPNUM + 1) +#define MIDI_STREAM_OUT_EPNUM (NKRO_IN_EPNUM + 1) + #define KEYBOARD_EPSIZE 8 #define MOUSE_EPSIZE 8 #define EXTRAKEY_EPSIZE 8 #define CONSOLE_EPSIZE 32 #define NKRO_EPSIZE 16 +#define MIDI_STREAM_EPSIZE 64 uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, |