The following structures provide the USB device descriptors required for USB Device with a single interface PHDC.
It is ready to use and do not require more definition.
#define UDI_PHDC_EP_SIZE_BULK_IN 32 |
#define UDI_PHDC_EP_SIZE_BULK_OUT 32 |
#define UDI_PHDC_EP_SIZE_INT_IN 8 |
#define UDI_PHDC_IFACE_NUMBER 0 |
#define USB_DEVICE_EP_CTRL_SIZE 32 /* 8 is not supported by PHDC */ |
#define USB_DEVICE_MAX_EP 3 |
#define USB_DEVICE_NB_INTERFACE 1 |
Initial value:= {
}
UDC_DESC_STORAGE udc_config_speed_t udc_config_fshs[1]
Definition: udi_phdc_desc.c:133
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE usb_dev_desc_t udc_device_desc
Definition: udi_phdc_desc.c:56
Global variables of USB Device Descriptor and UDI links.
Referenced by udc_req_std_dev_get_descriptor(), and udc_req_std_dev_set_configuration().
Initial value:= { {
} }
Standard USB configuration descriptor structure.
Definition: usb_protocol.h:410
UDC_DESC_STORAGE udi_api_t * udi_apis[USB_DEVICE_NB_INTERFACE]
Definition: udi_phdc_desc.c:128
#define UDC_DESC_STORAGE
Defines the memory's location of USB descriptors.
Definition: udc_desc.h:70
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE udc_desc_t udc_desc
Definition: udi_phdc_desc.c:109
Initial value:= {
.conf.bConfigurationValue = 1,
.conf.iConfiguration = 0,
}
Definition: usb_protocol.h:191
#define USB_DEVICE_ATTR
Definition: conf_usb.h:53
#define USB_CONFIG_ATTR_MUST_SET
Must always be set.
Definition: usb_protocol.h:422
Standard USB configuration descriptor structure.
Definition: usb_protocol.h:410
#define USB_DEVICE_POWER
Definition: conf_usb.h:52
#define UDI_PHDC_DESC
Definition: udi_phdc.h:248
#define USB_CONFIG_MAX_POWER(ma)
Max power in mA.
Definition: usb_protocol.h:427
#define LE16(x)
Definition: compiler.h:773
#define USB_DEVICE_NB_INTERFACE
Definition: udi_phdc_desc.c:53
Definition: udi_phdc_desc.c:102
Initial value:= {
.bDeviceClass = 0,
.bDeviceSubClass = 0,
.bDeviceProtocol = 0,
.iManufacturer = 1,
.iProduct = 2,
.iSerialNumber = 0,
.bNumConfigurations = 1
}
#define USB_V2_0
Value for field bcdUSB.
Definition: usb_protocol.h:56
Standard USB device descriptor structure.
Definition: usb_protocol.h:313
#define USB_DEVICE_MAJOR_VERSION
Definition: conf_usb.h:50
#define USB_DEVICE_VENDOR_ID
USB Device Configuration.
Definition: conf_usb.h:48
Definition: usb_protocol.h:190
#define USB_DEVICE_MINOR_VERSION
Definition: conf_usb.h:51
#define USB_DEVICE_EP_CTRL_SIZE
Definition: udi_phdc_conf.h:46
#define LE16(x)
Definition: compiler.h:773
#define USB_DEVICE_PRODUCT_ID
Definition: conf_usb.h:49
Initial value:= {
}
UDC_DESC_STORAGE udi_api_t udi_api_phdc
Definition: udi_phdc.c:63