Microchip® Advanced Software Framework

conf_usb.h File Reference

USB configuration file.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "udi_msc_conf.h"
#include "unit_tests.h"

Macros

#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL
 USB Device Configuration. More...
 
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_ASF_MSC
 
#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   "MSC"
 
#define USB_DEVICE_SERIAL_NAME   "123123123123"
 
#define USB_DEVICE_HS_SUPPORT
 Device speeds support Low speed not supported by MSC. More...
 
#define UDC_VBUS_EVENT(b_vbus_high)   main_vbus_action(b_vbus_high)
 USB Device Callbacks definitions (Optional) More...
 
#define UDC_SOF_EVENT()   main_sof_action()
 
#define UDC_SUSPEND_EVENT()   main_suspend_action()
 
#define UDC_RESUME_EVENT()   main_resume_action()
 
#define UDI_MSC_GLOBAL_VENDOR_ID   'A', 'T', 'M', 'E', 'L', ' ', ' ', ' '
 Mandatory when USB_DEVICE_ATTR authorizes remote wakeup feature. More...
 
#define UDI_MSC_GLOBAL_PRODUCT_VERSION   '1', '.', '0', '0'
 
#define UDI_MSC_ENABLE_EXT()   main_msc_enable()
 Interface callback definition. More...
 
#define UDI_MSC_DISABLE_EXT()   main_msc_disable()
 

#define UDC_RESUME_EVENT ( )    main_resume_action()

Referenced by _usb_on_wakeup().

#define UDC_SOF_EVENT ( )    main_sof_action()

Referenced by _usb_on_sof_notify().

#define UDC_SUSPEND_EVENT ( )    main_suspend_action()

Referenced by _usb_on_suspend().

#define UDC_VBUS_EVENT (   b_vbus_high)    main_vbus_action(b_vbus_high)

USB Device Callbacks definitions (Optional)

Referenced by _uhd_vbus_handler().

#define UDI_MSC_DISABLE_EXT ( )    main_msc_disable()

Referenced by udi_msc_disable().

#define UDI_MSC_ENABLE_EXT ( )    main_msc_enable()

Interface callback definition.

#define UDI_MSC_GLOBAL_PRODUCT_VERSION   '1', '.', '0', '0'

Referenced by udi_msc_spc_inquiry().

#define UDI_MSC_GLOBAL_VENDOR_ID   'A', 'T', 'M', 'E', 'L', ' ', ' ', ' '

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 MSC interfaceVendor name and Product version of MSC interface

Referenced by udi_msc_spc_inquiry().

#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
#define USB_DEVICE_HS_SUPPORT

Device speeds support Low speed not supported by MSC.

To authorize the High speed

#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_MSC
#define USB_DEVICE_PRODUCT_NAME   "MSC"
#define USB_DEVICE_SERIAL_NAME   "123123123123"
#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

USB Device Configuration.

Device definition (mandatory)