aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/Host/StillImage.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-08-24Renamed USB_Host_ClearPipeStall() to USB_Host_ClearEndpointStall() as the ↵Dean
function works on an endpoint address within the attached device, and not a Pipe within the host. Updated MS_Host_ResetMSInterface() to now perform a full Mass Storage reset sequence to prevent data corruption in the event of a device lock up or timeout (thanks to David Lyons). Add parenthesis around the library Endianness macros that do nothing on a particular architecture to prevent operator precedence issues depending on usage. Minor documentation corrections. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1914 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-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-03-03Fixed Still Image Host class driver exiting the descriptor search routine ↵Dean
prematurely if the data pipes (but not event pipe) is found. Fixed missing call to Pipe_SetInfiniteINRequests() in the Pipe_ConfigurePipe() routine. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1694 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-16Fixed several functions in the Host mode Still Image Class driver returning ↵Dean
an error code from the incorrect error code enum (thanks to Daniel Seibert). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1637 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-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 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-05Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() ↵Dean
functions to retrieve the current USB frame number. Added new USB_Host_EnableSOFEvents(), USB_Host_DisableSOFEvents() and EVENT_USB_Host_StartOfFrame() for the user application handling of USB Start of Frame events while in USB Host mode. Changed over all demos, drivers and internal functions to use the current frame number over the Start of Frame flag where possible to free up the Start of Frame flag for interrupt use in the user application. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1463 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-07-13Added const attributes to some of the class driver function parameters that ↵Dean
were missing it. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1384 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-03-29Add file-level brief documentation.Dean
Remove accidentally duplicated model-specific peripheral driver files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1180 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-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
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-16The SImage_Host_SendBlockHeader() and SImage_Host_ReceiveBlockHeader() Still ↵Dean
Image Host Class driver functions are now public. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@981 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-15Fix a bug in the Still Image Host Class driver where the returned block ↵Dean
status code was being truncated. Add programming support to the AVRISP project's PDI programming mode; paged memory writes are not currently functional. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@977 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-23Fixed misnamed SI_Host_USBTask() and SI_Host_ConfigurePipes() functions.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@912 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-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-09Finish Still Image Host class driver.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@817 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-06Changed Still Image Host class driver to auto-fill TransactionID element of ↵Dean
sent headers depending on the current session state. CDC based demos and project now work under 64 bit versions of Windows (thanks to Ronny Hanson, Thomas Bleeker). The Benito Programmer project now has its own unique VID/PID pair allocated from the Atmel donated LUFA VID/PID pool. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@810 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-02Add StillImage Host Class Driver functions for opening and closing sessions. ↵Dean
Ensure IsActive is set on the interface to allow device functions to run. Fix spelling of "Received" in all source files where it is misspelt "Recieved". git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@809 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-01Added documentation for the constants and enums of the new StillImage Host ↵Dean
Class driver added to the library so far. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@804 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-01Fixed StillImageHost not correctly freezing and unfreezing data pipes while ↵Dean
waiting for a response block header. Added basic PIMA commands to the StillImage Host Class driver - need to extend to PIMA specific command functions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@803 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-30Remove deleted source files from the LUFA library makefile.Dean
Renamed parameters of SI_Host_ConfigurePipes() to match other Host mode Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@795 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-30Added start of the Still Image Host Class driver demo and driver code.Dean
Re-enabled building of the Host mode demos ClassDriver directory. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@794 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Commit for 090810rc1 release.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@720 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-14Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.Dean
Split out common defines/types from class drivers into a seperate common class driver directory. Make central USB Class driver dispatch headers, used for both device and host modes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@594 d5102386-fcda-11dd-9fdb-3debd5008f28