STM32F10,L1 en F3 USB Full Speed Device bibliotheek
1.0
ST Microelectronics USB Full Speed Device bibliotheek documentatie
Main Page
Data Structures
Files
File List
All
Data Structures
Files
usb_def.h
Go to the documentation of this file.
1
28
/* Define to prevent recursive inclusion -------------------------------------*/
29
#ifndef __USB_DEF_H
30
#define __USB_DEF_H
31
32
/* Includes ------------------------------------------------------------------*/
33
/* Exported types ------------------------------------------------------------*/
34
typedef
enum
_RECIPIENT_TYPE
35
{
36
DEVICE_RECIPIENT,
/* Recipient device */
37
INTERFACE_RECIPIENT,
/* Recipient interface */
38
ENDPOINT_RECIPIENT,
/* Recipient endpoint */
39
OTHER_RECIPIENT
40
} RECIPIENT_TYPE;
41
42
43
typedef
enum
_STANDARD_REQUESTS
44
{
45
GET_STATUS = 0,
46
CLEAR_FEATURE,
47
RESERVED1,
48
SET_FEATURE,
49
RESERVED2,
50
SET_ADDRESS,
51
GET_DESCRIPTOR,
52
SET_DESCRIPTOR,
53
GET_CONFIGURATION,
54
SET_CONFIGURATION,
55
GET_INTERFACE,
56
SET_INTERFACE,
57
TOTAL_sREQUEST,
/* Total number of Standard request */
58
SYNCH_FRAME = 12
59
} STANDARD_REQUESTS;
60
61
/* Definition of "USBwValue" */
62
typedef
enum
_DESCRIPTOR_TYPE
63
{
64
DEVICE_DESCRIPTOR = 1,
65
CONFIG_DESCRIPTOR,
66
STRING_DESCRIPTOR,
67
INTERFACE_DESCRIPTOR,
68
ENDPOINT_DESCRIPTOR
69
} DESCRIPTOR_TYPE;
70
71
/* Feature selector of a SET_FEATURE or CLEAR_FEATURE */
72
typedef
enum
_FEATURE_SELECTOR
73
{
74
ENDPOINT_STALL,
75
DEVICE_REMOTE_WAKEUP
76
} FEATURE_SELECTOR;
77
78
/* Exported constants --------------------------------------------------------*/
79
/* Definition of "USBbmRequestType" */
80
#define REQUEST_TYPE 0x60
/* Mask to get request type */
81
#define STANDARD_REQUEST 0x00
/* Standard request */
82
#define CLASS_REQUEST 0x20
/* Class request */
83
#define VENDOR_REQUEST 0x40
/* Vendor request */
84
85
#define RECIPIENT 0x1F
/* Mask to get recipient */
86
87
/* Exported macro ------------------------------------------------------------*/
88
/* Exported functions ------------------------------------------------------- */
89
90
#endif
/* __USB_DEF_H */
91
92
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
inc
usb_def.h
Generated on Thu Feb 13 2014 19:07:32 for STM32F10,L1 en F3 USB Full Speed Device bibliotheek by
1.8.3.1