aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/Class/Device/RNDIS.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-07-11More endianness porting of the LUFA device mode class drivers.Dean
Add endianness information to the class driver and core structure definitions. Move out the unused Ethernet_Frame_Info_t structure definition to the RNDIS device demos where it is needed. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1858 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-18Add new RNDIS_Host_IsPacketReceived(), RNDIS_Device_ReadPacket() and ↵Dean
RNDIS_Device_WritePacket() functions to the Device RNDIS Class Driver. Modify RNDIS demos to suit the simplified Ethernet_Frame_Info_t structure. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1757 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-13Replace cast-as-char* byte access of multibyte variables with proper shifts ↵Dean
and masks to preserve endianness across different architectures. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1738 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-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-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-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-09-30Reverted Endpoint/Pipe non-sequential configuration hack, placed restriction ↵Dean
on the configuration order instead to ensure maximum reliability. Altered all low level device and host mode demos to ensure that endpoints and pipes are configured in ascending order properly. Rewrote all low level host mode demos' configuration descriptor parser code to ensure that pipes are enumerated in ascending order, and to ensure maximum compatibility with devices. Incremented all device mode demo's device descriptor revision numbers to ensure that any descriptor changes are re-fetched on machines which have enumerated previous versions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1502 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-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-08-22Changed all Device mode LowLevel demos and Device Class drivers so that the ↵Dean
control request is acknowledged and any data transferred as quickly as possible without any processing inbetween sections, so that long callbacks or event handlers will not break communications with the host by exceeding the maximum control request stage timeout period. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1448 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-22Moved calls to Device mode Class Driver events to after the request has been ↵Dean
acknowledged, so that long event handlers do do skew the timing of the control requests. Fixed USBtoSerial and Benito project SetLineEncoding calls failing if the USART is busy, due to the RX ISR delaying the control request handler. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1447 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-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-07Device mode class driver callbacks are now fired before the control request ↵Dean
status stage is sent to prevent the host from timing out if another request is immediately fired and the device has a lengthy callback routine. Inlined currently unused MIDI ProcessControlRequest routine. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1246 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-24Revert changes made for the partial port to the AVR32 architecture.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1155 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-24More AVR32 achitecture ports.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1154 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
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-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-12Add beginnings of a RNDIS Ethernet Host demo.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@893 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-06Add optional double-banking support to the Device mode Class Drivers, on a ↵Dean
per-endpoint, per-interface level. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@882 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-09-14Fixed MIDI Device Class driver not sending/receiving MIDI packets of the ↵Dean
correct size (thanks to Thomas Bleeker). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@824 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-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-21Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@676 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-21Add explicit guards to all device mode tasks to ensure the device is ↵Dean
connected and configured before running the task, to prevent any user tasks from locking up the main USB task if the device has not been properly configured. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@673 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-28Added const modifiers to device mode class drivers.Dean
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). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@636 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-19Clean up RNDIS demo type define names.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@617 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-18Break device mode class driver interfaces into seperate config and state ↵Dean
structs which are then combined, for clarity. Move device mode class driver interfaces back into the device mode class driver headers from the common class headers to make room for host class interfaces. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@609 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
2009-06-11Changed to new device mode Class Driver function name prefixes to make way ↵Dean
for similar host mode Class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@591 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-08Finished basic documentation of all device mode class drivers.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@584 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-01Commit of new class abstraction APIs for all device demos other than the ↵Dean
MIDI demo - not documented yet. Removed scheduler and memory allocation libraries. Added new EVENT_USB_StartOfFrame event in the library to indicate the start of each USB frame (when generated). Removed Tx interrupt from the USBtoSerial demo; now sends characters via polling to ensure more time for the Rx interrupt. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@562 d5102386-fcda-11dd-9fdb-3debd5008f28