Microchip® Advanced Software Framework

phdc/device/example/conf_usb.h File Reference

USB configuration file.

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

#include "compiler.h"
#include "udi_phdc_conf.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_PHDC
 
#define USB_DEVICE_MAJOR_VERSION   1
 
#define USB_DEVICE_MINOR_VERSION   0
 
#define USB_DEVICE_POWER   100 /* Consumption on Vbus line (mA) */
 
#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
 
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL AVR"
 
#define USB_DEVICE_PRODUCT_NAME   "PHDC"
 
#define UDC_VBUS_EVENT(b_vbus_high)
 Device speeds support Low speed is not authorized. More...
 
#define UDC_SOF_EVENT()   main_sof_action()
 
#define UDC_SUSPEND_EVENT()   main_suspend_action()
 
#define UDC_RESUME_EVENT()   main_resume_action()
 
#define UDI_PHDC_ENABLE_EXT()   main_phdc_enable()
 USB Interface Configuration. More...
 
#define UDI_PHDC_DISABLE_EXT()   main_phdc_disable()
 
#define UDI_PHDC_DATAMSG_FORMAT   USB_PHDC_DATAMSG_FORMAT_11073_20601
 
#define UDI_PHDC_SPECIALIZATION   {0x1011}
 
#define UDI_PHDC_QOS_OUT   (USB_PHDC_QOS_MEDIUM_BEST)
 
#define UDI_PHDC_QOS_IN   (USB_PHDC_QOS_MEDIUM_BEST)
 

#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 is not authorized.

USB Device Callbacks definitions (Optional)

#define UDI_PHDC_DATAMSG_FORMAT   USB_PHDC_DATAMSG_FORMAT_11073_20601
#define UDI_PHDC_DISABLE_EXT ( )    main_phdc_disable()

Referenced by udi_phdc_disable().

#define UDI_PHDC_ENABLE_EXT ( )    main_phdc_enable()

USB Interface Configuration.

Configuration of PHDC interface

Referenced by udi_phdc_enable().

#define UDI_PHDC_QOS_IN   (USB_PHDC_QOS_MEDIUM_BEST)

Referenced by udi_phdc_senddata().

#define UDI_PHDC_QOS_OUT   (USB_PHDC_QOS_MEDIUM_BEST)
#define UDI_PHDC_SPECIALIZATION   {0x1011}
#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
#define USB_DEVICE_MAJOR_VERSION   1
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL AVR"
#define USB_DEVICE_MINOR_VERSION   0
#define USB_DEVICE_POWER   100 /* Consumption on Vbus line (mA) */
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_ASF_PHDC
#define USB_DEVICE_PRODUCT_NAME   "PHDC"
#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

USB Device Configuration.