aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
AgeCommit message (Collapse)Author
2012-04-14Reintegrate the FullEPAddresses development branch into trunk.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2155 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file contributor copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2026 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file header copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2025 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-23Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵dean
trailing whitespace at the end of each line. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2007 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-08Add missing device deconfiguration-on-error statements to the host mode ↵Dean
demos and projects. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1851 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-08Updated all host mode demos and projects to use the ↵Dean
EVENT_USB_Host_DeviceEnumerationComplete() event callback for device configuration instead of manual host state machine manipulations in the main application task. Added new USB_Host_ConfigurationNumber global variable to indicate the selected configuration in an attached device. Renamed global state variables that are specific to a certain USB mode to clearly indicate which mode the variable relates to, by changing the USB_* prefix to USB_Device_* or USB_Host_*. Removed the HOST_STATE_WaitForDeviceRemoval and HOST_STATE_Suspended host state machine states, as these are no longer required. Altered the USB_Host_SetDeviceConfiguration() function to update the new USB_Host_ConfigurationNumber global as required. Moved out the Host mode standard request convenience/helper functions from the architecture specific Host driver files to the architecture agnostic HostStandardReq.c driver file. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1850 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-10Add static keyword to all project globals whose scope should be restricted ↵Dean
to the same module as they are declared in. Tighten up the HID class bootloader code slightly, document that it currently exceeds 2KB of bootloader space for all models other than the Series 2 USB AVRs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1661 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Renamed all driver termination *_ShutDown() functions to the more logical ↵Dean
name *_Disable(). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1649 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Removed SerialStream module, rolled functionality into the base USART Serial ↵Dean
peripheral driver instead through the new Serial_CreateStream() and Serial_CreateBlockingStream() methods. Renamed the Serial byte send/receive functions to remain consistent with the CDC driver's byte functions. Altered the serial byte receive function to make it non-blocking. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1646 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-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-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-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-08-09Tighten up the code in the delta movement detection code in the ↵Dean
MouseHostWithParser and JoystickHostWithParser demos. Make the ClassDriver JoystickHostWithParser demo use the HID_ALIGN_DATA() macro instead of manual shifting and casting. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1439 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-21Update all demos, projects and bootloaders to indent all function ↵Dean
parameters, one per line, for better readability. Add missing const qualifiers to the demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1400 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-04-28Use puts_P() and printf_P() instead of the normal variants where possible in ↵Dean
the Host mode Class Driver demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1223 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-28USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean
be done in the user application once all init code has run. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1219 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-25All Class Driver Host mode demos now correctly set the board LEDs to READY ↵Dean
once the enumeration process has completed. Fixed Still Image Host class driver not resetting the transaction ID when a new session is opened, fixed driver not sending a valid session ID to the device. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1178 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-22Standardized the naming scheme given to configuration descriptor ↵Dean
sub-elements in the Device mode demos, bootloaders and projects. Fix errors in the MouseHostWithParser demo from incorrect use of the HID_ALIGN_DATA() macro. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1172 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-17Software PDI mode breaks unless the software USART has 100 cycles between bits.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1168 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-09Fixed USB_GetHIDReportSize() returning the number of bits in the specified ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1120 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-11-20Fixed LowLevel Keyboard demo not saving the issued report only after it has ↵Dean
been written to the endpoint. Added support for multiple keyboard keycodes in a single report to the LowLevel and ClassDriver Keyboard demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@904 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-13Corrected the name of the misnamed USB_GetDeviceConfigDescriptor() function ↵Dean
to USB_Host_GetDeviceConfigDescriptor(). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@896 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-09Spell check all source code variables, comments and strings.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@889 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-04Add support for Mouse Scrollwheel to the MouseHostWithParser demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@877 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-03Rename the AT90USBXXX67 internal driver directory to AVRU4U6U7.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@873 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-08Application documentation/comment cleanup.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@862 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-29Fix missing semicolons in the *WithParser Host mode demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@849 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-24Doxygen fixes to \param directives to give data direction in all projects. ↵Dean
Make HID item filtering routines clearer in the HID WithParser demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@845 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-22Fix broken Host ClassDriver MouseHostWithParser demo.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@842 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-22Add new error condition to the HID Report Parser for when a report is parsed ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@841 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-06-26Optimize vendor/product description string display code in MassStorageHost.Dean
Remove all Host mode class demos other than the CDCHost class driver demo, so that they can be re-added as they are made once the host mode class framework is designed. Fixed USB_Host_SendControlRequest() not re-suspending the USB bus when initial device ready-wait fails. Fixed USB Pad regulator not being disabled on some AVR models when the USB_OPT_REG_DISABLED option is used. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@632 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-09Copy over schedulerless host demos to ClassDrivers directory, for later ↵Dean
modification to new Host mode USB class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@586 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-09Deleted Host ClassDriver demos -- not yet started, faster to rebase new ↵Dean
ClassDriver demos from the newly schedulerless LowLevel host demos rather than re-convert each demo from the previous scheduler-based implementations. Fixes to MassStorageHost demo to improve compatibility with more USB drives. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@585 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-05Copy existing Host mode demos to new ClassDriver and LowLevel subfolders.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@576 d5102386-fcda-11dd-9fdb-3debd5008f28