42 #define USB_DEVICE_DESCRIPTOR_TYPE 0x01 43 #define USB_CONFIGURATION_DESCRIPTOR_TYPE 0x02 44 #define USB_STRING_DESCRIPTOR_TYPE 0x03 45 #define USB_INTERFACE_DESCRIPTOR_TYPE 0x04 46 #define USB_ENDPOINT_DESCRIPTOR_TYPE 0x05 47 #define USB_SIZ_DEVICE_DESC 18 48 #define USB_SIZ_STRING_LANGID 4 112 #ifdef USB_SUPPORT_USER_STRING_DESC 113 uint8_t * USBD_USR_USRStringDesc (uint8_t speed, uint8_t idx , uint16_t *length);
uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC]
uint8_t * USBD_USR_DeviceDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_DeviceDescriptor return the device descriptor.
#define USB_LEN_DEV_QUALIFIER_DESC
uint8_t * USBD_USR_InterfaceStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_InterfaceStrDescriptor return the interface string descriptor.
uint8_t * USBD_MSC_LangIDStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t USBD_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC]
uint8_t USBD_LangIDDesc_MSC[USB_SIZ_STRING_LANGID]
uint8_t * USBD_USR_ConfigStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ConfigStrDescriptor return the configuration string descriptor.
uint8_t USBD_LangIDDesc[USB_SIZ_STRING_LANGID]
uint8_t USBD_OtherSpeedCfgDesc[USB_LEN_CFG_DESC]
uint8_t * USBD_USR_LangIDStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_LangIDStrDescriptor return the LangID string descriptor.
uint8_t USBD_StrDesc_MSC[USB_MAX_STR_DESC_SIZ]
uint8_t USBD_StrDesc[USB_MAX_STR_DESC_SIZ]
#define USB_MAX_STR_DESC_SIZ
#define USB_SIZ_DEVICE_DESC
uint8_t * USBD_MSC_InterfaceStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_MSC_ConfigStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t USBD_OtherSpeedCfgDesc_MSC[USB_LEN_CFG_DESC]
uint8_t * USBD_MSC_SerialStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_MSC_ManufacturerStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_USR_ProductStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ProductStrDescriptor return the product string descriptor.
uint8_t USBD_DeviceQualifierDesc_MSC[USB_LEN_DEV_QUALIFIER_DESC]
#define USB_SIZ_STRING_LANGID
uint8_t * USBD_USR_SerialStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_SerialStrDescriptor return the serial number string descriptor.
uint8_t * USBD_MSC_ProductStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_MSC_DeviceDescriptor(uint8_t speed, uint16_t *length)
general defines for the usb device library
uint8_t USBD_DeviceDesc_MSC[USB_SIZ_DEVICE_DESC]
uint8_t * USBD_USR_ManufacturerStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ManufacturerStrDescriptor return the manufacturer string descriptor.