Atmel Software Framework

services/usb/_asf_v1/class/cdc/examples/enum/device/usb_descriptors.h File Reference
#include "conf_usb.h"
#include "usb_standard_request.h"
#include "usb_task.h"

Data Structures

struct  S_usb_configuration_descriptor
 USB Configuration Descriptor. More...
 
struct  S_usb_device_descriptor
 USB Device Descriptor. More...
 
struct  S_usb_device_qualifier_descriptor
 USB Device Qualifier Descriptor. More...
 
struct  S_usb_endpoint_descriptor
 USB Endpoint Descriptor. More...
 
struct  S_usb_interface_descriptor
 USB Interface Descriptor. More...
 
struct  S_usb_language_id
 USB Language Descriptor. More...
 
struct  S_usb_manufacturer_string_descriptor
 struct usb_st_manufacturer More...
 
struct  S_usb_product_string_descriptor
 struct usb_st_product More...
 
struct  S_usb_serial_number
 struct usb_st_serial_number More...
 
struct  S_usb_user_configuration_descriptor
 
struct  S_UsbRequest
 USB Request. More...
 

Macros

#define ALTERNATE_0   0
 
#define ALTERNATE_1   0
 
#define CONF_ATTRIBUTES   USB_CONFIG_SELFPOWERED
 
#define CONF_INDEX   0
 
#define CONF_NB   1
 
#define DEVICE_CLASS   CDC_COMM_DEVICE_CLASS
 
#define DEVICE_PROTOCOL   0
 
#define DEVICE_STATUS   SELF_POWERED
 
#define DEVICE_SUB_CLASS   0
 
#define ENDPOINT_NB_1   ( TX_EP | MSK_EP_DIR )
 
#define ENDPOINT_NB_2   RX_EP
 
#define ENDPOINT_NB_3   ( INT_EP | MSK_EP_DIR )
 
#define EP_ATTRIBUTES_1   TYPE_BULK
 
#define EP_ATTRIBUTES_2   TYPE_BULK
 
#define EP_ATTRIBUTES_3   TYPE_INTERRUPT
 
#define EP_CONTROL_LENGTH   64
 
#define EP_IN_LENGTH_1_FS   0x40
 
#define EP_IN_LENGTH_1_HS   512
 
#define EP_IN_LENGTH_2_FS   0x40
 
#define EP_IN_LENGTH_2_HS   512
 
#define EP_IN_LENGTH_3   0x20
 
#define EP_INTERVAL_1   0x00
 
#define EP_INTERVAL_2   0x00
 
#define EP_INTERVAL_3   0xFF
 
#define EP_SIZE_1_FS   EP_IN_LENGTH_1_FS
 
#define EP_SIZE_1_HS   EP_IN_LENGTH_1_HS
 
#define EP_SIZE_2_FS   EP_IN_LENGTH_2_FS
 
#define EP_SIZE_2_HS   EP_IN_LENGTH_2_HS
 
#define EP_SIZE_3   EP_IN_LENGTH_3
 
#define INTERFACE_CLASS_0   CDC_COMM_CLASS
 
#define INTERFACE_CLASS_1   CDC_DATA_CLASS
 
#define INTERFACE_INDEX_0   0
 
#define INTERFACE_INDEX_1   0
 
#define INTERFACE_NB_0   0
 
#define INTERFACE_NB_1   1
 
#define INTERFACE_PROTOCOL_0   0x01
 
#define INTERFACE_PROTOCOL_1   0
 
#define INTERFACE_STATUS   0x00
 
#define INTERFACE_SUB_CLASS_0   0x02
 
#define INTERFACE_SUB_CLASS_1   0
 
#define LANG_ID   0x00
 
#define LANGUAGE_ID   0x0409
 
#define MAN_INDEX   0x01
 
#define MAX_POWER   50
 
#define NB_CONFIGURATION   1
 
#define NB_ENDPOINT_0   1
 
#define NB_ENDPOINT_1   2
 
#define NB_INTERFACE   2
 
#define PROD_INDEX   0x02
 
#define PRODUCT_ID   CDC_EXAMPLE_PID
 
#define RELEASE_NUMBER   0x1000
 
#define SN_INDEX   0x03
 
#define Usb_get_conf_desc_fs_length()   (sizeof(usb_conf_desc_fs))
 
#define Usb_get_conf_desc_fs_pointer()   (&(usb_conf_desc_fs.cfg.bLength))
 
#define Usb_get_conf_desc_hs_length()   (sizeof(usb_conf_desc_hs))
 
#define Usb_get_conf_desc_hs_pointer()   (&(usb_conf_desc_hs.cfg.bLength))
 
#define Usb_get_conf_desc_length()   (sizeof(usb_conf_desc_fs))
 
#define Usb_get_conf_desc_pointer()   (&(usb_conf_desc_fs.cfg.bLength))
 
#define Usb_get_dev_desc_length()   (sizeof(usb_dev_desc))
 
#define Usb_get_dev_desc_pointer()   (&(usb_dev_desc.bLength))
 
#define Usb_get_qualifier_desc_length()   (sizeof(usb_qualifier_desc))
 
#define Usb_get_qualifier_desc_pointer()   (&(usb_qualifier_desc.bLength))
 
#define USB_MANUFACTURER_NAME
 
#define USB_MN_LENGTH   5
 
#define USB_PN_LENGTH   13
 
#define USB_PRODUCT_NAME
 
#define USB_SERIAL_NUMBER
 
