|
Data Structures | |
| struct | DualCdcdSerialDriver |
| struct | _DualCdcDriverConfigurationDescriptors |
Modules | |
| Usbd_composite_cdccdc_desc | |
Defines | |
| #define | DUALCDCDDriverDescriptors_PRODUCTID USBD_PID_CDCCDC |
| Device product ID. | |
| #define | DUALCDCDDriverDescriptors_VENDORID USBD_VID_ATMEL |
| Device vendor ID (Atmel). | |
| #define | DUALCDCDDriverDescriptors_RELEASE 0x0003 |
| Device release number. | |
| #define | MIN(a, b) ((a < b) ? a : b) |
| Returns the minimum between two values. | |
| #define | NUM_PORTS 2 |
| #define | NUM_INTERFACES ((DUALCDCDDriverDescriptors_NUMINTERFACE+3)&0xFC) |
Functions | |
| void | DUALCDCDDriver_Initialize (const USBDDriverDescriptors *pDescriptors) |
| void | DUALCDCDDriver_ConfigurationChangeHandler (uint8_t cfgnum) |
| void | DUALCDCDDriver_RequestHandler (const USBGenericRequest *request) |
| CDCDSerialPort * | DUALCDCDDriver_GetSerialPort (uint32_t port) |
|
struct _DualCdcDriverConfigurationDescriptors | __attribute__ ((__packed__)) DualCdcDriverConfigurationDescriptors |
Variables | |
| const USBDDriverDescriptors | dualcdcdDriverDescriptors |
| List of descriptors required by an USB audio speaker device driver. | |
| DualCdcdSerialDriver | dualcdcdDriver |
| #define NUM_INTERFACES ((DUALCDCDDriverDescriptors_NUMINTERFACE+3)&0xFC) |
Interface setting spaces (4 byte aligned)
Definition at line 56 of file DUALCDCDDriver.c.
| #define NUM_PORTS 2 |
Number of CDC serial ports
Definition at line 53 of file DUALCDCDDriver.c.
| void DUALCDCDDriver_ConfigurationChangeHandler | ( | uint8_t | cfgnum | ) |
Invoked whenever the active configuration of device is changed by the host.
| cfgnum | Configuration number. |
| CDCDSerialPort * DUALCDCDDriver_GetSerialPort | ( | uint32_t | port | ) |
Return CDCDSerialPort for serial port operations.
| port | Port number. |
| void DUALCDCDDriver_Initialize | ( | const USBDDriverDescriptors * | pDescriptors | ) |
Initializes the USB device composite device driver.
| pDescriptors | Pointer to Descriptors list for CDC Serial Device. |
| void DUALCDCDDriver_RequestHandler | ( | const USBGenericRequest * | request | ) |
Handles composite-specific USB requests sent by the host, and forwards standard ones to the USB device driver.
| request | Pointer to a USBGenericRequest instance. |
Dual CDC Serial device driver instance
Definition at line 73 of file DUALCDCDDriver.c.
{
&deviceDescriptor,
(const USBConfigurationDescriptor *) &configurationDescriptorsFS,
&qualifierDescriptor,
0, 0, 0,
&qualifierDescriptor, 0,
stringDescriptors,
4
}
List of descriptors required by an USB audio speaker device driver.
Definition at line 383 of file USBDDriverDescriptors.c.
1.7.1