2014a220b7956fd2ac0db2adb0b7791015df3a27
3 Copyright (C) Dean Camera, 2009.
5 dean [at] fourwalledcubicle [dot] com
6 www.fourwalledcubicle.com
10 Copyright 2009 Dean Camera (dean [at] fourwalledcubicle [dot] com)
12 Permission to use, copy, modify, and distribute this software
13 and its documentation for any purpose and without fee is hereby
14 granted, provided that the above copyright notice appear in all
15 copies and that both that the copyright notice and this
16 permission notice and warranty disclaimer appear in supporting
17 documentation, and that the name of the author not be used in
18 advertising or publicity pertaining to distribution of the
19 software without specific, written prior permission.
21 The author disclaim all warranties with regard to this
22 software, including all implied warranties of merchantability
23 and fitness. In no event shall the author be liable for any
24 special, indirect or consequential damages or any damages
25 whatsoever resulting from loss of use, data or profits, whether
26 in an action of contract, negligence or other tortious action,
27 arising out of or in connection with the use or performance of
31 /** \ingroup Group_USBClassDrivers
32 * @defgroup Group_USBClassCDC CDC Class Driver - LUFA/Drivers/Class/CDC.h
34 * \section Sec_Dependencies Module Source Dependencies
35 * The following files must be built with any user project that uses this module:
36 * - LUFA/Drivers/USB/Class/Device/CDC.c
37 * - LUFA/Drivers/USB/Class/Host/CDC.c
39 * \section Module Description
40 * CDC Class Driver module. This module contains an internal implementation of the USB CDC-ACM class Virtual Serial
41 * Ports, for both Device and Host USB modes. User applications can use this class driver instead of implementing the
42 * CDC class manually via the low-level LUFA APIs.
44 * This module is designed to simplify the user code by exposing only the required interface needed to interface with
45 * Hosts or Devices using the USB CDC Class.
54 #include "../HighLevel/USBMode.h"
56 #if defined(NO_STREAM_CALLBACKS)
57 #error The NO_STREAM_CALLBACKS compile time option cannot be used in projects using the library Class drivers.
60 #if defined(USB_CAN_BE_DEVICE)
61 #include "Device/CDC.h"
64 #if defined(USB_CAN_BE_HOST)