summaryrefslogtreecommitdiff
path: root/Demos/Host
AgeCommit message (Collapse)Author
2011-07-11Minor style improvements to the incomplete AndroidAccessoryHost demo.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1857 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-11Minor demo/project documentation and style fixes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1853 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-10Replace blind interface descriptor search in the incomplete ↵Dean
AndroidAccessoryHost demo with an intelligent search for the correct interface in the device matching the correct class/subclass/protocol values. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1852 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-06-30Pull out Android Accessory Mode functions into a seperate set of files in ↵Dean
the incomplete Android Accessory Mode Host demo. Improve Android Accessory Mode protocol support to correctly query the device's supported protocol and send the approriate device information strings. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1835 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-27Fix logic bug in the incomplete Android Accessory Host demo preventing ↵Dean
correct detection of an attached Android Accessory Mode device. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1824 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-20Add new "checksource" target to the library makefiles, for automated source ↵Dean
file existance checking. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1821 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-20Remove HID parser information output from the Low Level Host applications ↵Dean
using the HID Report parser to simplify them, as this information can now be obtained using the new HIDReportViewer project when required. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1813 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-16Add missing SVN eol-style properties to source files to prevent mixed ↵Dean
end-of-line characters. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1805 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-16Rename new Audio class driver functions, callbacks and events to ensure that ↵Dean
they contain the USB mode (Device or Host) in the function names. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1803 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-14Fix Doxygen documentation errors.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1802 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-13Ensure that only the requested Audio class pipes are mapped to endpoints ↵Dean
within the device for a specific Audio Host Class driver instance. Fix const-correctness of the Audio Host Class driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1799 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-12Fix bugs in the Host mode Audio class driver.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1798 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-09Add missing AS4 and project description files to the new Audio Host demos.Dean
Correct errors in the existing Audio demo description files due to the new demo features (variable sampling rate vs. a fixed sampling rate). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1795 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-09Add new Audio Class Driver Host demos.Dean
Fix errors in the new Audio Host mode Class Driver, which would have prevented data from being sent or received properly by the device. Add microphone/square wave generation compile time switch to the Low Level AudioOutput Host demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1794 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-06Add additional support files for the new low level AudioInputHost and ↵Dean
AudioOutputHost demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1786 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-06Move completed low level Audio Host demos into the LowLevel folder from the ↵Dean
Incomplete folder. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1785 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-06Update incomplete Host mode Audio demos to use the correct class driver ↵Dean
Endpoint Sampling Frequency Control value constant. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1784 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-05Massive corrections to the project documentation and code comments, thanks ↵Dean
to Russian translation services provided by Andrey from Microsin.ru. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1782 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-05Fixed compile errors in the incomplete BluetoothHost demo application ↵Dean
(thanks to Timo Lindfors). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1781 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-03Added new callback to the Audio Class driver to allow for endpoint control ↵Dean
manipulations such as data sample rates. Modified the Class Driver AudioInput and AudioOutput demos to support multiple sample rates. Fixed KeyboardHost and KeyboardHostWithParser demos displaying incorrect values when numerical keys were pressed. Fix broken LowLevel audio demo descriptors. Minor documentation fixes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1779 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-01Spell check library source code files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1777 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-01Fixed incorrect signature in the CDC and DFU class bootloaders for the ↵Dean
ATMEGA8U2. Minor documentation cleanups. Modify the incomplete AudioInputHost demo for mono audio output. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1776 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-30Added new incomplete AudioOutputHost Host LowLevel demo.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1775 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-30Remove output files from the incomplete AudioInputHost demo, and improve the ↵Dean
logic in the ConfigDescriptor.c device configuration processing routine. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1773 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-29Added new incomplete AudioInputHost Host LowLevel demo.Dean
Added missing Audio class control request definitions. Added support for the Audio class GET STATUS request so that it is correctly ACKed when sent by the host. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1771 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-27Add new USB_Host_SetInterfaceAltSetting() convenience function.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1770 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-14Fixed possible invalid program execution when in host mode if corrupt ↵Dean
descriptor lengths are supplied by the attached device. Minor code cleanups to add const and reformat where missing, as well as abstract out the internal device signature start address into a macro, so that it can be altered to suit particular devices within a single architecture if needed. Add missing documentation to the USB_Device_States_t enum. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1752 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-13Add incomplete Android Accessory Host LowLevel demo.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1751 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-10Remove redundant type information for bitfield elements, other than the ↵Dean
signed/unsignedness of the element. Change type of USB_SelectedPipe and USB_SelectedEndpoint for the AVR32 UC3 architecture to uint32_t to reduce the compiled code size. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1733 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-03-21F_CLOCK changed to F_USB to be more descriptive, and applicable on future ↵Dean
architecture ports. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1720 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-19Add new ARCH option to the makefiles to (eventually) specify the target ↵Dean
device architecture. Update non-usb peripheral drivers to reflect future multiple architecture support. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1669 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-30Oops - fix up some calls to the old function names, include Serial ↵Dean
Peripheral driver in the RNDISEthernetHost project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1648 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Renamed the PRNT_Host_SendString(), CDC_Host_SendString() and ↵Dean
CDC_Device_SendString() functions to *_SendData(), and added new versions of the *_SendString() routines that expect a null terminated string instead. Added new Serial_SendData() function to the Serial driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1647 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-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-26Documentation improvements - put driver example code into its own section, ↵Dean
fix incorrect and missing section names. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1616 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-05Loop in the ClassDriver MIDI device/host demos until there are no more ↵Dean
incomming events to process. Only clear the endpoint/pipe bank in the LowLevel MIDI device/host demos when the endpoint is empty after an event read. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1555 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-28Added standard keyboard HID report scancode defines (thanks to László Monda).Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1544 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-01Fixed LowLevel JoystickHostWithParser demo not saving the chosen HID ↵Dean
interface's report descriptor size. Simplified low level Host demo configuration descriptor parser routines. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1509 d5102386-fcda-11dd-9fdb-3debd5008f28