![]() |
LUFA Library
120219
|
MIDI Class Device Mode Configuration and State Structure. More...
#include <MIDIClassDevice.h>
Data Fields | |
struct { | |
uint8_t StreamingInterfaceNumber | |
uint8_t DataINEndpointNumber | |
uint16_t DataINEndpointSize | |
bool DataINEndpointDoubleBank | |
uint8_t DataOUTEndpointNumber | |
uint16_t DataOUTEndpointSize | |
bool DataOUTEndpointDoubleBank | |
} | Config |
struct { | |
uint8_t RESERVED | |
} | State |
Class state structure. An instance of this structure should be made for each MIDI interface within the user application, and passed to each of the MIDI class driver functions as the MIDIInterfaceInfo
parameter. This stores each MIDI interface's configuration and state information.
struct { ... } USB_ClassInfo_MIDI_Device_t::Config |
Config data for the USB class interface within the device. All elements in this section must be set or the interface will fail to enumerate and operate correctly.
Indicates if the MIDI interface's IN data endpoint should use double banking.
Endpoint number of the incoming MIDI IN data, if available (zero if unused).
Size in bytes of the incoming MIDI IN data endpoint, if available (zero if unused).
Indicates if the MIDI interface's OUT data endpoint should use double banking.
Endpoint number of the outgoing MIDI OUT data, if available (zero if unused).
Size in bytes of the outgoing MIDI OUT data endpoint, if available (zero if unused).
struct { ... } USB_ClassInfo_MIDI_Device_t::State |
State data for the USB class interface within the device. All elements in this section are reset to their defaults when the interface is enumerated.
Index of the Audio Streaming interface within the device this structure controls.