aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/Host/CDC.h
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-10-26Fixed CDC class drivers not saving and sending all 16-bits of the control ↵Dean
line states (thanks to Matthew Swabey). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1953 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-12Add missing function attributes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1862 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-08Remove warnings in the documentation for the library class drivers about ↵Dean
sequential pipe/endpoint allocation, as by default this is no longer as issue (unless ORDERED_EP_CONFIG is specified). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1792 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-02-27More AVR32 UC3B architecture ports - USB device mode applications can now be ↵Dean
sucessfully compiled, although they will be currently non-functional. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1685 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-20More updates to remove architecture-specific comments from the ↵Dean
documentation, alter USBMode.h preprocessor logic to support future architectures more easily. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1675 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-20Start update of documentation to support possible multiple architectures in ↵Dean
the future - alter \file documentation to automatically copy in the module documentation where possible. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1673 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-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-08Minor documentation improvements.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1626 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-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-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-12Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host ↵Dean
interface was not configured. Small documentation improvements to explicitly reference tokens in Doxygen, to ensure that they are converted to cross-reference links in the output files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1523 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-28Fix up incorrect version numbers in demo/project descriptors.Dean
Add class name prefixes to missed constants in the class drivers to give all class driver elements a consistent namespace. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1500 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-09Whitespace corrections.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1469 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-01Fix XPLAINBridge project discarding characters from the USB interface due to ↵Dean
a double read from the endpoint. Make XPLAINBridge and USBtoSerial projects more reliable by forcing a flush if the UART-to-USB buffer becomes nearly full. Reduce locking in the LightweightRingBuffer.h header files by only locking on the update of the buffer count, and require insertions and removals from each buffer to occur in only one execution thread. Fix CDC_*_ReceiveByte() returning 0 when the interface is not configured, instead of the new -1 error value. Fix CDC_Host_ReceiveByte() not re-freezing the pipe if no packet has been received. Remove redundant Pipe token set commands in the CDC and RNDIS host class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1431 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-30Altered the CDC Deivice and Host Class drivers' receive byte routines, so ↵Dean
that no data is indicated by a negative return value. Added auto flushing of OUT data to the CDC Host Class driver's USBTask function to automatically flush the send pipe buffer. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1422 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-19Update makefiles to use the latest WinAVR/Atmel toolchain makefile template.Dean
Add new module source variables to the library core makefile, so that module sources can be added to a project's makefile on a per-module rather than per-file basis. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1394 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-06-17Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().Dean
Minor tweaks to the library documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1343 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-16Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean
the new 1.7 Doxygen's default stylesheet is much better. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1341 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-15Change over Doxygen \note documentation to \pre where applicable.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1336 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-08Add missing ATTR_NON_NULL_PTR_ARG and ATTR_ALWAYS_INLINE attributes to class ↵Dean
driver functions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1324 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-03Minor documentation cleanups.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1312 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-29Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1289 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-05-06Added new EVENT_CDC_Device_BreakSent() event and CDC_Host_SendBreak() ↵Dean
function to the Device and Host CDC Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1242 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-29Add briefs for the library core structures.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1181 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-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-02-08Fix AVRISP-MKII clone project's TPI Chip Erase command processing - ensure ↵Dean
erase location is the high byte in the given address space, check NVMBUSY for completion rather than the NVM Bus Enable bit. Change If-Else chains over to switch statements in XPROGProtocol.c for clarity. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1118 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-25Fixed CDC and RNDIS host demos and class drivers - bidirectional endpoints ↵Dean
should use two seperate pipes, not one half-duplex pipe. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1062 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-05Added support to the MIDI Class drivers for packed data, where multiple MIDI ↵Dean
events are packed into a single USB packet. Added new MIDI Class driver flush routines to override packing behaviour. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1038 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-04Fix MassStorageKeyboard demo USE_INTERNAL_SERIAL check being performed ↵Dean
before the required library headers were included, causing a compilation error. Added notes to the class driver functions indicating which functions require what Device/Host state machine states to function. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1036 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-30Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent ↵Dean
data to the attached device. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@933 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-29Add to the existing CDC Class Driver's CreateStream() function documentation ↵Dean
to explicitly state that the created streams are bidirectional. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@931 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