aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/HighLevel/Events.h
Commit message (Collapse)AuthorAgeFilesLines
* Add new HID_DESCRIPTOR_VENDOR() macro, change over all projects and Device ↵Dean Camera2011-01-301-3/+3
| | | | | | | | | | | | ClassDriver demos to use it. Fix reversed byte ordering of multi-byte HID data. Added support to the HID parser for extended USAGE items that contain the usage page as well as the usage index. Removed the HID_IOF_NON_VOLATILE and HID_IOF_VOLATILE flags from HID INPUT items where the flag is invalid. Changed over HID OUTPUT items to use HID_IOF_NON_VOLATILE. Change over MagStripe project to use HID_DESCRIPTOR_KEYBOARD() for its HID report. Change over MouseHostDevice demo to use HID_DESCRIPTOR_MOUSE() for its HID report.
* Minor documentation improvements.Dean Camera2011-01-081-20/+20
|
* Update copyright year on all source files.Dean Camera2011-01-011-2/+2
|
* Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean Camera2010-11-051-8/+10
| | | | EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards.
* Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean Camera2010-10-281-1/+1
| | | | redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists.
* Clean up excessive whitespace at the end of each line using the wspurify ↵Dean Camera2010-10-131-17/+18
| | | | tool made by Laszlo Monda
* Removed the EVENT_USB_InitFailure() event, as not specifying a USB mode to ↵Dean Camera2010-09-151-10/+0
| | | | USB_Init() now defaults the controller into UID selection mode.
* Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() ↵Dean Camera2010-09-051-0/+18
| | | | | | | | functions to retrieve the current USB frame number. Added new USB_Host_EnableSOFEvents(), USB_Host_DisableSOFEvents() and EVENT_USB_Host_StartOfFrame() for the user application handling of USB Start of Frame events while in USB Host mode. Changed over all demos, drivers and internal functions to use the current frame number over the Start of Frame flag where possible to free up the Start of Frame flag for interrupt use in the user application.
* More spell checking of all source files -- correct missed errors, switch to ↵Dean Camera2010-07-301-2/+2
| | | | EN-GB spelling dictionary.
* Add missing const qualifiers to class drivers.Dean Camera2010-07-211-3/+5
| | | | Indent core library function parameters so that there is only one parameter per line, to increase readability.
* Move and rename DevChaper9.c/.h and HostChapter9.c/.h to the HighLevel ↵Dean Camera2010-07-211-1/+1
| | | | | | | | directory, new named DeviceStandardReq.c/.h and HostStandardReq.c/.h. Rename LowLevel.c/.h to USBController.c/.h. Remove dependancies on the complete <avr/io.h> header in the HighLevel USB driver directory, to ensure less work is required in later (possible) ports.
* Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().Dean Camera2010-06-171-3/+3
| | | | Minor tweaks to the library documentation.
* Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean Camera2010-06-161-4/+4
| | | | the new 1.7 Doxygen's default stylesheet is much better.
* Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean Camera2010-05-291-2/+2
|
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-362/+362
| | | | correctly converted to the target system's native end of line style.
* Removed two-step endpoint/pipe bank clear and switch sequence for smaller, ↵Dean Camera2010-04-131-0/+11
| | | | | | | | faster endpoint/pipe code. Added spacing between multiple paragraphs in Doxygen \note sections. Removed call to the clock prescaler reset function in the Teensy bootloader to save space - the user application is accessed via a watchdog reset anyway, so the prescale reset would only affect the speed of the bootloader itself.
* Add file-level brief documentation.Dean Camera2010-03-291-0/+19
| | | | Remove accidentally duplicated model-specific peripheral driver files.
* Fix incorrect error when directly including the LUFA internal USB library ↵Dean Camera2010-02-241-1/+1
| | | | components.
* Revert changes made for the partial port to the AVR32 architecture.Dean Camera2010-02-241-6/+2
|
* More porting of the USB core to the AVR32.Dean Camera2010-02-231-1/+1
|
* Start porting the USB core to the AVR32 UC3B.Dean Camera2010-02-231-1/+5
|
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-111-2/+7
| | | | to manually include private driver header files, instead of the public driver headers.
* Clean up and add more comments to the AVRISP-MKII project. Make sure the ↵Dean Camera2010-01-171-3/+9
| | | | SPI_MULTI command handler supports multiple packet responses. Use slightly smaller/faster repeated indirect-load commands when retrieving the PDI target's memory CRCs.
* Update copyright year to 2010.Dean Camera2009-12-301-2/+2
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-281-7/+7
|
* Fixed HOST_STATE_AS_GPIOR being ignored whilst in Host mode (thanks to David ↵Dean Camera2009-11-161-0/+5
| | | | Lyons).
* Spell check all source code variables, comments and strings.Dean Camera2009-11-091-2/+2
|
* Fix AudioOutput and AudioInput class driver demos' descriptors -- incorrect ↵Dean Camera2009-10-141-5/+24
| | | | value was being supplied in the audio descritors field giving the number of discrete audio formats the device supports.
* Corrected incorrect signature bytes for the AT90USB82 and added support for ↵Dean Camera2009-09-071-2/+8
| | | | | | the ATMEGAXX2 variant AVRs to the DFU bootloader. Added warning to the EVENT_USB_Device_Connect() and EVENT_USB_Device_Disconnect() events that they may be fired multiple times during device enumeration on the series 2 AVRs.
* Add LOAD ADDRESS command parsing to the V2 Protocol hander in the AVRISP ↵Dean Camera2009-08-201-1/+1
| | | | | | project. Fix up references to functions in the Endpoint/Pipe documentation.
* Added new EVENT_USB_Device_StartOfFrame() event, controlled by the new ↵Dean Camera2009-08-161-0/+13
| | | | USB_Device_EnableSOFEvents() and USB_Device_DisableSOFEvents() macros to give bus-synchronised millisecond interrupts when in USB device mode.
* Renamed all library events to properly seperate out Device and Host mode ↵Dean Camera2009-08-051-98/+60
| | | | | | | | 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.
* Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean Camera2009-07-211-2/+2
| | | | | | | | | | | | 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.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-281-7/+7
| | | | | | 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).
* Changed per-device controller preprocessor checks over to per-device series ↵Dean Camera2009-06-141-1/+1
| | | | | | for better device control. Fixed error in Endpoint.c using HSOFI rather than SOFI for counting elapsed milliseconds.
* Minor documentation page updates.Dean Camera2009-06-041-2/+2
| | | | | | | | 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-021-6/+0
| | | | | | 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.
* Commit of new class abstraction APIs for all device demos other than the ↵Dean Camera2009-06-011-0/+6
| | | | | | | | | | 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-221-12/+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.
* Fix broken doxygen reference in last commit.Dean Camera2009-05-191-4/+3
|
* USB_IsConnected is now cleared before the USB_Disconnect() event is fired in ↵Dean Camera2009-05-191-16/+20
| | | | | | response to VBUS being removed. Minor documentation improvements.
* Rewritten event system to remove all macros, to make user code clearer.Dean Camera2009-05-181-169/+51
| | | | | | | | 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.
* Moved USB Host state machine code out from USBTask.c and into Host.c, where ↵Dean Camera2009-05-131-1/+1
| | | | it more properly belongs.
* Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent ↵Dean Camera2009-05-041-13/+13
| | | | | | 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.
* More minor renaming of library enums and events to try to create a ↵Dean Camera2009-05-031-5/+7
| | | | consistent API.
* Fixed reversed signature byte ordering in the CDC bootloader (thanks to ↵Dean Camera2009-05-021-2/+2
| | | | Johannes Raschke).
* Documentation enhancements to improve documentation cross-references.Dean Camera2009-04-221-21/+15
|
* 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.
* More documentation changes for better module-level documentation rather than ↵Dean Camera2009-04-171-10/+7
| | | | file-level documentation.
* Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean Camera2009-04-161-1/+11
| | | | | | | | | | | | | | | | | | 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.