Microchip® Advanced Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
USB device descriptors for a single interface

The following structures provide the USB device descriptors required for USB Device with a single interface DFU Atmel Class.

It is ready to use and do not require more definition.

Data Structures

struct  udc_desc_t
 Structure for USB Device Configuration Descriptor. More...
 

Macros

#define UDI_DFU_ATMEL_IFACE_NUMBER   0
 Interface number. More...
 
#define USB_DEVICE_EP_CTRL_SIZE   64
 Control endpoint size. More...
 
#define USB_DEVICE_NB_INTERFACE   1
 Only one interface for this device. More...
 

Variables

COMPILER_WORD_ALIGNED
UDC_DESC_STORAGE udc_desc_t 
udc_desc_fs
 USB Device Configuration Descriptor filled for FS. More...
 
COMPILER_WORD_ALIGNED
UDC_DESC_STORAGE
usb_dev_desc_t 
udc_device_desc
 USB Device Descriptor. More...
 

UDC structures which contains all USB Device definitions

UDC_DESC_STORAGE udi_api_tudi_apis [USB_DEVICE_NB_INTERFACE]
 Associate an UDI for each USB interface. More...
 
UDC_DESC_STORAGE udc_config_speed_t udc_config_lsfs [1]
 Add UDI with USB Descriptors FS. More...
 
UDC_DESC_STORAGE udc_config_t udc_config
 Add all information about USB Device in global structure for UDC. More...
 

UDD Configuration

#define USB_DEVICE_MAX_EP   0
 0 endpoints used by DFU interface More...
 

#define UDI_DFU_ATMEL_IFACE_NUMBER   0

Interface number.

#define USB_DEVICE_EP_CTRL_SIZE   64

Control endpoint size.

#define USB_DEVICE_MAX_EP   0

0 endpoints used by DFU interface

#define USB_DEVICE_NB_INTERFACE   1

Only one interface for this device.

Initial value:
= {
.confdev_lsfs = &udc_device_desc,
.conf_lsfs = udc_config_lsfs,
}
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE usb_dev_desc_t udc_device_desc
USB Device Descriptor.
Definition: udi_hid_multitouch_desc.c:61
UDC_DESC_STORAGE udc_config_speed_t udc_config_lsfs[1]
Add UDI with USB Descriptors FS.
Definition: udi_vendor_desc.c:155

Add all information about USB Device in global structure for UDC.

Global variables of USB Device Descriptor and UDI links.

Initial value:
= {{
}}
Standard USB configuration descriptor structure.
Definition: usb_protocol.h:410
UDC_DESC_STORAGE udc_desc_t udc_desc_fs
USB Device Configuration Descriptor filled for FS.
Definition: udi_vendor_desc.c:115
UDC_DESC_STORAGE udi_api_t * udi_apis[USB_DEVICE_NB_INTERFACE]
Associate an UDI for each USB interface.
Definition: udi_hid_multitouch_desc.c:136
#define UDC_DESC_STORAGE
Defines the memory's location of USB descriptors.
Definition: udc_desc.h:70

Add UDI with USB Descriptors FS.

Initial value:
= {
.conf.bLength = sizeof(usb_conf_desc_t),
.conf.bDescriptorType = USB_DT_CONFIGURATION,
.conf.wTotalLength = LE16(sizeof(udc_desc_t)),
.conf.bNumInterfaces = USB_DEVICE_NB_INTERFACE,
.conf.bConfigurationValue = 1,
.conf.iConfiguration = 0,
.conf.bmAttributes = USB_CONFIG_ATTR_MUST_SET | USB_DEVICE_ATTR,
.udi_dfu_atmel = UDI_DFU_ATMEL_DESC,
}
Definition: usb_protocol.h:191
#define USB_DEVICE_POWER
Definition: dfu_flip/device/bootloader/avr32/conf/conf_usb.h:90
#define USB_CONFIG_ATTR_MUST_SET
Must always be set.
Definition: usb_protocol.h:422
#define LE16(x)
Definition: compiler.h:1105
Standard USB configuration descriptor structure.
Definition: usb_protocol.h:410
#define UDI_DFU_ATMEL_DESC
Content of DFU interface descriptor for Full Speed.
Definition: udi_dfu_atmel.h:79
#define USB_DEVICE_ATTR
Definition: dfu_flip/device/bootloader/avr32/conf/conf_usb.h:92
#define USB_DEVICE_NB_INTERFACE
Only one interface for this device.
Definition: udi_dfu_atmel_desc.c:54
#define USB_CONFIG_MAX_POWER(ma)
Max power in mA.
Definition: usb_protocol.h:427
Structure for USB Device Configuration Descriptor.
Definition: udi_hid_multitouch_desc.c:109

USB Device Configuration Descriptor filled for FS.

Initial value:
= {
.bLength = sizeof(usb_dev_desc_t),
.bDescriptorType = USB_DT_DEVICE,
.bcdUSB = LE16(USB_V2_0),
.bDeviceClass = NO_CLASS,
.bDeviceSubClass = NO_SUBCLASS,
.bDeviceProtocol = NO_PROTOCOL,
.bMaxPacketSize0 = USB_DEVICE_EP_CTRL_SIZE,
.idVendor = LE16(USB_DEVICE_VENDOR_ID),
.idProduct = LE16(USB_DEVICE_PRODUCT_ID),
.bcdDevice = LE16((USB_DEVICE_MAJOR_VERSION << 8)
.iManufacturer = 0,
.iProduct = 0,
.iSerialNumber = 0,
.bNumConfigurations = 1
}
#define USB_V2_0
Value for field bcdUSB.
Definition: usb_protocol.h:56
#define USB_DEVICE_MAJOR_VERSION
Definition: dfu_flip/device/bootloader/avr32/conf/conf_usb.h:88
#define NO_CLASS
Definition: usb_protocol.h:62
#define NO_SUBCLASS
Definition: usb_protocol.h:64
Standard USB device descriptor structure.
Definition: usb_protocol.h:313
#define LE16(x)
Definition: compiler.h:1105
Definition: usb_protocol.h:190
#define NO_PROTOCOL
Definition: usb_protocol.h:65
#define USB_DEVICE_MINOR_VERSION
Definition: dfu_flip/device/bootloader/avr32/conf/conf_usb.h:89
#define USB_DEVICE_VENDOR_ID
USB Device Configuration.
Definition: dfu_flip/device/bootloader/avr32/conf/conf_usb.h:65
#define USB_DEVICE_EP_CTRL_SIZE
Control endpoint size.
Definition: udi_hid_multitouch_conf.h:54
#define USB_DEVICE_PRODUCT_ID
Definition: cdc/device/unit_tests/conf_usb.h:49

USB Device Descriptor.

Pointer on the selected speed device configuration.

Initial value:
= {
}
UDC_DESC_STORAGE udi_api_t udi_api_dfu_atmel
Global structure which contains standard UDI interface for UDC.
Definition: udi_dfu_atmel.c:71

Associate an UDI for each USB interface.