aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/Device/MIDI.c
AgeCommit message (Collapse)Author
2011-11-18Added Class, ClassDevice, ClassHost and ClassCommon to the internal class ↵Dean
driver source filenames to prevent ambiguities. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1978 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-19Initial restructuring of the core USB driver module to support multiple ↵Dean
architectures in the future. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1672 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-10Altered all endpoint/pipe stream transfers so that the new BytesProcessed ↵Dean
parameter now points to a location where the number of bytes in the transfer that have been completed can be stored (or NULL if entire transaction should be performed in one chunk). Added new Endpoint_Null_Stream() and Pipe_Null_stream() functions. Removed the NO_STREAM_CALLBACKS compile time option due to the new partial stream transfer feature replacing it. Fixed errors in the incomplete Test and Measurement device demo preventing proper operation (thanks to Pavel Plotnikov). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1628 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-02Refactored Host mode Class Driver *_Host_ConfigurePipes() routines to be ↵Dean
more space efficient when compiled. Added new *_ENUMERROR_PipeConfigurationFailed error codes for the *_Host_ConfigurePipes() routines. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1599 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-03Fixed MIDI class driver send routines silently discarding packets if the ↵Dean
endpoint or pipe is busy (thanks to Robin Green). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1551 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-27Added new NO_CLASS_DRIVER_AUTOFLUSH compile time option to disable automatic ↵Dean
flushing of interfaces when the USB management tasks for each driver is called. The MIDI class drivers now automatically flushes the MIDI interface when the MIDI class driver's USBTask() function is called. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1540 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-24All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean
is included, and no longer need to be seperately included. All LowLevel demos changed to use the constants and types defined in the USB class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1537 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-30Reverted Endpoint/Pipe non-sequential configuration hack, placed restriction ↵Dean
on the configuration order instead to ensure maximum reliability. Altered all low level device and host mode demos to ensure that endpoints and pipes are configured in ascending order properly. Rewrote all low level host mode demos' configuration descriptor parser code to ensure that pipes are enumerated in ascending order, and to ensure maximum compatibility with devices. Incremented all device mode demo's device descriptor revision numbers to ensure that any descriptor changes are re-fetched on machines which have enumerated previous versions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1502 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-21Add missing const qualifiers to class drivers.Dean
Indent core library function parameters so that there is only one parameter per line, to increase readability. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1398 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-20Fixed MIDI_Device_SendEventPacket() not correctly waiting for the endpoint ↵Dean
to become ready (thanks to Robin Green). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1395 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-13Added const attributes to some of the class driver function parameters that ↵Dean
were missing it. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1384 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-07Device mode class driver callbacks are now fired before the control request ↵Dean
status stage is sent to prevent the host from timing out if another request is immediately fired and the device has a lengthy callback routine. Inlined currently unused MIDI ProcessControlRequest routine. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1246 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-11Add more include protection macros to give the user warnings when they try ↵Dean
to manually include private driver header files, instead of the public driver headers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1123 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-05Added support to the MIDI Class drivers for packed data, where multiple MIDI ↵Dean
events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1038 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-05Inline USB management functions in the Class drivers which are standardized ↵Dean
but currently unused, to prevent them from using up unneccesary cycles and flash in the user application. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1037 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-13Test with -Wextra, fix library warnings due to unused function parameters.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@969 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-26Added new RNDIS Host class driver and the beginnings of a RNDISEthernetHost ↵Dean
Class Driver demo. Fixed all Class drivers to ensure they have appropriate guards on each function to ensure the device is enumerated before running, fixed error codes on all guards to return "DeviceDisconnected" where possble. Renamed HOST_SENDCONTROL_DeviceDisconnect enum value to HOST_SENDCONTROL_DeviceDisconnected to be in line with the rest of the library enum error codes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@923 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-06Add optional double-banking support to the Device mode Class Drivers, on a ↵Dean
per-endpoint, per-interface level. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@882 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-14Fixed MIDI Device Class driver not sending/receiving MIDI packets of the ↵Dean
correct size (thanks to Thomas Bleeker). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@824 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-16Added return values to the CDC and MIDI class driver transmit functions.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@743 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-11Completion of initial CDC host mode class driver.Dean
Adjustments to the CDC and MIDI device class drivers to use sizeof() on the actual variable being transmitted or received rather than its datatype to reduce possible mistakes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@731 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Renamed all library events to properly seperate out Device and Host mode ↵Dean
events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@718 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27State information for class drivers is now zeroed out during enumeration ↵Dean
(both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@689 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-21Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean
USB state. Added new Endpoint_ClearStatusStage() convenience function to assist with the status stages of control transfers. Removed vague USB_IsConnected global - test USB_DeviceState or USB_HostState explicitly to gain previous functionality. Removed USB_IsSuspended global - test USB_DeviceState against DEVICE_STATE_Suspended instead. Fixed possible enumeration errors from spinloops which may fail to exit if the USB connection is severed before the exit condition becomes true. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@676 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-28Added const modifiers to device mode class drivers.Dean
Added parameter directions to function parameter documentation. Added new experimental FAST_STREAM_FUNCTIONS compile time option to speed up stream transfers at the expense of a higher FLASH consumption (needs testing to verify improved throughput). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@636 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-26Reduce struct name pollution - group typedef struct names by class driver ↵Dean
name where appropriate. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@635 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-18Break device mode class driver interfaces into seperate config and state ↵Dean
structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@609 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-14Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.Dean
Split out common defines/types from class drivers into a seperate common class driver directory. Make central USB Class driver dispatch headers, used for both device and host modes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@594 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-11Changed to new device mode Class Driver function name prefixes to make way ↵Dean
for similar host mode Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@591 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-04Ensure all USB device class drivers have the same three main functions as ↵Dean
their interface for consistency. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@566 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-02Removed new Start of Frame event from the library; performance suffered far ↵Dean
too much and it was only useful in one of the standard classes (HID). Altered HID demos to use the previous method of tracking millisecond periods via a hardware timer rather than the SOF events. Fixed MIDI class driver blocking on unread events to the host. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@564 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-01Add MIDI class driver, update MIDI device demo to use the new USB class ↵Dean
driver. All device demos/projects have now been converted to the new library class drivers, although documentation is yet to be completed. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@563 d5102386-fcda-11dd-9fdb-3debd5008f28