Microchip® Advanced Software Framework

common/services/usb/class/hid/dual/mouse/example/conf_usb.h File Reference

USB device configuration file.

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

#include "compiler.h"
#include "udi_hid_mouse_conf.h"
#include "ui.h"

Macros

#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL
 USB Device Configuration. More...
 
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_ASF_HIDMOUSE
 
#define USB_DEVICE_MAJOR_VERSION   1
 
#define USB_DEVICE_MINOR_VERSION   0
 
#define USB_DEVICE_POWER   100
 
#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_REMOTE_WAKEUP|USB_CONFIG_ATTR_SELF_POWERED)
 
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL ASF"
 USB Device string definitions (Optional) More...
 
#define USB_DEVICE_PRODUCT_NAME   "HID Mouse"
 
#define UDC_VBUS_EVENT(b_vbus_high)
 Device speeds support. More...
 
#define UDC_SOF_EVENT()   ui_device_sof_action()
 
#define UDC_SUSPEND_EVENT()   ui_device_suspend_action()
 
#define UDC_RESUME_EVENT()   ui_device_resume_action()
 
#define UDC_REMOTEWAKEUP_ENABLE()   ui_device_remotewakeup_enable()
 Mandatory when USB_DEVICE_ATTR authorizes remote wakeup feature. More...
 
#define UDC_REMOTEWAKEUP_DISABLE()   ui_device_remotewakeup_disable()
 
#define UDI_HID_MOUSE_ENABLE_EXT()   ui_device_mouse_enable()
 When a extra string descriptor must be supported other than manufacturer, product and serial string. More...
 
#define UDI_HID_MOUSE_DISABLE_EXT()   ui_device_mouse_disable()
 

#define UDC_REMOTEWAKEUP_DISABLE ( )    ui_device_remotewakeup_disable()
#define UDC_REMOTEWAKEUP_ENABLE ( )    ui_device_remotewakeup_enable()

Mandatory when USB_DEVICE_ATTR authorizes remote wakeup feature.

Referenced by udc_req_std_dev_set_feature().

#define UDC_RESUME_EVENT ( )    ui_device_resume_action()

Referenced by _usb_on_wakeup().

#define UDC_SOF_EVENT ( )    ui_device_sof_action()

Referenced by _usb_on_sof_notify().

#define UDC_SUSPEND_EVENT ( )    ui_device_suspend_action()

Referenced by _usb_on_suspend().

#define UDC_VBUS_EVENT (   b_vbus_high)

Device speeds support.

To define a Low speed device To authorize the High speed USB Device Callbacks definitions (Optional)

Referenced by _uhd_vbus_handler().

#define UDI_HID_MOUSE_DISABLE_EXT ( )    ui_device_mouse_disable()

Referenced by udi_hid_mouse_disable().

#define UDI_HID_MOUSE_ENABLE_EXT ( )    ui_device_mouse_enable()

When a extra string descriptor must be supported other than manufacturer, product and serial string.

USB Interface Configuration Configuration of HID Mouse interfaceInterface callback definition

Referenced by udi_hid_mouse_enable().

#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_HIDMOUSE
#define USB_DEVICE_PRODUCT_NAME   "HID Mouse"
#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

USB Device Configuration.

Device definition (mandatory)