GD32F1x0: USB/GD32_USB_Device_Library/Class/cdc/inc/usbd_cdc_loopback_core.h File Reference

GD32F1x0

usbd_cdc_loopback_core.h File Reference

Header file for the usbd_cdc_core.c file. More...

#include "usbd_desc.h"

Go to the source code of this file.

Data Structures

struct  LINE_CODING
 

Macros

#define USB_CDC_CONFIG_DESC_SIZE   (67)
 
#define USB_CDC_DESC_SIZE   (58)
 
#define CDC_DESC_TYPE   0x21
 
#define CDC_DATA_IN_PACKET_SIZE   USB_CDC_DATA_PACKET_SIZE
 
#define CDC_DATA_OUT_PACKET_SIZE   USB_CDC_DATA_PACKET_SIZE
 
#define SEND_ENCAPSULATED_COMMAND   0x00
 
#define GET_ENCAPSULATED_RESPONSE   0x01
 
#define SET_COMM_FEATURE   0x02
 
#define GET_COMM_FEATURE   0x03
 
#define CLEAR_COMM_FEATURE   0x04
 
#define SET_LINE_CODING   0x20
 
#define GET_LINE_CODING   0x21
 
#define SET_CONTROL_LINE_STATE   0x22
 
#define SEND_BREAK   0x23
 
#define NO_CMD   0xFF
 

Functions

void USBD_CDC_SendData (void *pudev, uint32_t DataLen)
 Send the data received from the GD32 to the PC through USB. More...
 
void USBD_CDC_ReceiveData (void *pudev)
 Receive the data from the PC to GD32 and send it through USB. More...
 

Variables

USBD_Class_cb_TypeDef USBD_CDC_cb
 

Detailed Description

Header file for the usbd_cdc_core.c file.

Author
MCU SD
Version
V1.0.1
Date
26-Dec-2014

Definition in file usbd_cdc_loopback_core.h.

Generated by   doxygen 1.8.10