USB configuration file.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | USB_DEVICE_VENDOR_ID USB_VID_ATMEL |
USB Device Configuration. More... | |
#define | USB_DEVICE_PRODUCT_ID 0x2437 |
#define | USB_DEVICE_MAJOR_VERSION 1 |
#define | USB_DEVICE_MINOR_VERSION 0 |
#define | USB_DEVICE_POWER |
#define | USB_DEVICE_ATTR (USB_CONFIG_ATTR_REMOTE_WAKEUP | USB_CONFIG_ATTR_SELF_POWERED) |
#define | USB_DEVICE_MANUFACTURE_NAME "ATMEL ASF" |
#define | USB_DEVICE_PRODUCT_NAME "HID Gamepad" |
#define | USB_DEVICE_SERIAL_NAME "123123123123" /* Disk SN for MSC */ |
#define | USB_DEVICE_LOW_SPEED |
Device speeds support. More... | |
#define | USB_DEVICE_HS_SUPPORT |
#define | UDC_VBUS_EVENT(b_vbus_high) |
USB Device Callbacks definitions (Optional) More... | |
#define | UDC_SOF_EVENT() |
#define | UDC_SUSPEND_EVENT() |
#define | UDC_RESUME_EVENT() |
#define | UDC_REMOTEWAKEUP_ENABLE() |
#define | UDC_REMOTEWAKEUP_DISABLE() |
#define | USB_DEVICE_EP_CTRL_SIZE 8 |
USB Device low level configuration When only one interface is used, these configurations are defined by the class module. More... | |
#define | USB_DEVICE_NB_INTERFACE 1 |
#define | USB_DEVICE_MAX_EP 1 |
#define | UDD_BULK_NB_BANK(ep) ((ep == 5 || ep == 6) ? 1 : 2) |
#define | UDI_HID_GPD_ENABLE_EXT() main_kbd_enable() |
USB Interface Configuration. More... | |
#define | UDI_HID_GPD_DISABLE_EXT() main_kbd_disable() |
#define | UDI_HID_GPD_CHANGE_LED(value) |
#define | UDI_HID_GPD_EP_IN (1 | USB_EP_DIR_IN) |
USB HID Keyboard low level configuration In standalone these configurations are defined by the HID Keyboard module. More... | |
#define | UDI_HID_GPD_IFACE_NUMBER 0 |
#define | UDI_COMPOSITE_DESC_T udi_hid_gpd_desc_t udi_hid_gpd |
Description of Composite Device. More... | |
#define | UDI_COMPOSITE_DESC_FS .udi_hid_gpd = UDI_HID_GPD_DESC |
#define | UDI_COMPOSITE_DESC_HS .udi_hid_gpd = UDI_HID_GPD_DESC |
#define | UDI_COMPOSITE_API & udi_api_hid_gpd |
#define UDC_REMOTEWAKEUP_DISABLE | ( | ) |
Referenced by udc_req_std_dev_clear_feature(), and udc_reset().
#define UDC_REMOTEWAKEUP_ENABLE | ( | ) |
Referenced by udc_req_std_dev_set_feature().
#define UDC_RESUME_EVENT | ( | ) |
Referenced by ISR().
#define UDC_SOF_EVENT | ( | ) |
Referenced by ISR().
#define UDC_SUSPEND_EVENT | ( | ) |
Referenced by ISR().
#define UDC_VBUS_EVENT | ( | b_vbus_high | ) |
USB Device Callbacks definitions (Optional)
#define UDD_BULK_NB_BANK | ( | ep | ) | ((ep == 5 || ep == 6) ? 1 : 2) |
#define UDI_COMPOSITE_API & udi_api_hid_gpd |
#define UDI_COMPOSITE_DESC_FS .udi_hid_gpd = UDI_HID_GPD_DESC |
#define UDI_COMPOSITE_DESC_HS .udi_hid_gpd = UDI_HID_GPD_DESC |
#define UDI_COMPOSITE_DESC_T udi_hid_gpd_desc_t udi_hid_gpd |
Description of Composite Device.
#define UDI_HID_GPD_CHANGE_LED | ( | value | ) |
Referenced by udi_hid_gpd_setreport_valid().
#define UDI_HID_GPD_DISABLE_EXT | ( | ) | main_kbd_disable() |
Referenced by udi_hid_gpd_disable().
#define UDI_HID_GPD_ENABLE_EXT | ( | ) | main_kbd_enable() |
USB Interface Configuration.
Configuration of HID Keyboard interface
Referenced by udi_hid_gpd_enable().
#define UDI_HID_GPD_EP_IN (1 | USB_EP_DIR_IN) |
USB HID Keyboard low level configuration In standalone these configurations are defined by the HID Keyboard module.
For composite device, these configuration must be defined here
Referenced by udi_hid_gpd_send_report().
#define UDI_HID_GPD_IFACE_NUMBER 0 |
#define USB_DEVICE_ATTR (USB_CONFIG_ATTR_REMOTE_WAKEUP | USB_CONFIG_ATTR_SELF_POWERED) |
#define USB_DEVICE_EP_CTRL_SIZE 8 |
USB Device low level configuration When only one interface is used, these configurations are defined by the class module.
For composite device, these configuration must be defined here
Referenced by ISR(), udd_ctrl_in_sent(), and udd_ctrl_out_received().
#define USB_DEVICE_HS_SUPPORT |
#define USB_DEVICE_LOW_SPEED |
Device speeds support.
#define USB_DEVICE_MAJOR_VERSION 1 |
#define USB_DEVICE_MANUFACTURE_NAME "ATMEL ASF" |
#define USB_DEVICE_MAX_EP 1 |
Referenced by ISR(), udd_enable(), and udd_ep_is_valid().
#define USB_DEVICE_MINOR_VERSION 0 |
#define USB_DEVICE_NB_INTERFACE 1 |
#define USB_DEVICE_POWER |
#define USB_DEVICE_PRODUCT_ID 0x2437 |
#define USB_DEVICE_PRODUCT_NAME "HID Gamepad" |
#define USB_DEVICE_SERIAL_NAME "123123123123" /* Disk SN for MSC */ |
Referenced by udc_get_string_serial_name().
#define USB_DEVICE_VENDOR_ID USB_VID_ATMEL |
USB Device Configuration.