SAMV71 Xplained Ultra Software Package 1.4

Usbd_composite_cdccdc

Collaboration diagram for Usbd_composite_cdccdc:

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)
CDCDSerialPortDUALCDCDDriver_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 Documentation

#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.


Function Documentation

void DUALCDCDDriver_ConfigurationChangeHandler ( uint8_t  cfgnum  ) 

Invoked whenever the active configuration of device is changed by the host.

Parameters:
cfgnum Configuration number.
CDCDSerialPort * DUALCDCDDriver_GetSerialPort ( uint32_t  port  ) 

Return CDCDSerialPort for serial port operations.

Parameters:
port Port number.
void DUALCDCDDriver_Initialize ( const USBDDriverDescriptors pDescriptors  ) 

Initializes the USB device composite device driver.

Parameters:
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.

Parameters:
request Pointer to a USBGenericRequest instance.

Variable Documentation

Dual CDC Serial device driver instance

Definition at line 73 of file DUALCDCDDriver.c.

Initial value:
 {

    &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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines