GD32F10x USB-Device
V1.0.0
GD32F10x USB-Device
|
USBD_Core_Exported_Functions
Functions | |
void | USBD_Init (USB_DEVICE_HANDLE *pudev, USBD_Desc_cb_TypeDef *device_desc, USBD_Class_cb_TypeDef *class_cb, USBD_User_cb_TypeDef *user_cb) |
Initialize usb device stack. More... | |
void | USBD_Connect (USB_DEVICE_HANDLE *pudev) |
Configure usb device to be connected. More... | |
void | USBD_Disconnect (USB_DEVICE_HANDLE *pudev) |
Configure usb device to be unconnected. More... | |
uint8_t | USBD_SetupStage (USB_DEVICE_HANDLE *pudev) |
Usb setup stage processing. More... | |
uint8_t | USBD_DataOutStage (USB_DEVICE_HANDLE *pudev, uint8_t EpID) |
Data out stage processing. More... | |
uint8_t | USBD_DataInStage (USB_DEVICE_HANDLE *pudev, uint8_t EpID) |
Data in stage processing. More... | |
USBD_Status | USBD_DeInit (USB_DEVICE_HANDLE *pudev) |
De-Initialize USB device stack. More... | |
USBD_Status | USBD_ClrCfg (USB_DEVICE_HANDLE *pudev, uint8_t ConfigIndex) |
Clear current configuration. More... | |
USBD_Status | USBD_SetCfg (USB_DEVICE_HANDLE *pudev, uint8_t ConfigIndex) |
Device configuration and interface setting. More... | |
Detailed Description
Function Documentation
USBD_Status USBD_ClrCfg | ( | USB_DEVICE_HANDLE * | pudev, |
uint8_t | ConfigIndex | ||
) |
Clear current configuration.
- Parameters
-
pudev pointer to usb device instance ConfigIndex configuration index
- Return values
-
usb device operation status
Definition at line 279 of file usbd_core.c.
void USBD_Connect | ( | USB_DEVICE_HANDLE * | pudev | ) |
Configure usb device to be connected.
- Parameters
-
pudev pointer to usb device instance
- Return values
-
None
Definition at line 38 of file usbd_core.c.
uint8_t USBD_DataInStage | ( | USB_DEVICE_HANDLE * | pudev, |
uint8_t | EpID | ||
) |
Data in stage processing.
- Parameters
-
pudev pointer to usb device instance EpID endpoint identifier
- Return values
-
usb device operation status
Definition at line 195 of file usbd_core.c.
uint8_t USBD_DataOutStage | ( | USB_DEVICE_HANDLE * | pudev, |
uint8_t | EpID | ||
) |
Data out stage processing.
- Parameters
-
pudev pointer to usb device instance EpID endpoint identifier
- Return values
-
usb device operation status
Definition at line 143 of file usbd_core.c.
USBD_Status USBD_DeInit | ( | USB_DEVICE_HANDLE * | pudev | ) |
De-Initialize USB device stack.
- Parameters
-
pudev pointer to usb device instance
- Return values
-
usb device operation status
Definition at line 97 of file usbd_core.c.
void USBD_Disconnect | ( | USB_DEVICE_HANDLE * | pudev | ) |
Configure usb device to be unconnected.
- Parameters
-
pudev pointer to usb device instance
- Return values
-
None
Definition at line 49 of file usbd_core.c.
void USBD_Init | ( | USB_DEVICE_HANDLE * | pudev, |
USBD_Desc_cb_TypeDef * | device_desc, | ||
USBD_Class_cb_TypeDef * | class_cb, | ||
USBD_User_cb_TypeDef * | user_cb | ||
) |
Initialize usb device stack.
- Parameters
-
pudev pointer to usb device instance device_desc device descriptor callback structure pointer class_cb class callback structure pointer user_cb user callback structure pointer
- Return values
-
None
Definition at line 64 of file usbd_core.c.
USBD_Status USBD_SetCfg | ( | USB_DEVICE_HANDLE * | pudev, |
uint8_t | ConfigIndex | ||
) |
Device configuration and interface setting.
- Parameters
-
pudev pointer to usb device instance ConfigIndex configuration index
- Return values
-
usb device operation status
Definition at line 263 of file usbd_core.c.
uint8_t USBD_SetupStage | ( | USB_DEVICE_HANDLE * | pudev | ) |
Usb setup stage processing.
- Parameters
-
pudev pointer to usb device instance
- Return values
-
usb device operation status
Definition at line 107 of file usbd_core.c.
Generated on Fri Feb 6 2015 14:56:36 for GD32F10x USB-Device by 1.8.8