Atmel Software Framework

common/services/usb/class/vendor/device/example/conf_usb.h File Reference

USB configuration file.

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

#include "compiler.h"
#include "udi_vendor_conf.h"
#include "ui.h"
#include "main.h"

Macros

#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL
 USB Device Configuration. More...
 
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_ASF_VENDOR_CLASS
 
#define USB_DEVICE_MAJOR_VERSION   1
 
#define USB_DEVICE_MINOR_VERSION   0
 
#define USB_DEVICE_POWER   100
 
#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
 
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL ASF"
 USB Device string definitions (Optional) More...
 
#define USB_DEVICE_PRODUCT_NAME   "Vendor Class Example"
 
#define UDC_VBUS_EVENT(b_vbus_high)
 Device speeds support Low speed not supported by this vendor class. More...
 
#define UDC_SOF_EVENT()   main_sof_action()
 
#define UDC_SUSPEND_EVENT()   main_suspend_action()
 
#define UDC_RESUME_EVENT()   main_resume_action()
 
#define UDI_VENDOR_ENABLE_EXT()   main_vendor_enable()
 Mandatory when USB_DEVICE_ATTR authorizes remote wakeup feature. More...
 
#define UDI_VENDOR_DISABLE_EXT()   main_vendor_disable()
 
#define UDI_VENDOR_SETUP_OUT_RECEIVED()   main_setup_out_received()
 
#define UDI_VENDOR_SETUP_IN_RECEIVED()   main_setup_in_received()
 
#define UDI_VENDOR_EPS_SIZE_INT_FS   64
 endpoints size for full speed Note: Disable the endpoints of a type, if size equal 0 More...
 
#define UDI_VENDOR_EPS_SIZE_BULK_FS   64
 
#define UDI_VENDOR_EPS_SIZE_ISO_FS   256
 
#define UDI_VENDOR_EPS_SIZE_INT_HS   64
 endpoints size for high speed More...
 
#define UDI_VENDOR_EPS_SIZE_BULK_HS   512
 
#define UDI_VENDOR_EPS_SIZE_ISO_HS   64
 
#define UDD_ISOCHRONOUS_NB_BANK(ep)   1
 USB Device Driver Configuration. More...
 

#define UDC_RESUME_EVENT ( )    main_resume_action()
#define UDC_SOF_EVENT ( )    main_sof_action()
#define UDC_SUSPEND_EVENT ( )    main_suspend_action()
#define UDC_VBUS_EVENT (   b_vbus_high)

Device speeds support Low speed not supported by this vendor class.

To authorize the High speed USB Device Callbacks definitions (Optional)

#define UDD_ISOCHRONOUS_NB_BANK (   ep)    1

USB Device Driver Configuration.

Limit the isochronous endpoint in singe bank mode for USBB driver to avoid exceeding USB DPRAM.

#define UDI_VENDOR_DISABLE_EXT ( )    main_vendor_disable()

Referenced by udi_vendor_disable().

#define UDI_VENDOR_ENABLE_EXT ( )    main_vendor_enable()

Mandatory when USB_DEVICE_ATTR authorizes remote wakeup feature.

When a extra string descriptor must be supported other than manufacturer, product and serial string USB Interface Configuration Configuration of vendor interfaceInterface callback definition

Referenced by udi_vendor_enable().

#define UDI_VENDOR_EPS_SIZE_BULK_FS   64
#define UDI_VENDOR_EPS_SIZE_BULK_HS   512
#define UDI_VENDOR_EPS_SIZE_INT_FS   64

endpoints size for full speed Note: Disable the endpoints of a type, if size equal 0

#define UDI_VENDOR_EPS_SIZE_INT_HS   64

endpoints size for high speed

#define UDI_VENDOR_EPS_SIZE_ISO_FS   256
#define UDI_VENDOR_EPS_SIZE_ISO_HS   64
#define UDI_VENDOR_SETUP_IN_RECEIVED ( )    main_setup_in_received()

Referenced by udi_vendor_setup().

#define UDI_VENDOR_SETUP_OUT_RECEIVED ( )    main_setup_out_received()

Referenced by udi_vendor_setup().

#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
#define USB_DEVICE_MAJOR_VERSION   1
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL ASF"

USB Device string definitions (Optional)

#define USB_DEVICE_MINOR_VERSION   0
#define USB_DEVICE_POWER   100
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_ASF_VENDOR_CLASS
#define USB_DEVICE_PRODUCT_NAME   "Vendor Class Example"
#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

USB Device Configuration.

Device definition (mandatory)