The following structures provide the USB device descriptors required for USB Device with a single interface MSC.
It is ready to use and do not require more definition.
Data Structures | |
struct | udc_desc_t |
Structure for USB Device Configuration Descriptor. More... | |
Macros | |
#define | UDI_MSC_EP_IN (1 | USB_EP_DIR_IN) |
Endpoint numbers used by MSC interface. More... | |
#define | UDI_MSC_EP_OUT (2 | USB_EP_DIR_OUT) |
#define | UDI_MSC_IFACE_NUMBER 0 |
Interface number is 0 because it is the unique interface. More... | |
#define | USB_DEVICE_EP_CTRL_SIZE 64 |
Control endpoint size. More... | |
#define | USB_DEVICE_NB_INTERFACE 1 |
Only one interface for this device. More... | |
Variables | |
UDC_DESC_STORAGE udc_desc_t | udc_desc_fs |
USB Device Configuration Descriptor filled for FS. More... | |
UDC_DESC_STORAGE udc_desc_t | udc_desc_hs |
USB Device Configuration Descriptor filled for HS. More... | |
UDC_DESC_STORAGE usb_dev_desc_t | udc_device_desc |
USB Device Descriptor. More... | |
UDC_DESC_STORAGE usb_dev_qual_desc_t | udc_device_qual |
USB Device Qualifier Descriptor for HS. More... | |
UDC structures which contains all USB Device definitions | |
UDC_DESC_STORAGE udi_api_t * | udi_apis [USB_DEVICE_NB_INTERFACE] |
Associate an UDI for each USB interface. More... | |
UDC_DESC_STORAGE udc_config_speed_t | udc_config_lsfs [1] |
Add UDI with USB Descriptors FS. More... | |
UDC_DESC_STORAGE udc_config_speed_t | udc_config_hs [1] |
Add UDI with USB Descriptors HS. More... | |
UDC_DESC_STORAGE udc_config_t | udc_config |
Add all information about USB Device in global structure for UDC. More... | |
UDD Configuration | |
#define | USB_DEVICE_MAX_EP 2 |
2 endpoints used by MSC interface More... | |
#define UDI_MSC_EP_IN (1 | USB_EP_DIR_IN) |
Endpoint numbers used by MSC interface.
Referenced by udi_msc_csw_invalid(), udi_msc_csw_process(), udi_msc_csw_send(), udi_msc_data_send(), udi_msc_setup(), and udi_msc_trans_block().
#define UDI_MSC_EP_OUT (2 | USB_EP_DIR_OUT) |
Referenced by udi_msc_cbw_invalid(), udi_msc_cbw_wait(), udi_msc_csw_process(), udi_msc_setup(), and udi_msc_trans_block().
#define UDI_MSC_IFACE_NUMBER 0 |
Interface number is 0 because it is the unique interface.
#define USB_DEVICE_EP_CTRL_SIZE 64 |
Control endpoint size.
Referenced by udd_ctrl_in_sent().
#define USB_DEVICE_MAX_EP 2 |
2 endpoints used by MSC interface
Referenced by udd_enable(), and udd_ep_interrupt().
#define USB_DEVICE_NB_INTERFACE 1 |
Only one interface for this device.
UDC_DESC_STORAGE udc_config_t udc_config |
Add all information about USB Device in global structure for UDC.
Global variables of USB Device Descriptor and UDI links.
Referenced by udc_req_std_dev_get_descriptor(), and udc_req_std_dev_set_configuration().
UDC_DESC_STORAGE udc_config_speed_t udc_config_hs[1] |
Add UDI with USB Descriptors HS.
UDC_DESC_STORAGE udc_config_speed_t udc_config_lsfs[1] |
Add UDI with USB Descriptors FS.
UDC_DESC_STORAGE udc_desc_t udc_desc_fs |
USB Device Configuration Descriptor filled for FS.
UDC_DESC_STORAGE udc_desc_t udc_desc_hs |
USB Device Configuration Descriptor filled for HS.
UDC_DESC_STORAGE usb_dev_desc_t udc_device_desc |
USB Device Descriptor.
UDC_DESC_STORAGE usb_dev_qual_desc_t udc_device_qual |
USB Device Qualifier Descriptor for HS.
UDC_DESC_STORAGE udi_api_t* udi_apis[USB_DEVICE_NB_INTERFACE] |
Associate an UDI for each USB interface.