LUFA Library  151115
MIDIClassCommon.h File Reference

Common definitions and declarations for the library USB MIDI Class driver. More...

Data Structures

struct  MIDI_EventPacket_t
 MIDI Class Driver Event Packet. More...
 
struct  USB_MIDI_Descriptor_AudioInterface_AS_t
 MIDI class-specific Streaming Interface Descriptor (LUFA naming conventions). More...
 
struct  USB_MIDI_Descriptor_InputJack_t
 MIDI class-specific Input Jack Descriptor (LUFA naming conventions). More...
 
struct  USB_MIDI_Descriptor_Jack_Endpoint_t
 Audio class-specific Jack Endpoint Descriptor (LUFA naming conventions). More...
 
struct  USB_MIDI_Descriptor_OutputJack_t
 MIDI class-specific Output Jack Descriptor (LUFA naming conventions). More...
 
struct  USB_MIDI_StdDescriptor_AudioInterface_AS_t
 MIDI class-specific Streaming Interface Descriptor (USB-IF naming conventions). More...
 
struct  USB_MIDI_StdDescriptor_InputJack_t
 MIDI class-specific Input Jack Descriptor (USB-IF naming conventions). More...
 
struct  USB_MIDI_StdDescriptor_Jack_Endpoint_t
 Audio class-specific Jack Endpoint Descriptor (USB-IF naming conventions). More...
 
struct  USB_MIDI_StdDescriptor_OutputJack_t
 MIDI class-specific Output Jack Descriptor (USB-IF naming conventions). More...
 

Macros

#define MIDI_CHANNEL(channel)   ((channel) - 1)
 
#define MIDI_EVENT(virtualcable, command)   (((virtualcable) << 4) | ((command) >> 4))
 
#define MIDI_STANDARD_VELOCITY   64
 
MIDI Command Values
#define MIDI_COMMAND_SYSEX_1BYTE   MIDI_COMMAND_SYSEX_END_1BYTE
 
#define MIDI_COMMAND_SYSEX_2BYTE   0x20
 
#define MIDI_COMMAND_SYSEX_3BYTE   0x30
 
#define MIDI_COMMAND_SYSEX_START_3BYTE   0x40
 
#define MIDI_COMMAND_SYSEX_END_1BYTE   0x50
 
#define MIDI_COMMAND_SYSEX_END_2BYTE   0x60
 
#define MIDI_COMMAND_SYSEX_END_3BYTE   0x70
 
#define MIDI_COMMAND_NOTE_OFF   0x80
 
#define MIDI_COMMAND_NOTE_ON   0x90
 
#define MIDI_COMMAND_NOTE_PRESSURE   0xA0
 
#define MIDI_COMMAND_CONTROL_CHANGE   0xB0
 
#define MIDI_COMMAND_PROGRAM_CHANGE   0xC0
 
#define MIDI_COMMAND_CHANNEL_PRESSURE   0xD0
 
#define MIDI_COMMAND_PITCH_WHEEL_CHANGE   0xE0
 

Enumerations

enum  MIDI_JackTypes_t {
  MIDI_JACKTYPE_Embedded = 0x01,
  MIDI_JACKTYPE_External = 0x02
}
 

Detailed Description

Common definitions and declarations for the library USB MIDI Class driver.

Note
This file should not be included directly. It is automatically included as needed by the USB module driver dispatch header located in LUFA/Drivers/USB.h.