aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/Host/HID.c
AgeCommit message (Collapse)Author
2011-11-18Added Class, ClassDevice, ClassHost and ClassCommon to the internal class ↵Dean
driver source filenames to prevent ambiguities. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1978 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-09-17Fixed HID Parser's largest report size bit count not including the size of ↵Dean
the last parsed report item. Fixed HID host driver's largest HID report size count corrupt when the number of report bits exceeds 255. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1924 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-19Removed the ENDPOINT_DESCRIPTOR_DIR_* macros in favour of the shorter ↵Dean
ENDPOINT_DIR_* macros, which can now be used with both Endpoint_ConfigureEndpoint() and in the device descriptors. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1895 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-12Add missing function attributes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1862 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-11More endianness porting of the LUFA host mode class drivers.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1859 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-05Fix HID_Host_SetIdlePeriod() function to send the correct request type to ↵Dean
the device, remove reference to unavailable (and not needed) local variable. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1844 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-04Add missing function parameter to the new HID_Host_SetIdlePeriod() function.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1842 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-04Added new HID_Host_SetIdlePeriod() function to the HID Host Class driver.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1840 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-20Minor internal macro renaming for the UC3 devices.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1819 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-04Renamed all low level Endpoint_Read_*, Endpoint_Write_* and ↵Dean
Endpoint_Discard_* functions to use the number of bits instead of a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures. Renamed all low level Pipe_Read_*, Pipe_Write_* and Pipe_Discard_* functions to use the number of bits instead of a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1726 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-19Initial restructuring of the core USB driver module to support multiple ↵Dean
architectures in the future. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1672 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-10Altered all endpoint/pipe stream transfers so that the new BytesProcessed ↵Dean
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). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1628 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-02Fixed HID hpst class driver incorrectly binding to HID devices that do not ↵Dean
have an OUT endpoint. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1600 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-02Refactored Host mode Class Driver *_Host_ConfigurePipes() routines to be ↵Dean
more space efficient when compiled. Added new *_ENUMERROR_PipeConfigurationFailed error codes for the *_Host_ConfigurePipes() routines. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1599 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-02Fix XPLAINBridge code broken during the changes to the Rescue Clock ↵Dean
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). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1550 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-25Add descriptor class, subclass and protocol constants to the class drivers, ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1538 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-24All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1537 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-01Whitespace corrections.Dean
Make Printer Host mode Class driver interface descriptor search routine pre-cast the current interface descriptor to simplify the value checks. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1506 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-30Make Host mode Class drivers only set the class driver instance's state ↵Dean
values once a compatible interface has been found within the device. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1505 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-30Fix incorrectly named configuration descriptor callback routines in the host ↵Dean
mode class drivers. Fix typo in MIDI low level device demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1504 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-30Fix low level host mode demos not correctly fetching the next endpoint when ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1503 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-28Move out many of the common class driver constants into grouped enums, to ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1497 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-09Added class specific descriptor type defines with standard USB-IF element ↵Dean
naming. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1468 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-21Add missing const qualifiers to class drivers.Dean
Indent core library function parameters so that there is only one parameter per line, to increase readability. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1398 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-09Add new ReportType parameter to the HID class driver device callback and ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1249 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-04Fixed Host mode HID class driver not sending the correct report type when ↵Dean
HID_Host_SendReportByID() was called and the HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1232 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-24Fixed compilation error in the AudioInput demos when ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1175 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-14Fix HID Host Class driver sending incorrect ReportType values to the device ↵Dean
when issuing requests via the control pipe. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1129 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-11Add more include protection macros to give the user warnings when they try ↵Dean
to manually include private driver header files, instead of the public driver headers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1123 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-05Inline USB management functions in the Class drivers which are standardized ↵Dean
but currently unused, to prevent them from using up unneccesary cycles and flash in the user application. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1037 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-04Fix MassStorageKeyboard demo USE_INTERNAL_SERIAL check being performed ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1036 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-13Test with -Wextra, fix library warnings due to unused function parameters.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@969 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-26Added new RNDIS Host class driver and the beginnings of a RNDISEthernetHost ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@923 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-09Fixed HID host Class driver report send/receive report broken when issued ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@887 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-07Add optional pipe double banking support to the Host mode Class drivers.Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@884 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-03Add const attribute to class driver APIs.Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@872 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-30Added new HID_HOST_BOOT_PROTOCOL_ONLY compile time token to reduce the size ↵Dean
of the HID Host Class driver when Report protocol is not needed. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@853 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-30Fixed issue in the HID Host class driver's HID_Host_SendReportByID() routine ↵Dean
using the incorrect mode (control/pipe) to send report to the attached device. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@852 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-24Fix incorrect names for the HID Host protocol setting routines.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@844 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-21Add new attributes to the HID Report Parser and HID Host Mode Class driver ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@839 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-21Finish initial draft of the Host Mode HID Class driver.Dean
Add new MouseHostWithParser and KeyboardHostWithParser Host Class driver demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@838 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-21Add const qualifiers to Host mode Class drivers.Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@833 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-20Finish Class Driver MouseHost demo. Update HID Host Class driver; boot ↵Dean
protocol now works, still need to finish and test report protocol mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@829 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-20Added new Pipe_IsFrozen() macro to determine if the currently selected pipe ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@828 d5102386-fcda-11dd-9fdb-3debd5008f28