2 ******************************************************************************
4 * @author MCD Application Team
7 * @brief Definitions related to USB Core
8 ******************************************************************************
11 * <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
32 /* Includes ------------------------------------------------------------------*/
33 /* Exported types ------------------------------------------------------------*/
34 typedef enum _RECIPIENT_TYPE
36 DEVICE_RECIPIENT
, /* Recipient device */
37 INTERFACE_RECIPIENT
, /* Recipient interface */
38 ENDPOINT_RECIPIENT
, /* Recipient endpoint */
43 typedef enum _STANDARD_REQUESTS
57 TOTAL_sREQUEST
, /* Total number of Standard request */
61 /* Definition of "USBwValue" */
62 typedef enum _DESCRIPTOR_TYPE
64 DEVICE_DESCRIPTOR
= 1,
71 /* Feature selector of a SET_FEATURE or CLEAR_FEATURE */
72 typedef enum _FEATURE_SELECTOR
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 */
85 #define RECIPIENT 0x1F /* Mask to get recipient */
87 /* Exported macro ------------------------------------------------------------*/
88 /* Exported functions ------------------------------------------------------- */
90 #endif /* __USB_DEF_H */
92 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/