GD32F10x USB-Device
V1.0.0
GD32F10x USB-Device
|
USBD_Enumeration_Exported_Functions
Functions | |
uint8_t | USBD_StdReq (USB_DEVICE_HANDLE *pudev, USB_DEVICE_REQ *req) |
Handle usb standard device request. More... | |
uint8_t | USBD_DevClsReq (USB_DEVICE_HANDLE *pudev, USB_DEVICE_REQ *req) |
Handle device class request. More... | |
uint8_t | USBD_VdrDefReq (USB_DEVICE_HANDLE *pudev, USB_DEVICE_REQ *req) |
Handle usb vendor request. More... | |
void | USBD_ParseSetupRequest (USB_DEVICE_HANDLE *pudev, USB_DEVICE_REQ *req) |
Decode setup data packet. More... | |
void | USBD_EnumError (USB_DEVICE_HANDLE *pudev, USB_DEVICE_REQ *req) |
Handle usb enumeration error event. More... | |
void | USBD_GetUnicodeString (uint8_t *desc, uint8_t *unicode, uint16_t *len) |
Convert normal string into unicode one. More... | |
Detailed Description
Function Documentation
uint8_t USBD_DevClsReq | ( | USB_DEVICE_HANDLE * | pudev, |
USB_DEVICE_REQ * | req | ||
) |
Handle device class request.
- Parameters
-
pudev pointer to usb device instance req usb device class request
- Return values
-
usb device operation status
Definition at line 92 of file usbd_enum.c.
void USBD_EnumError | ( | USB_CORE_HANDLE * | pudev, |
USB_DEVICE_REQ * | req | ||
) |
Handle usb enumeration error event.
- Parameters
-
pudev pointer to usb device instance req usb device request
- Return values
-
None
Definition at line 749 of file usbd_enum.c.
void USBD_GetUnicodeString | ( | uint8_t * | desc, |
uint8_t * | unicode, | ||
uint16_t * | len | ||
) |
Convert normal string into unicode one.
- Parameters
-
desc descriptor string pointer unicode formatted string (unicode) len descriptor length pointer
- Return values
-
None
Definition at line 762 of file usbd_enum.c.
void USBD_ParseSetupRequest | ( | USB_CORE_HANDLE * | pudev, |
USB_DEVICE_REQ * | req | ||
) |
Decode setup data packet.
- Parameters
-
pudev pointer to usb device instance req usb device request
- Return values
-
None
Definition at line 731 of file usbd_enum.c.
uint8_t USBD_StdReq | ( | USB_DEVICE_HANDLE * | pudev, |
USB_DEVICE_REQ * | req | ||
) |
Handle usb standard device request.
- Parameters
-
pudev pointer to usb device instance req USB device request
- Return values
-
usb device operation status
Definition at line 78 of file usbd_enum.c.
uint8_t USBD_VdrDefReq | ( | USB_DEVICE_HANDLE * | pudev, |
USB_DEVICE_REQ * | req | ||
) |
Handle usb vendor request.
- Parameters
-
pudev pointer to usb device instance req usb vendor request
- Return values
-
usb device operation status
Definition at line 130 of file usbd_enum.c.
Generated on Fri Feb 6 2015 14:56:36 for GD32F10x USB-Device by 1.8.8