#define USB_SN_LENGTH   13
 
#define USB_SPECIFICATION   0x0200
 
#define Usb_unicode(c)   (Usb_format_mcu_to_usb_data(16, (uint16_t)(c)))
 
#define VENDOR_ID   ATMEL_VID
 

#define ALTERNATE_0   0
#define ALTERNATE_1   0
#define CONF_ATTRIBUTES   USB_CONFIG_SELFPOWERED
#define CONF_INDEX   0
#define CONF_NB   1
#define DEVICE_CLASS   CDC_COMM_DEVICE_CLASS
#define DEVICE_PROTOCOL   0
#define DEVICE_STATUS   SELF_POWERED
#define DEVICE_SUB_CLASS   0
#define ENDPOINT_NB_1   ( TX_EP | MSK_EP_DIR )
#define ENDPOINT_NB_2   RX_EP
#define ENDPOINT_NB_3   ( INT_EP | MSK_EP_DIR )
#define EP_ATTRIBUTES_1   TYPE_BULK

Referenced by usb_user_endpoint_init().

#define EP_ATTRIBUTES_2   TYPE_BULK

Referenced by usb_user_endpoint_init().

#define EP_ATTRIBUTES_3   TYPE_INTERRUPT

Referenced by usb_user_endpoint_init().

#define EP_CONTROL_LENGTH   64
#define EP_IN_LENGTH_1_FS   0x40
#define EP_IN_LENGTH_1_HS   512
#define EP_IN_LENGTH_2_FS   0x40
#define EP_IN_LENGTH_2_HS   512
#define EP_IN_LENGTH_3   0x20
#define EP_INTERVAL_1   0x00
#define EP_INTERVAL_2   0x00
#define EP_INTERVAL_3   0xFF
#define EP_SIZE_1_FS   EP_IN_LENGTH_1_FS

Referenced by usb_user_endpoint_init().

#define EP_SIZE_1_HS   EP_IN_LENGTH_1_HS

Referenced by usb_user_endpoint_init().

#define EP_SIZE_2_FS   EP_IN_LENGTH_2_FS

Referenced by usb_user_endpoint_init().

#define EP_SIZE_2_HS   EP_IN_LENGTH_2_HS

Referenced by usb_user_endpoint_init().

#define EP_SIZE_3   EP_IN_LENGTH_3

Referenced by usb_user_endpoint_init().

#define INTERFACE_CLASS_0   CDC_COMM_CLASS
#define INTERFACE_CLASS_1   CDC_DATA_CLASS
#define INTERFACE_INDEX_0   0
#define INTERFACE_INDEX_1   0
#define INTERFACE_NB_0   0
#define INTERFACE_NB_1   1
#define INTERFACE_PROTOCOL_0   0x01
#define INTERFACE_PROTOCOL_1   0
#define INTERFACE_STATUS   0x00
#define INTERFACE_SUB_CLASS_0   0x02
#define INTERFACE_SUB_CLASS_1   0
#define LANG_ID   0x00
#define LANGUAGE_ID   0x0409
#define MAN_INDEX   0x01
#define MAX_POWER   50
#define NB_CONFIGURATION   1
#define NB_ENDPOINT_0   1
#define NB_ENDPOINT_1   2
#define NB_INTERFACE   2
#define PROD_INDEX   0x02
#define PRODUCT_ID   CDC_EXAMPLE_PID
#define RELEASE_NUMBER   0x1000
#define SN_INDEX   0x03
#define Usb_get_conf_desc_fs_length ( )    (sizeof(usb_conf_desc_fs))
#define Usb_get_conf_desc_fs_pointer ( )    (&(usb_conf_desc_fs.cfg.bLength))
#define Usb_get_conf_desc_hs_length ( )    (sizeof(usb_conf_desc_hs))
#define Usb_get_conf_desc_hs_pointer ( )    (&(usb_conf_desc_hs.cfg.bLength))
#define Usb_get_conf_desc_length ( )    (sizeof(usb_conf_desc_fs))
#define Usb_get_conf_desc_pointer ( )    (&(usb_conf_desc_fs.cfg.bLength))
#define Usb_get_dev_desc_length ( )    (sizeof(usb_dev_desc))
#define Usb_get_dev_desc_pointer ( )    (&(usb_dev_desc.bLength))
#define Usb_get_qualifier_desc_length ( )    (sizeof(usb_qualifier_desc))

Referenced by usb_get_descriptor().

#define Usb_get_qualifier_desc_pointer ( )    (&(usb_qualifier_desc.bLength))

Referenced by usb_get_descriptor().

#define USB_MANUFACTURER_NAME
Value:
{\
}
#define Usb_unicode(c)
Definition: services/usb/_asf_v1/class/cdc/examples/enum/device/usb_descriptors.h:68
#define USB_MN_LENGTH   5
#define USB_PN_LENGTH   13
#define USB_PRODUCT_NAME
Value:
{\
}
#define Usb_unicode(c)
Definition: services/usb/_asf_v1/class/cdc/examples/enum/device/usb_descriptors.h:68
#define USB_SERIAL_NUMBER
Value:
{\
}
#define Usb_unicode(c)
Definition: services/usb/_asf_v1/class/cdc/examples/enum/device/usb_descriptors.h:68
#define USB_SN_LENGTH   13
#define USB_SPECIFICATION   0x0200
#define Usb_unicode (   c)    (Usb_format_mcu_to_usb_data(16, (uint16_t)(c)))
#define VENDOR_ID   ATMEL_VID