MIDI Device Class Driver - LUFA/Drivers/Class/MIDI.h
[USB Class Drivers]


Modules

 MIDI Class Device Mode Driver
 MIDI Class Host Mode Driver
#define DSUBTYPE_InputJack   0x02
#define DSUBTYPE_OutputJack   0x03
#define MIDI_JACKTYPE_EMBEDDED   0x01
#define MIDI_JACKTYPE_EXTERNAL   0x02
#define MIDI_COMMAND_NOTE_ON   0x90
#define MIDI_COMMAND_NOTE_OFF   0x80
#define MIDI_STANDARD_VELOCITY   64
#define MIDI_CHANNEL(channel)   (channel - 1)

Detailed Description

Module Source Dependencies

The following files must be built with any user project that uses this module:

Description

Functions, macros, variables, enums and types related to the management of USB MIDI Class interfaces within a USB device. Note that the MIDI class is actually a special case of the regular Audio class, thus this module depends on structure definitions from the Audio Class Device Mode Driver class driver module.

Define Documentation

#define DSUBTYPE_InputJack   0x02

Audio class descriptor subtype value for a Audio class specific MIDI input jack descriptor.

#define DSUBTYPE_OutputJack   0x03

Audio class descriptor subtype value for a Audio class specific MIDI output jack descriptor.

#define MIDI_CHANNEL ( channel   )     (channel - 1)

Convenience macro. MIDI channels are numbered from 1-10 (natural numbers) however the logical channel addresses are zero-indexed. This converts a natural MIDI channel number into the logical channel address.

Parameters:
[in] channel MIDI channel number to address

#define MIDI_COMMAND_NOTE_OFF   0x80

MIDI command for a note off (deactivation) event

#define MIDI_COMMAND_NOTE_ON   0x90

MIDI command for a note on (activation) event

#define MIDI_JACKTYPE_EMBEDDED   0x01

Audio class descriptor jack type value for an embedded (logical) MIDI input or output jack.

#define MIDI_JACKTYPE_EXTERNAL   0x02

Audio class descriptor jack type value for an external (physical) MIDI input or output jack.

#define MIDI_STANDARD_VELOCITY   64

Standard key press velocity value used for all note events


Generated on Sun Aug 9 19:53:12 2009 for LUFA (Formerly MyUSB) Library by  doxygen 1.5.9