aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/Endpoint.h
Commit message (Collapse)AuthorAgeFilesLines
* Change over Doxygen \note documentation to \pre where applicable.Dean Camera2010-06-151-10/+8
|
* Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean Camera2010-05-291-4/+4
|
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-1264/+1264
| | | | correctly converted to the target system's native end of line style.
* Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so ↵Dean Camera2010-05-031-4/+16
| | | | that the stream functions early-abort if the bus is suspended before or during a transfer.
* Removed two-step endpoint/pipe bank clear and switch sequence for smaller, ↵Dean Camera2010-04-131-5/+16
| | | | | | | | 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/+10
| | | | 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-265/+111
|
* More AVR32 achitecture ports.Dean Camera2010-02-241-6/+10
|
* More porting of the USB core to the AVR32.Dean Camera2010-02-231-119/+211
|
* Start porting the USB core to the AVR32 UC3B.Dean Camera2010-02-231-5/+63
|
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-111-0/+5
| | | | to manually include private driver header files, instead of the public driver headers.
* Fixed Pipe_IsEndpointBound() function not taking the endpoint's direction ↵Dean Camera2010-02-011-0/+5
| | | | | | into account. Re-added Pipe_IsEndpointBound() calls to the CDC and RNDIS host class drivers, not that the function has the correct behaviour for devices with bidirectional endpoints.
* 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
|
* Fix inverted bit-banged USART logic in the AVRISP project for PDI ↵Dean Camera2009-12-091-1/+1
| | | | programming. Add a delay to the clock toggling in the AVRISP project to ensure that the programming speed does not exceed 10MHz under any conditions to satisfy the limits in the datasheet for all target voltages. Fix incorrect pin being used as the DATA in in PDI programming mode.
* Fix incorrect definition of Endpoint_BytesInEndpoint() for the U4 parts.Dean Camera2009-12-091-2/+4
|
* Increase timeout of Mass Storage and Still Image host commands to 10 seconds ↵Dean Camera2009-12-091-1/+1
| | | | | | | | (up from 5) to account for slow-processing devices. Added brace guards to macros with parameters to prevent unintended changed evaluation of the macro expression. Minor code cleanups (remove redundant comments, fix spacing, etc.).
* Update CDC Class Driver character stream functions to use the correct ↵Dean Camera2009-11-101-1/+1
| | | | | | 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.
* Spell check all source code variables, comments and strings.Dean Camera2009-11-091-1/+1
|
* Add double banking property to LUFA powered projects in the Projects ↵Dean Camera2009-11-061-8/+8
| | | | directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure.
* Moved USBtoSerial demo the Projects directory, as it is simply an expanded ↵Dean Camera2009-10-181-12/+12
| | | | CDC demo. Added const qualifier to Endpoint/Pipe stream write routines.
* Minor documentation fixups.Dean Camera2009-10-031-13/+13
|
* Doxygen fixes to \param directives to give data direction in all projects. ↵Dean Camera2009-09-241-1/+1
| | | | Make HID item filtering routines clearer in the HID WithParser demos.
* 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".
* Optimized Endpoint_Read_Word_* and Pipe_Read_Word_* macros to reduce ↵Dean Camera2009-08-251-8/+16
| | | | | | compiled size. Fixed Programmer's Notepad project file to reflect new location of AVRISP project.
* Add LOAD ADDRESS command parsing to the V2 Protocol hander in the AVRISP ↵Dean Camera2009-08-201-11/+11
| | | | | | project. Fix up references to functions in the Endpoint/Pipe documentation.
* Added beginnings of a new AVRISP-MKII clone project.Dean Camera2009-08-171-0/+8
| | | | | | Added new Endpoint_SetEndpointDirection() macro to set the current endpoint direction for bidirectional endpoints. Renamed internal USB_INT_ENDPOINT_SETUP macro to USB_INT_RXSTPI to fit in with the rest of the interrupt vector macros.
* Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean Camera2009-07-211-3/+42
| | | | | | | | | | | | 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 new EEPROM and FLASH buffer versions of the Endpoint and Pipe stream ↵Dean Camera2009-07-131-55/+229
| | | | functions. Changed Endpoint.c and Pipe.c to use a templated system to build the seperate functions, rather than duplicating each function's code many times.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-281-32/+32
| | | | | | 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-3/+3
| | | | | | for better device control. Fixed error in Endpoint.c using HSOFI rather than SOFI for counting elapsed milliseconds.
* USB_IsConnected is now cleared before the USB_Disconnect() event is fired in ↵Dean Camera2009-05-191-2/+4
| | | | | | response to VBUS being removed. Minor documentation improvements.
* Rewritten event system to remove all macros, to make user code clearer.Dean Camera2009-05-181-16/+16
| | | | | | | | 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-151-5/+5
| | | | stream callbacks, to make stream function prototypes clearer.
* Removed all user pipe/endpoint interrupt APIs, added internal library ↵Dean Camera2009-05-141-13/+0
| | | | support for interrupt driven control endpoints when in device mode by defining INTERRUPT_CONTROL_ENDPOINT token and passing it to the compiler via the -D switch.
* Fixed Mouse and Keyboard device demos not acting in accordance with the HID ↵Dean Camera2009-05-121-37/+0
| | | | | | specification for idle periods (thanks to Brian Dickman). Removed support for endpoint/pipe non-control interrupts; these did not act in the way users expected, and had many subtle issues.
* More minor renaming of library enums and events to try to create a ↵Dean Camera2009-05-031-16/+16
| | | | consistent API.
* Endpoint configuration is now refined to give better output when all ↵Dean Camera2009-04-241-31/+21
| | | | configurations have static inputs - removed the now useless STATIC_ENDPOINT_CONFIGURATION compile time token.
* Fixed USB_RemoteWakeupEnabled flag never being set (the REMOTE WAKEUP Set ↵Dean Camera2009-04-231-15/+41
| | | | | | Feature request was not being handled). Renamed the FEATURELESS_CONTROL_ONLY_DEVICE compile-time token to CONTROL_ONLY_DEVICE.
* Documentation enhancements to improve documentation cross-references.Dean Camera2009-04-221-41/+40
|
* Removed specialized Endpoint_ClearControl* and Pipe_ClearControl* macros in ↵Dean Camera2009-04-211-38/+12
| | | | favour of the standard Endpoint_Clear* and Pipe_Clear* macros (Atmel have confirmed no effect from setting FIFOCON on control endpoints).
* Fixed incorrect HID interface class and subclass values in the Mouse and ↵Dean Camera2009-04-191-1/+1
| | | | | | | | 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.
* More documentation changes for better module-level documentation rather than ↵Dean Camera2009-04-171-7/+2
| | | | file-level documentation.
* Partial commit: change references to Drivers/AT90USBXXX to Drivers/Peripheral.Dean Camera2009-04-161-4/+6
|
* Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean Camera2009-04-161-178/+360
| | | | | | | | | | | | | | | | | | 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.
* Removed all binary constants and replaced with decimal or hexadecimal ↵Dean Camera2009-04-051-1/+1
| | | | constants so that unpatched GCC compilers can still build the code without having to be itself patched and recompiled first.
* Move StdRequestType.h, StreamCallbacks.h, USBMode.h from the LowLevel USB ↵Dean Camera2009-04-051-1/+1
| | | | driver directory to the HighLevel USB driver directory, where they are more suited.
* All comments in the library, bootloaders, demos and projects have now been ↵Dean Camera2009-04-011-23/+23
| | | | spell-checked and spelling mistakes/typos corrected.
* Fixed USBTask.h not conditionally including HostChapter9.h only when ↵Dean Camera2009-03-261-1/+2
| | | | CAN_BE_DEVICE is defined (thanks to Ian Gregg).