Atmel Software Framework

udi_cdc_conf.h File Reference

Default CDC configuration for a USB Device with a single interface.

Copyright (c) 2009-2015 Atmel Corporation. All rights reserved.

#include "usb_protocol_cdc.h"
#include "conf_usb.h"

Macros

#define UDI_CDC_PORT_NB   1
 
#define USB_DEVICE_EP_CTRL_SIZE   64
 Control endpoint size (Endpoint 0) More...
 
Default endpoint configuration

The USBB, UDP, UDPHS and UOTGHS interfaces can support up to 2 CDC interfaces.

#define UDI_CDC_DATA_EP_IN_0   (1 | USB_EP_DIR_IN)
 
#define UDI_CDC_DATA_EP_OUT_0   (2 | USB_EP_DIR_OUT)
 
#define UDI_CDC_COMM_EP_0   (3 | USB_EP_DIR_IN)
 
#define UDI_CDC_DATA_EP_IN_1   (4 | USB_EP_DIR_IN)
 
#define UDI_CDC_DATA_EP_OUT_1   (5 | USB_EP_DIR_OUT)
 
#define UDI_CDC_COMM_EP_1   (6 | USB_EP_DIR_IN)
 
#define USB_DEVICE_MAX_EP   (3*UDI_CDC_PORT_NB)
 3 endpoints used per CDC interface More...
 
Default Interface numbers
#define UDI_CDC_COMM_IFACE_NUMBER_0   0
 
#define UDI_CDC_DATA_IFACE_NUMBER_0   1
 
#define UDI_CDC_COMM_IFACE_NUMBER_1   2
 
#define UDI_CDC_DATA_IFACE_NUMBER_1   3
 
#define UDI_CDC_COMM_IFACE_NUMBER_2   4
 
#define UDI_CDC_DATA_IFACE_NUMBER_2   5
 
#define UDI_CDC_COMM_IFACE_NUMBER_3   6
 
#define UDI_CDC_DATA_IFACE_NUMBER_3   7
 
#define UDI_CDC_COMM_IFACE_NUMBER_4   8
 
#define UDI_CDC_DATA_IFACE_NUMBER_4   9
 
#define UDI_CDC_COMM_IFACE_NUMBER_5   10
 
#define UDI_CDC_DATA_IFACE_NUMBER_5   11
 
#define UDI_CDC_COMM_IFACE_NUMBER_6   12
 
#define UDI_CDC_DATA_IFACE_NUMBER_6   13
 

#define UDI_CDC_PORT_NB   1