WB32F10x Standard Peripherals Firmware Library

usb_cdc_def.h
1 /* Define to prevent recursive inclusion -------------------------------------*/
2 #ifndef __USB_CDC_DEF_H
3 #define __USB_CDC_DEF_H
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 /* Includes ------------------------------------------------------------------*/
10 /* Exported types ------------------------------------------------------------*/
11 typedef __PACKED_STRUCT _USB_CDC_LINE_CODING {
12 uint32_t dwDTERate;
13 uint8_t bCharFormat;
14 uint8_t bParityType;
15 uint8_t bDataBits;
16 } USB_CDC_LINE_CODING;
17
18 /* Exported constants --------------------------------------------------------*/
19 #define USB_DESC_TYPE_CDC_CS_INTERFACE 0x24U
20 #define USB_DESC_TYPE_CDC_CS_ENDPOINT 0x25U
21
22 #define USB_CDC_REQUEST_SEND_ENCAPSULATED_COMMAND 0x00
23 #define USB_CDC_REQUEST_GET_ENCAPSULATED_RESPONSE 0x01
24 #define USB_CDC_REQUEST_SET_COMM_FEATURE 0x02
25 #define USB_CDC_REQUEST_GET_COMM_FEATURE 0x03
26 #define USB_CDC_REQUEST_CLEAR_COMM_FEATURE 0x04
27 #define USB_CDC_REQUEST_SET_AUX_LINE_STATE 0x10
28 #define USB_CDC_REQUEST_SET_HOOK_STATE 0x11
29 #define USB_CDC_REQUEST_PULSE_SETUP 0x12
30 #define USB_CDC_REQUEST_SEND_PULSE 0x13
31 #define USB_CDC_REQUEST_SET_PULSE_TIME 0x14
32 #define USB_CDC_REQUEST_RING_AUX_JACK 0x15
33 #define USB_CDC_REQUEST_SET_LINE_CODING 0x20
34 #define USB_CDC_REQUEST_GET_LINE_CODING 0x21
35 #define USB_CDC_REQUEST_SET_CONTROL_LINE_STATE 0x22
36 #define USB_CDC_REQUEST_SEND_BREAK 0x23
37 #define USB_CDC_REQUEST_SET_RINGER_PARMS 0x30
38 #define USB_CDC_REQUEST_GET_RINGER_PARMS 0x31
39 #define USB_CDC_REQUEST_SET_OPERATION_PARMS 0x32
40 #define USB_CDC_REQUEST_GET_OPERATION_PARMS 0x33
41 #define USB_CDC_REQUEST_SET_LINE_PARMS 0x34
42 #define USB_CDC_REQUEST_GET_LINE_PARMS 0x35
43 #define USB_CDC_REQUEST_DIAL_DIGITS 0x36
44 #define USB_CDC_REQUEST_SET_UNIT_PARAMETER 0x37
45 #define USB_CDC_REQUEST_GET_UNIT_PARAMETER 0x38
46 #define USB_CDC_REQUEST_CLEAR_UNIT_PARAMETER 0x39
47 #define USB_CDC_REQUEST_GET_PROFILE 0x3A
48 #define USB_CDC_REQUEST_SET_ETHERNET_MULTICAST_FILTERS 0x40
49 #define USB_CDC_REQUEST_SET_ETHERNET_PMP_FILTER 0x41
50 #define USB_CDC_REQUEST_GET_ETHERNET_PMP_FILTER 0x42
51 #define USB_CDC_REQUEST_SET_ETHERNET_PACKET_FILTER 0x43
52 #define USB_CDC_REQUEST_GET_ETHERNET_STATISTIC 0x44
53 #define USB_CDC_REQUEST_SET_ATM_DATA_FORMAT 0x50
54 #define USB_CDC_REQUEST_GET_ATM_DEVICE_STATISTICS 0x51
55 #define USB_CDC_REQUEST_SET_ATM_DEFAULT_VC 0x52
56 #define USB_CDC_REQUEST_GET_ATM_VC_STATISTICS 0x53
57
58 /* Exported macro ------------------------------------------------------------*/
59 /* Exported functions --------------------------------------------------------*/
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif /* __USB_CDC_DEF_H */