aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Host/HID.c
Commit message (Collapse)AuthorAgeFilesLines
* Initial restructuring of the core USB driver module to support multiple ↵Dean Camera2011-02-191-1/+2
| | | | architectures in the future.
* Altered all endpoint/pipe stream transfers so that the new BytesProcessed ↵Dean Camera2011-01-101-3/+3
| | | | | | | | | | 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).
* Update copyright year on all source files.Dean Camera2011-01-011-2/+2
|
* Fixed HID hpst class driver incorrectly binding to HID devices that do not ↵Dean Camera2010-12-021-1/+4
| | | | have an OUT endpoint.
* Refactored Host mode Class Driver *_Host_ConfigurePipes() routines to be ↵Dean Camera2010-12-021-12/+36
| | | | | | more space efficient when compiled. Added new *_ENUMERROR_PipeConfigurationFailed error codes for the *_Host_ConfigurePipes() routines.
* Fix XPLAINBridge code broken during the changes to the Rescue Clock ↵Dean Camera2010-11-021-13/+17
| | | | | | generation in the AVRISP-MKII clone project. Change over all low level host mode project's descriptor comparator routines to perform the descriptor casting in a temp variable to make the code clearer and easier to modify (despite being more verbose).
* 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.
* Add descriptor class, subclass and protocol constants to the class drivers, ↵Dean Camera2010-10-251-2/+2
| | | | | | | | modify all demos to use them where possible. Move out private/internal host class driver constants to the common class driver headers, so that they can be used in the Low Level host mode demos. Ensure all demos, projects and bootloaders use the class driver constants where possible to minimise code repetition.
* All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean Camera2010-10-241-1/+1
| | | | | | 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.
* Clean up excessive whitespace at the end of each line using the wspurify ↵Dean Camera2010-10-131-42/+43
| | | | tool made by Laszlo Monda
* Whitespace corrections.Dean Camera2010-10-011-11/+11
| | | | Make Printer Host mode Class driver interface descriptor search routine pre-cast the current interface descriptor to simplify the value checks.
* Make Host mode Class drivers only set the class driver instance's state ↵Dean Camera2010-09-301-35/+11
| | | | values once a compatible interface has been found within the device.
* Fix incorrectly named configuration descriptor callback routines in the host ↵Dean Camera2010-09-301-6/+12
| | | | | | mode class drivers. Fix typo in MIDI low level device demo.
* Fix low level host mode demos not correctly fetching the next endpoint when ↵Dean Camera2010-09-301-22/+56
| | | | | | an invalid interface is discarded. Update the pipe configuration routines in the host mode class drivers so that they use the same new code to enumerate compatible devices to increase reliability. Add support to the host mode class drivers for non-sequential (but non-overlapping with other interface) pipe numbers.
* Move out many of the common class driver constants into grouped enums, to ↵Dean Camera2010-09-281-14/+12
| | | | | | | | make them more managable. Add new CDC descriptor structs to the CDC class driver, so that the CDC demos can use human readable field names. Rename prefix for Still Image Host class driver functions from "SImage_" to "SI_" to remain consistent with the rest of the driver.
* Added class specific descriptor type defines with standard USB-IF element ↵Dean Camera2010-09-091-1/+1
| | | | naming.
* Add missing const qualifiers to class drivers.Dean Camera2010-07-211-4/+10
| | | | Indent core library function parameters so that there is only one parameter per line, to increase readability.
* Add new ReportType parameter to the HID class driver device callback and ↵Dean Camera2010-05-091-10/+10
| | | | | | host report sending routines. Renamed internal Host mode Class driver descriptor comparator callback routines so that they all start with a uniform DCOMP_{Class Abbreviation}_ prefix.
* 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.
* Fixed Host mode HID class driver not sending the correct report type when ↵Dean Camera2010-05-041-1/+1
| | | | HID_Host_SendReportByID() was called and the HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set.
* Fixed compilation error in the AudioInput demos when ↵Dean Camera2010-03-241-2/+3
| | | | | | | | MICROPHONE_BIASED_TO_HALF_RAIL is defined (thanks to C. Scott Ananian). Minor documentation cleanups. Make sure HID class driver uses properly cast pointers when writing to the report buffer.
* Fix HID Host Class driver sending incorrect ReportType values to the device ↵Dean Camera2010-02-141-2/+2
| | | | when issuing requests via the control pipe.
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-111-1/+3
| | | | to manually include private driver header files, instead of the public driver headers.
* Inline USB management functions in the Class drivers which are standardized ↵Dean Camera2010-01-051-5/+0
| | | | 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-041-0/+3
| | | | | | 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.
* 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
|
* Test with -Wextra, fix library warnings due to unused function parameters.Dean Camera2009-12-131-1/+1
|
* Added new RNDIS Host class driver and the beginnings of a RNDISEthernetHost ↵Dean Camera2009-11-261-7/+1
| | | | | | | | 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.
* Fixed HID host Class driver report send/receive report broken when issued ↵Dean Camera2009-11-091-2/+2
| | | | | | | | 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-3/+5
| | | | 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 const attribute to class driver APIs.Dean Camera2009-11-031-3/+3
| | | | 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.
* Added new HID_HOST_BOOT_PROTOCOL_ONLY compile time token to reduce the size ↵Dean Camera2009-09-301-24/+39
| | | | of the HID Host Class driver when Report protocol is not needed.
* Fixed issue in the HID Host class driver's HID_Host_SendReportByID() routine ↵Dean Camera2009-09-301-1/+1
| | | | using the incorrect mode (control/pipe) to send report to the attached device.
* Fix incorrect names for the HID Host protocol setting routines.Dean Camera2009-09-241-2/+2
|
* Add new attributes to the HID Report Parser and HID Host Mode Class driver ↵Dean Camera2009-09-211-0/+5
| | | | to keep track of the largest report the device can send for buffer allocation purposes. Change MouseHostWithParser and KeyboardHostWithParser demos to only allocate the needed number of bytes.
* Finish initial draft of the Host Mode HID Class driver.Dean Camera2009-09-211-56/+60
| | | | Add new MouseHostWithParser and KeyboardHostWithParser Host Class driver demos.
* Add const qualifiers to Host mode Class drivers.Dean Camera2009-09-211-7/+9
| | | | Fix KeyboardHost ClassDriver demo; boot protocol keyboard report structure in the Host Mode HID Class driver uses the full keycode array from the attached device.
* Finish Class Driver MouseHost demo. Update HID Host Class driver; boot ↵Dean Camera2009-09-201-11/+7
| | | | protocol now works, still need to finish and test report protocol mode.
* Added new Pipe_IsFrozen() macro to determine if the currently selected pipe ↵Dean Camera2009-09-201-3/+98
| | | | | | | | 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.
* Added support for the officially recommended layout of the external ↵Dean Camera2009-09-171-3/+10
| | | | | | peripherals connected to the BUMBLEB board. Added flag to the HID Host Class driver to indicate the currently selected reporting protocol.
* Fix Mass Storage Host Class driver GetMaxLUN command - incorrect function ↵Dean Camera2009-09-171-4/+54
| | | | | | 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.
* Remove USE_NONSTANDARD_DESCRIPTOR_NAMES compile time token, split out ↵Dean Camera2009-09-091-6/+21
| | | | | | standard descriptors into seperate USB_Descriptor_* and USB_StdDescriptor_* structures so that both can be used within the one project. Add guard to the HID Host Class driver SetProtocol command, to ensure that the device supports boot protocol mode before issuing the request.
* Add StillImage Host Class Driver functions for opening and closing sessions. ↵Dean Camera2009-09-021-4/+4
| | | | | | 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".
* Added start of the Still Image Host Class driver demo and driver code.Dean Camera2009-08-301-2/+2
| | | | Re-enabled building of the Host mode demos ClassDriver directory.
* Added CDC_Device_Flush() command to the CDC Device mode class driver.Dean Camera2009-08-131-4/+6
| | | | | | Minor updates to the unfinished SideShow demo for clarity. Added unfinished MassStorageHost class driver demo.
* Add new functions to the HID host class driver, refine HID interface ↵Dean Camera2009-08-111-3/+30
| | | | | | protocol matching. Remove stray state variable from the CDC host class driver.
* Fixed swapped paremeters in the HID state memory copy call while processing ↵Dean Camera2009-08-111-2/+12
| | | | | | | | | | a HID PUSH item in the HID report parser. Fixed memory corruption HID report parser when too many COLLECTION or PUSH items were processed. Make RNDIS device class driver include the CDC device class driver header, so that it can inherrit the required CDC functional descriptor macro. Make HID host class driver include the HID report parser.
* Fix issue in CDC device class driver where received data the size of the ↵Dean Camera2009-08-111-0/+8
| | | | | | | | data endpoint could lock up the driver. Further work on the new CDC and HID host mode class drivers. Reset changelog et. al. to reset development information for the new version currently under development.
* Commit for 090810rc1 release.Dean Camera2009-08-051-0/+2
|