aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class
Commit message (Collapse)AuthorAgeFilesLines
* Added module file dependancy information to the USB class drivers.Dean Camera2009-07-1413-0/+53
|
* Added new HOST_STATE_WaitForDeviceRemoval host state machine state for ↵Dean Camera2009-07-131-2/+2
| | | | | | non-blocking disabling of device communications until the device has been removed (for use when an error occurs or communications with the device have completed). Changed over all host mode demos to use the new state. Added verbose documentation for each of the USB Host state machine states.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-2816-138/+132
| | | | | | 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).
* Reduce struct name pollution - group typedef struct names by class driver ↵Dean Camera2009-06-2614-330/+265
| | | | name where appropriate.
* Optimize vendor/product description string display code in MassStorageHost.Dean Camera2009-06-261-0/+2
| | | | | | | | Remove all Host mode class demos other than the CDCHost class driver demo, so that they can be re-added as they are made once the host mode class framework is designed. Fixed USB_Host_SendControlRequest() not re-suspending the USB bus when initial device ready-wait fails. Fixed USB Pad regulator not being disabled on some AVR models when the USB_OPT_REG_DISABLED option is used.
* Fixed MassStorage demo not clearing the reset flag when a Mass Storage Reset ↵Dean Camera2009-06-231-2/+2
| | | | is issued while not processing a command.
* Pipe_ConfigurePipe() now automatically defaults IN pipes to accepting ↵Dean Camera2009-06-231-6/+0
| | | | infinite IN requests, this can still be changed by calling the existing \ref Pipe_SetFiniteINRequests() function.
* Added USE_INTERNAL_SERIAL compile time option to automatically read out the ↵Dean Camera2009-06-204-26/+56
| | | | internal unique serial number as the device's serial number descriptor on supported AVR models.
* Clean up RNDIS demo type define names.Dean Camera2009-06-196-43/+48
|
* Extend USB_GetDeviceConfigDescriptor() routine to require the configuration ↵Dean Camera2009-06-191-2/+2
| | | | number within the device to fetch, to add support for multi-configuration devices.
* Re-add in simple scheduler for compatibility with legacy code, mark all ↵Dean Camera2009-06-192-27/+58
| | | | scheduler related files as deprecated.
* Break device mode class driver interfaces into seperate config and state ↵Dean Camera2009-06-1820-407/+545
| | | | 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.
* Pipe_GetErrorFlags() now returns additional error flags for overflow and ↵Dean Camera2009-06-161-2/+2
| | | | | | underflow errors. Change MIDI demos to use real MIDI command values, and shift for the USB wrapper, rather than shift for the MIDI bytes. This is a little confusing for the MIDI USB wrapper, but allows for the use of real standardized MIDI command values.
* Remove ConfigDescriptor.c/.h files from the ClassDriver Host demos, as they ↵Dean Camera2009-06-151-0/+67
| | | | will be obsoleted when the Host mode class drivers are complete. Add new StillImage stub class driver common header.
* Fixed broken HIDReportParser.c.Dean Camera2009-06-151-1/+3
|
* More Doxygen fixes - ensure no undocumented function parameters.Dean Camera2009-06-153-2/+33
|
* Enhanced class drivers to use the same public/private section seperations as ↵Dean Camera2009-06-1513-351/+391
| | | | other portions of the library.
* Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.Dean Camera2009-06-1439-1008/+2548
| | | | | | 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.
* Changed to new device mode Class Driver function name prefixes to make way ↵Dean Camera2009-06-1112-110/+111
| | | | for similar host mode Class drivers.
* Deleted Host ClassDriver demos -- not yet started, faster to rebase new ↵Dean Camera2009-06-091-0/+1
| | | | | | ClassDriver demos from the newly schedulerless LowLevel host demos rather than re-convert each demo from the previous scheduler-based implementations. Fixes to MassStorageHost demo to improve compatibility with more USB drives.
* Finished basic documentation of all device mode class drivers.Dean Camera2009-06-086-55/+166
|
* Completed documentation of the HID device class driver.Dean Camera2009-06-081-1/+21
|
* Finished CDC device class driver documentation.Dean Camera2009-06-083-1/+48
|
* Synchronise with the 090605 release.Dean Camera2009-06-051-0/+3
|
* Added multiple Report ID support to the HID class driver. Removed OUT ↵Dean Camera2009-06-055-46/+62
| | | | endpoint support from HID driver (all OUT reports are now processed through control requests) as a seperate endpoint had issues with determining the exact output report length.
* Fixed EVENT_USB_CDC_ControLineStateChanged() event not taking the CDC ↵Dean Camera2009-06-043-18/+39
| | | | | | | | interface structure as a parameter. Converted TestApp demo over to the new demo structure. More class driver documentation improvements.
* Added Doxygen documentation to the Audio class driver. Added new modules for ↵Dean Camera2009-06-046-16/+267
| | | | each of the new device class drivers to the library documentation.
* Ensure all USB device class drivers have the same three main functions as ↵Dean Camera2009-06-043-0/+16
| | | | their interface for consistency.
* Minor documentation page updates.Dean Camera2009-06-048-48/+105
| | | | | | | | Redocumented all device demos, now that they have changed over to the new USB class drivers. Added C linkage to class drivers for C++ support. Added prefixes to most of the class driver constants to prevent name clashes.
* Removed new Start of Frame event from the library; performance suffered far ↵Dean Camera2009-06-023-47/+10
| | | | | | 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.
* Add MIDI class driver, update MIDI device demo to use the new USB class ↵Dean Camera2009-06-016-7/+505
| | | | driver. All device demos/projects have now been converted to the new library class drivers, although documentation is yet to be completed.
* Commit of new class abstraction APIs for all device demos other than the ↵Dean Camera2009-06-0114-1/+2074
| | | | | | | | | | MIDI demo - not documented yet. Removed scheduler and memory allocation libraries. Added new EVENT_USB_StartOfFrame event in the library to indicate the start of each USB frame (when generated). Removed Tx interrupt from the USBtoSerial demo; now sends characters via polling to ensure more time for the Rx interrupt.
* Deleted StdDescriptors.c, renamed USB_GetDescriptor() to ↵Dean Camera2009-05-222-412/+0
| | | | CALLBACK_USB_GetDescriptor, moved ConfigDescriptor.c/.h from the LUFA/Drivers/USB/Class/ directory to LUFA/Drivers/USB/HighLevel/ in preperation for the new USB class APIs.
* Rewritten event system to remove all macros, to make user code clearer.Dean Camera2009-05-182-67/+50
| | | | | | | | Fixed incorrect ENDPOINT_EPNUM_MASK mask preventing endpoints above EP3 from being selected (thanks to Jonathan Oakley). Removed STREAM_CALLBACK() macro - callbacks now use regular function definitions to clarify user code. Removed DESCRIPTOR_COMPARATOR() macro - comparators should now use regular function definitions to clarify user code.
* Create a new function pointer type in StreamCallbacks.h for endpoint/pipe ↵Dean Camera2009-05-152-6/+11
| | | | stream callbacks, to make stream function prototypes clearer.
* Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent ↵Dean Camera2009-05-041-1/+1
| | | | | | problems with faulty devices which do not respect the given wLength value when reading in the device descriptor. Further documentation improvements - removed file view from the main library documentation, replaced file references in the documentation with group references.
* Endpoint configuration is now refined to give better output when all ↵Dean Camera2009-04-242-3/+3
| | | | configurations have static inputs - removed the now useless STATIC_ENDPOINT_CONFIGURATION compile time token.
* Documentation enhancements to improve documentation cross-references.Dean Camera2009-04-222-18/+18
|
* USB_HostRequest renamed to USB_ControlRequest, entire control request header ↵Dean Camera2009-04-221-2/+2
| | | | | | | | is now read into USB_ControlRequest in Device mode rather than having the library pass only partially read header data to the application. The USB_UnhandledControlPacket event has had its parameters removed, in favour of accessing the new USB_ControlRequest structure. The Endpoint control stream functions now correctly send a ZLP to the host when less data than requested is sent.
* Changed over all deprecated GCC structure tag initializers to the ↵Dean Camera2009-04-201-5/+5
| | | | standardized C99 format (thanks to Mike Alexander).
* Fixed incorrect HID interface class and subclass values in the Mouse and ↵Dean Camera2009-04-193-15/+15
| | | | | | | | KeyboardMouse demos (thanks to Brian Dickman). Capitolised the "Descriptor_Search" and "Descriptor_Search_Comp" prefixes of the values in the DSearch_Return_ErrorCodes_t and DSearch_Comp_Return_ErrorCodes_t enums. Minor documentation improvements.
* Removed "Host_" section of the function names in ConfigDescriptor.h, as most ↵Dean Camera2009-04-173-110/+115
| | | | | | | | of the routines can now be used in device mode on the device descriptor. Renamed functions in the HID parser to have a "USB_" prefix and the acronym "HID" in the name. Further module-level documentation updates.
* More documentation changes for better module-level documentation rather than ↵Dean Camera2009-04-172-7/+14
| | | | file-level documentation.
* Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean Camera2009-04-163-5/+35
| | | | | | | | | | | | | | | | | | requests (thanks to Andrei Krainev). Removed Endpoint_ClearCurrentBank() and Pipe_ClearCurrentBank() in favour of new Endpoint_ClearIN(), Endpoint_ClearOUT(), Endpoint_ClearControlIN(), Endpoint_ClearControlOUT(), Pipe_ClearIN(), Pipe_ClearOUT(), Pipe_ClearControlIN() and Pipe_ClearControlOUT() macros (done to allow for the detection of packets of zero length). Renamed *_ReadWriteAllowed() macros to *_IsReadWriteAllowed() to remain consistent with the rest of the LUFA API. Endpoint_IsSetupReceived() macro has been renamed to Endpoint_IsSETUPReceived(), Endpoint_ClearSetupReceived() macro has been renamed to Endpoint_ClearControlSETUP(), the Pipe_IsSetupSent() macro has been renamed to Pipe_IsSETUPSent() and the Pipe_ClearSetupSent() macro is no longer applicable and should be removed - changes made to compliment the new endpoint and pipe bank management API. Updated all demos, bootloaders and projects to use the new endpoint and pipe management APIs (thanks to Roman Thiel). Updated library doxygen documentation, added groups, changed documentation macro functions to real functions for clarity. Removed old endpoint and pipe aliased read/write/discard routines which did not have an explicit endian specifier for clarity. Removed the ButtLoadTag.h header file, as no one used for its intended purpose anyway.
* The USB_Host_SendControlRequest() function no longer automatically selects ↵Dean Camera2009-04-141-0/+2
| | | | | | the Control pipe (pipe 0), so that other control type pipes can be used with the function. The USB Host management task now saves and restores the currently selected pipe before and after the task completes.
* Removed all binary constants and replaced with decimal or hexadecimal ↵Dean Camera2009-04-052-31/+38
| | | | constants so that unpatched GCC compilers can still build the code without having to be itself patched and recompiled first.
* All comments in the library, bootloaders, demos and projects have now been ↵Dean Camera2009-04-013-7/+7
| | | | spell-checked and spelling mistakes/typos corrected.
* Moved all source to the trunk directory.Dean Camera2009-02-235-0/+1102