2 ******************************************************************************
4 * @author MCD Application Team
7 * @brief Header file for usbh_stdreq.c
8 ******************************************************************************
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
22 /* Define to prevent recursive ----------------------------------------------*/
23 #ifndef __USBH_STDREQ_H
24 #define __USBH_STDREQ_H
26 /* Includes ------------------------------------------------------------------*/
30 #include "usbh_core.h"
33 /** @addtogroup USBH_LIB
37 /** @addtogroup USBH_LIB_CORE
41 /** @defgroup USBH_STDREQ
42 * @brief This file is the
47 /** @defgroup USBH_STDREQ_Exported_Defines
50 /*Standard Feature Selector for clear feature command*/
51 #define FEATURE_SELECTOR_ENDPOINT 0X00
52 #define FEATURE_SELECTOR_DEVICE 0X01
55 #define INTERFACE_DESC_TYPE 0x04
56 #define ENDPOINT_DESC_TYPE 0x05
57 #define INTERFACE_DESC_SIZE 0x09
60 #define USBH_HID_CLASS 0x03
67 /** @defgroup USBH_STDREQ_Exported_Types
75 /** @defgroup USBH_STDREQ_Exported_Macros
82 /** @defgroup USBH_STDREQ_Exported_Variables
89 /** @defgroup USBH_STDREQ_Exported_FunctionsPrototype
92 USBH_Status USBH_GetDescriptor(USB_OTG_CORE_HANDLE *pdev,
99 USBH_Status USBH_Get_DevDesc(USB_OTG_CORE_HANDLE *pdev,
103 USBH_Status USBH_Get_StringDesc(USB_OTG_CORE_HANDLE *pdev,
105 uint8_t string_index,
109 USBH_Status USBH_SetCfg(USB_OTG_CORE_HANDLE *pdev,
111 uint16_t configuration_value);
113 USBH_Status USBH_Get_CfgDesc(USB_OTG_CORE_HANDLE *pdev,
117 USBH_Status USBH_SetAddress(USB_OTG_CORE_HANDLE *pdev,
119 uint8_t DeviceAddress);
121 USBH_Status USBH_ClrFeature(USB_OTG_CORE_HANDLE *pdev,
123 uint8_t ep_num, uint8_t hc_num);
125 USBH_Status USBH_Issue_ClrFeature(USB_OTG_CORE_HANDLE *pdev,
132 #endif /* __USBH_STDREQ_H */
146 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/