aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Device
Commit message (Collapse)AuthorAgeFilesLines
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-1112-7/+48
| | | | to manually include private driver header files, instead of the public driver headers.
* Fix AVRISP-MKII clone project's TPI Chip Erase command processing - ensure ↵Dean Camera2010-02-081-4/+7
| | | | | | erase location is the high byte in the given address space, check NVMBUSY for completion rather than the NVM Bus Enable bit. Change If-Else chains over to switch statements in XPROGProtocol.c for clarity.
* Be doubly-certain that the incomming CDC class driver's endpoint/pipe is ↵Dean Camera2010-01-281-3/+10
| | | | flushed only once when the bank is empty.
* Fixed incorrect interface values in the VirtualSerialMouse and KeyboardMouse ↵Dean Camera2010-01-121-0/+17
| | | | | | demo class driver structures. Added caveat information to the CDC device class driver.
* Added support to the MIDI Class drivers for packed data, where multiple MIDI ↵Dean Camera2010-01-053-6/+46
| | | | events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour.
* Inline USB management functions in the Class drivers which are standardized ↵Dean Camera2010-01-055-38/+38
| | | | but currently unused, to prevent them from using up unneccesary cycles and flash in the user application.
* Fix MassStorageKeyboard demo USE_INTERNAL_SERIAL check being performed ↵Dean Camera2010-01-045-7/+36
| | | | | | before the required library headers were included, causing a compilation error. Added notes to the class driver functions indicating which functions require what Device/Host state machine states to function.
* Fixed blocking CDC streams not aborting when the host is disconnected.Dean Camera2010-01-041-0/+3
|
* Update copyright year to 2010.Dean Camera2009-12-3012-24/+24
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-2812-84/+84
|
* Un-inline the SendAddress function in NVMTarget.c/.h of the AVRISP project.Dean Camera2009-12-171-1/+2
| | | | Add new HotmailNotifier project, which changes a LED's colour based on the user's unread email count as sent from Windows Live Messenger.
* Test with -Wextra, fix library warnings due to unused function parameters.Dean Camera2009-12-134-4/+15
|
* Add to the existing CDC Class Driver's CreateStream() function documentation ↵Dean Camera2009-11-291-1/+2
| | | | to explicitly state that the created streams are bidirectional.
* Fix RNDIS Device Class driver - RNDISConstants.h has moved out to the Common ↵Dean Camera2009-11-261-1/+0
| | | | Class driver directory.
* Added new RNDIS Host class driver and the beginnings of a RNDISEthernetHost ↵Dean Camera2009-11-263-103/+4
| | | | | | | | 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.
* Added new ReportType parameter to the HID Device Class driver ↵Dean Camera2009-11-232-5/+8
| | | | CALLBACK_HID_Device_CreateHIDReport() callback to indicate the report type to generate.
* Fix doxygen documentation - doxygen was getting confused on the ↵Dean Camera2009-11-174-8/+14
| | | | variable-length ATTR_NON_NULL_PTR_ARG() macro used on function prototypes and was generating many return types for several functions in the documentation (thanks to David Lyons).
* Cleanups to the MassStorage Device demos, and the MassStorage Device Class ↵Dean Camera2009-11-152-25/+39
| | | | driver.
* Add blocking versions of the CDC Class driver streams, for applications ↵Dean Camera2009-11-122-0/+31
| | | | requiring blocking reads.
* Add beginnings of a RNDIS Ethernet Host demo.Dean Camera2009-11-121-23/+21
|
* Update CDC Class Driver character stream functions to use the correct ↵Dean Camera2009-11-101-3/+2
| | | | | | avr-libc return codes for errors and EOF. Fix pointer arithmetic on void byte buffers by explicitly typecasting the buffer pointers to uint8_t* before altering them.
* Added new stream creation function to the CDC Class drivers, to easily make ↵Dean Camera2009-11-102-0/+35
| | | | standard streams from CDC Class driver instances.
* Spell check all source code variables, comments and strings.Dean Camera2009-11-096-24/+24
|
* Fixed HID host Class driver report send/receive report broken when issued ↵Dean Camera2009-11-091-17/+14
| | | | | | | | through the control pipe. Make Mass Storage device Class driver accept resets at any time, rather than just after a command block has been processed. Remove the HID device parser from the boot protocol Keyboard/Mouse demos.
* Add optional pipe double banking support to the Host mode Class drivers.Dean Camera2009-11-071-1/+1
| | | | Descriptor processing routines now pass around void pointers rather than uint8_t pointers, as their destination datatype is know well known -- they are just streams of bytes until they are cast to the correct destination type by DESCRIPTOR_CAST.
* Add double banking property to LUFA powered projects in the Projects ↵Dean Camera2009-11-061-1/+1
| | | | directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure.
* Add optional double-banking support to the Device mode Class Drivers, on a ↵Dean Camera2009-11-0611-16/+28
| | | | per-endpoint, per-interface level.
* Add const attribute to class driver APIs.Dean Camera2009-11-031-5/+5
| | | | Add new manual pages detailing the advantages of LUFA over the official Atmel USB AVR stack, and reasons why LUFA should be used over a built-from-scratch USB stack.
* Make HID device class driver ignore the previous HID report comparison ↵Dean Camera2009-10-262-5/+15
| | | | buffer when the user sets it to NULL, disabling automatic report comparisons. Update HID device class driver documentation giving previous report buffer limitations.
* Make HID device class driver reselect the correct endpoint after the user ↵Dean Camera2009-10-261-0/+3
| | | | callbacks have fired.
* Add new MIDI Host Class driver to the library, and new MIDIHost ClassDriver ↵Dean Camera2009-10-086-40/+40
| | | | | | demo. Make MouseHost and KeyboardHost ClassDriver demos use the HID Class driver's structures for the boot protocol Mouse/Keyboard report data, rather than rolling their own.
* Changed Audio Class driver sample read/write functions to be inline, to ↵Dean Camera2009-10-032-82/+85
| | | | | | reduce the number of cycles needed to transfer samples to and from the device (allowing more time for processing and output). Fixed ClassDriver AudioOutput demo not selecting an audio output mode.
* Added new Pipe_IsFrozen() macro to determine if the currently selected pipe ↵Dean Camera2009-09-201-2/+2
| | | | | | | | is frozen. Added new USB_GetHIDReportSize() function to the HID report parser to retrieve the size of a given report by its ID. More additions to the unfinished HID Host Class Driver.
* Fix Mass Storage Host Class driver GetMaxLUN command - incorrect function ↵Dean Camera2009-09-171-1/+1
| | | | | | return codes used in comparison to check for success. Add HID Host Class driver functions to set the report protocol, add more class driver documentation.
* Fixed MIDI Device Class driver not sending/receiving MIDI packets of the ↵Dean Camera2009-09-143-4/+4
| | | | correct size (thanks to Thomas Bleeker).
* Revert changed CDC_Device_Flush() prototype accidentially changed in the ↵Dean Camera2009-09-101-1/+3
| | | | last commit.
* Prevent the CDC Device Class driver from sending empty IN packets on every ↵Dean Camera2009-09-102-13/+17
| | | | service task call - only send termination packets when data is in the endpoint.
* Add StillImage Host Class Driver functions for opening and closing sessions. ↵Dean Camera2009-09-021-1/+1
| | | | | | Ensure IsActive is set on the interface to allow device functions to run. Fix spelling of "Received" in all source files where it is misspelt "Recieved".
* Add extra check for OUT ZLP in the CDC Device Class driver service task to ↵Dean Camera2009-08-311-0/+5
| | | | quickly clear zero-length termination packets from the host.
* Fixed Device mode HID Class driver not explicitly initializing the ↵Dean Camera2009-08-271-4/+4
| | | | ReportSize parameter to zero before calling callback routine, so that ignored callbacks don't cause incorrect data to be sent.
* Added new "Common" section to the class drivers, to hold all ↵Dean Camera2009-08-271-1/+0
| | | | | | mode-independant definitions for clarity. Moved SCSI command/sense constants into the Mass Storage Class driver, instead of the user-code.
* Added extra note about missing OUT endpoint configuration to the HID Device ↵Dean Camera2009-08-271-0/+4
| | | | | | mode Class driver. Added pinout information to the AVRISP project.
* Fixed Device mode HID Class driver always sending IN reports, even when no ↵Dean Camera2009-08-271-3/+3
| | | | data is to be reported.
* Add SCSICodes.h to the Class Driver Common folder, and automatically include ↵Dean Camera2009-08-261-1/+2
| | | | it in both the Host and Device Mass Storage Class drivers. Delete existing version from the ClassDriver MassStorage device demo's /Lib/ folder.
* More work on the Mass Storage Host mode Class driver.Dean Camera2009-08-266-47/+49
| | | | | | Added ATTR_NON_NULL_PTR_ARG() attributes to the class drivers to improve user code reliability by disallowing explicit NULL pointers as pointer parameters in function calls where the parameter must not be NULL. Disabled building of the Demos/Host/ClassDriver directory until Host Mode Class drivers are complete to prevent build errors in the meantime.
* Updated Benito project -- added hardware interrupt and software buffering ↵Dean Camera2009-08-251-0/+3
| | | | | | | | for serial data reception to prevent missed characters, condensed pulse generation counters into a struct for clarity. Added check to CDC_Device_BytesReceived() to ensure 0 is returned when device is not enumerated to a host. Move AVRISP project's V2Protocol_DelayMS() function to be static inline, as it is now very minimal. Added extra project doxygen documentation.
* Added return values to the CDC and MIDI class driver transmit functions.Dean Camera2009-08-164-20/+43
|
* Added new EVENT_USB_Device_StartOfFrame() event, controlled by the new ↵Dean Camera2009-08-161-1/+3
| | | | USB_Device_EnableSOFEvents() and USB_Device_DisableSOFEvents() macros to give bus-synchronised millisecond interrupts when in USB device mode.
* Added CDC_Device_Flush() command to the CDC Device mode class driver.Dean Camera2009-08-132-13/+25
| | | | | | Minor updates to the unfinished SideShow demo for clarity. Added unfinished MassStorageHost class driver demo.
* Added flag to the HID report parser to indicate if a device has multiple ↵Dean Camera2009-08-111-12/+5
| | | | | | | | | | reports. SetIdle requests to the HID device driver with a 0 idle period (send changes only) now only affect the requested HID interface within the device, not all HID interfaces. Apply correct fix to the HID report parser for PUSH items - current HID item attribute stack was being copied in the wrong direction. Fixed HID report parser not resetting the FEATURE item count when a REPORT ID item is encountered.