aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/ClassDriver/MouseHost/MouseHost.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-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-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
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-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-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-10-08Application documentation/comment cleanup.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@862 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-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-20Add KeyboardHost HID Host Class driver demo to the library.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@830 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
2009-09-17Added support for the officially recommended layout of the external ↵Dean
peripherals connected to the BUMBLEB board. Added flag to the HID Host Class driver to indicate the currently selected reporting protocol. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@827 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-17Fix Mass Storage Host Class driver GetMaxLUN command - incorrect function ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@826 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-31Changed the parameters and behaviour of the USB_GetDeviceConfigDescriptor() ↵Dean
function so that it now performs size checks and data validations internally, to simplify user code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@797 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-11Add new functions to the HID host class driver, refine HID interface ↵Dean
protocol matching. Remove stray state variable from the CDC host class driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@733 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-11Fixed swapped paremeters in the HID state memory copy call while processing ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@732 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-11Fix issue in CDC device class driver where received data the size of the ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@730 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-06Make Endpoint control transfers more reliable; early-abort when an ↵Dean
incomplete packet is sent from the host (indicating end of transfer), add check for control reads to ensure that no more than wLength bytes are read from the interface. Condense sequential printf_P/puts_P calls to single printf_P calls for size and clarity. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@725 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Renamed all library events to properly seperate out Device and Host mode ↵Dean
events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@718 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-02Rename TOTAL_NUM_CONFIGURATIONS to FIXED_NUM_CONFIGURATIONS, to match the ↵Dean
existing FIXED_CONTROL_ENDPOINT_SIZE compile time option. Add FIXED_NUM_CONFIGURATIONS to the descriptors of each project using the option. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@712 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27State information for class drivers is now zeroed out during enumeration ↵Dean
(both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@689 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27Collapse configuration descriptor size retrieval and size testing into a ↵Dean
single if statement within the new host mode class driver demos for clarity. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@688 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27Change Host mode class driver Pipe configuration routines -- better to let ↵Dean
the application fetch the configuration descriptors once, and then pass them to each class driver in turn. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@687 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-27Add new MouseHost Class Driver demo, unfinished, to allow for better testing ↵Dean
of the new prototype Host Mode Class Driver framework. Flesh out start of a HID class Host mode class driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@686 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