GD32F1x0: USB/GD32_USB_Device_Library/Core/inc/usbd_core.h File Reference

GD32F1x0

usbd_core.h File Reference

USB device core function protoype. More...

#include "usb_core.h" #include "usb_int.h"
#include "usb_hwp.h"
#include "usbd_enum.h"

Go to the source code of this file.

Enumerations

enum  USBD_Status { USBD_OK = 0, USBD_BUSY, USBD_FAIL }
 USB device operation status.
 

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

USB device core function protoype.

Author
MCU SD
Version
V1.0.1
Date
6-Sep-2014

Definition in file usbd_core.h.

Generated by   doxygen 1.8.10