aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Host/HIDParser.c
Commit message (Collapse)AuthorAgeFilesLines
* New HID report item macros (with HID_RI_ prefix) to allow for easy creation ↵Dean Camera2011-01-161-361/+0
| | | | | | | | and editing of HID report descriptors. Changed over all project and demo HID report descriptors to use the new HID report item macros. Moved the HIDParser.c source file to the LUFA/Drivers/USB/Class/Common/ directory from the LUFA/Drivers/USB/Class/Host/.
* Update copyright year on all source files.Dean Camera2011-01-011-2/+2
|
* 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.
* All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean Camera2010-10-241-0/+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-54/+55
| | | | tool made by Laszlo Monda
* Whitespace corrections.Dean Camera2010-10-011-19/+19
| | | | Make Printer Host mode Class driver interface descriptor search routine pre-cast the current interface descriptor to simplify the value checks.
* Move out many of the common class driver constants into grouped enums, to ↵Dean Camera2010-09-281-3/+3
| | | | | | | | 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.
* Fixed USB_GetHIDReportItemInfo() function modifying the given report item's ↵Dean Camera2010-08-101-4/+4
| | | | data when the report item does not exist within the supplied report of a multiple report HID device.
* 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 svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-353/+353
| | | | correctly converted to the target system's native end of line style.
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-111-0/+1
| | | | to manually include private driver header files, instead of the public driver headers.
* Fixed USB_GetHIDReportSize() returning the number of bits in the specified ↵Dean Camera2010-02-091-1/+3
| | | | | | | | report instead of bytes. Moved the USB_GetHIDReportItemInfo() calls into the main report item passing loop in the *HostWithParser demos - it is fast enough not to effect performance, and avoids duplicate code. Make Webserver project report the LUFA version as part of the HTTP header.
* 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 double oops -- Host mode settle delay was still being ignored due to ↵Dean Camera2009-12-041-3/+3
| | | | inverted logic, HID Parser was assigning the usage Min/Max usage value to the report item's collection path rather than the report item itself.
* Fix incorrect const'ness of the ReportItem parameter in ↵Dean Camera2009-12-041-1/+1
| | | | USB_SetHIDReportItemInfo().
* Fixed HID Parser not distributing the Usage Min and Usage Max values across ↵Dean Camera2009-12-041-7/+19
| | | | | | | | an array of report items. Added new HID_ALIGN_DATA() macro to return the pre-retrieved value of a HID report item, left-aligned to a given datatype. Added new PreviousValue to the HID Report Parser report item structure, for easy monitoring of previous report item values.
* Added new Printer Host mode Class driver.Dean Camera2009-11-041-31/+27
| | | | | | Added new Printer Host mode ClassDriver demo. Added table of supported classes and modes to the main USB Class Driver documentation.
* Fixed HID report parser collection paths invalid due to misplaced semicolon ↵Dean Camera2009-11-041-33/+9
| | | | in the free path item search loop. Increased the default number of collection paths allowable by the parser.
* Rename the AT90USBXXX67 internal driver directory to AVRU4U6U7.Dean Camera2009-11-031-1/+1
|
* Fix accidentally changed code breaking the HID descriptor parser.Dean Camera2009-10-051-2/+1
|
* Changed Audio Class driver sample read/write functions to be inline, to ↵Dean Camera2009-10-031-1/+2
| | | | | | 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.
* Add new error condition to the HID Report Parser for when a report is parsed ↵Dean Camera2009-09-221-0/+3
| | | | but no unfiltered items are encountered (i.e. nothing of interest in the device report). Make all host HID "WithParser" demos print the new error condition.
* Add new attributes to the HID Report Parser and HID Host Mode Class driver ↵Dean Camera2009-09-211-4/+11
| | | | 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.
* Add const qualifiers to Host mode Class drivers.Dean Camera2009-09-211-1/+1
| | | | 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-17/+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-0/+21
| | | | | | | | 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.
* Change HID report parser so that it can calculate and record the sizes (IN, ↵Dean Camera2009-09-091-16/+39
| | | | | | OUT and FEATURE) of each report within the device, by report ID. This will be required in host mode, so that the host can determine how many bytes of data must be read in for each report. Add to MouseHostWithParser and KeyboardHostWithParser demos to print out the report sizes when a valid device is connected.
* Finish Still Image Host class driver.Dean Camera2009-09-091-1/+1
|
* Add user-filtering to the HID report parser, so that the user code can ↵Dean Camera2009-09-021-42/+31
| | | | decide which items are to be stored into the HID_ReportInfo_t structure and which should be discarded to save on RAM usage.
* Changed HIDParser to only zero out important values in the Parsed HID Report ↵Dean Camera2009-09-011-2/+7
| | | | Item Information structure to save cycles.
* Add return codes to the CDC Host Class driver String/Byte transmission ↵Dean Camera2009-08-311-1/+2
| | | | functions.
* Added flag to the HID report parser to indicate if a device has multiple ↵Dean Camera2009-08-111-4/+9
| | | | | | | | | | 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.
* Fixed swapped paremeters in the HID state memory copy call while processing ↵Dean Camera2009-08-111-43/+32
| | | | | | | | | | 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.
* Fixed report data alignment issues in the MouseHostWithParser demo when X ↵Dean Camera2009-07-281-0/+2
| | | | | | and Y movement data size is not a multiple of 8 bits. Fixed HID Report Descriptor Parser not correctly resetting internal states when a REPORT ID element is encountered.
* Fixed broken HIDReportParser.c.Dean Camera2009-06-151-1/+3
|
* Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.Dean Camera2009-06-141-0/+3
| | | | | | 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.
* Commit of new class abstraction APIs for all device demos other than the ↵Dean Camera2009-06-011-0/+326
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.