aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Mouse Scrollwheel to the MouseHostWithParser demos.Dean Camera2009-11-041-0/+15
|
* Application documentation/comment cleanup.Dean Camera2009-10-081-1/+1
|
* Fix more build errors in the LowLevel "WithParser" HID Host demos.Dean Camera2009-09-221-1/+1
|
* Add new error condition to the HID Report Parser for when a report is parsed ↵Dean Camera2009-09-221-3/+7
| | | | 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.
* Finish initial draft of the Host Mode HID Class driver.Dean Camera2009-09-211-3/+3
| | | | Add new MouseHostWithParser and KeyboardHostWithParser Host Class driver demos.
* Fix building of KeyboardHostWithParser and MouseHostWithParser demos broken ↵Dean Camera2009-09-211-4/+8
| | | | by HIDParser API changes.
* Change HID report parser so that it can calculate and record the sizes (IN, ↵Dean Camera2009-09-091-1/+15
| | | | | | 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.
* Oops - with new changes to the way the device Configuration Descriptor is ↵Dean Camera2009-08-311-2/+2
| | | | retrieved from the device, ensure that the correct position pointer is cast when extracting descriptor parameters.
* Make Endpoint control transfers more reliable; early-abort when an ↵Dean Camera2009-08-061-10/+10
| | | | | | 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.
* Renamed all library events to properly seperate out Device and Host mode ↵Dean Camera2009-08-051-5/+5
| | | | | | | | 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.
* Fixed report data alignment issues in the MouseHostWithParser demo when X ↵Dean Camera2009-07-281-6/+1
| | | | | | 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.
* Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean Camera2009-07-211-6/+3
| | | | | | | | | | | | USB state. Added new Endpoint_ClearStatusStage() convenience function to assist with the status stages of control transfers. Removed vague USB_IsConnected global - test USB_DeviceState or USB_HostState explicitly to gain previous functionality. Removed USB_IsSuspended global - test USB_DeviceState against DEVICE_STATE_Suspended instead. Fixed possible enumeration errors from spinloops which may fail to exit if the USB connection is severed before the exit condition becomes true.
* Don't send terminal RESET codes via serial - just set the foreground colour ↵Dean Camera2009-07-191-1/+1
| | | | and assume the user has the background set to something sane, so that the demos don't wipe out custom user terminal settings.
* Use sane ANSI terminal escape codes for the Host mode demos, so that they do ↵Dean Camera2009-07-191-15/+14
| | | | not cause eye-searing, unreadable text on terminals which parse the escape codes properly.
* Added new HOST_STATE_WaitForDeviceRemoval host state machine state for ↵Dean Camera2009-07-131-3/+3
| | | | | | non-blocking disabling of device communications until the device has been removed (for use when an error occurs or communications with the device have completed). Changed over all host mode demos to use the new state. Added verbose documentation for each of the USB Host state machine states.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-281-1/+1
| | | | | | Added parameter directions to function parameter documentation. Added new experimental FAST_STREAM_FUNCTIONS compile time option to speed up stream transfers at the expense of a higher FLASH consumption (needs testing to verify improved throughput).
* Added new USB_Host_SetDeviceConfiguration() convenience function. Change ↵Dean Camera2009-06-161-31/+18
| | | | over Low Level host demos to use the new routine.
* Converted Host mode demos to schedulerless. Fixed host mode broken due to ↵Dean Camera2009-06-081-84/+27
| | | | earlier Start-of-frame event experiments.
* Copy existing Host mode demos to new ClassDriver and LowLevel subfolders.Dean Camera2009-06-051-0/+362