Merge pull request #93 from zyp/master
[fw/stlink] / example / stm32f4 / STM32_USB_Device_Library / Core / inc / usbd_req.h
1 /**
2   ******************************************************************************
3   * @file    usbd_req.h
4   * @author  MCD Application Team
5   * @version V1.0.0
6   * @date    22-July-2011
7   * @brief   header file for the usbd_req.c file
8   ******************************************************************************
9   * @attention 
10   *
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.
17   *
18   * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
19   ******************************************************************************
20   */ 
21
22 /* Define to prevent recursive inclusion -------------------------------------*/
23
24 #ifndef __USB_REQUEST_H_
25 #define __USB_REQUEST_H_
26
27 /* Includes ------------------------------------------------------------------*/
28 #include  "usbd_def.h"
29 #include  "usbd_core.h"
30 #include  "usbd_conf.h"
31
32
33 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
34   * @{
35   */
36   
37 /** @defgroup USBD_REQ
38   * @brief header file for the usbd_ioreq.c file
39   * @{
40   */ 
41
42 /** @defgroup USBD_REQ_Exported_Defines
43   * @{
44   */ 
45 /**
46   * @}
47   */ 
48
49
50 /** @defgroup USBD_REQ_Exported_Types
51   * @{
52   */
53 /**
54   * @}
55   */ 
56
57
58
59 /** @defgroup USBD_REQ_Exported_Macros
60   * @{
61   */ 
62 /**
63   * @}
64   */ 
65
66 /** @defgroup USBD_REQ_Exported_Variables
67   * @{
68   */ 
69 /**
70   * @}
71   */ 
72
73 /** @defgroup USBD_REQ_Exported_FunctionsPrototype
74   * @{
75   */ 
76
77 USBD_Status  USBD_StdDevReq (USB_OTG_CORE_HANDLE  *pdev, USB_SETUP_REQ  *req);
78 USBD_Status  USBD_StdItfReq (USB_OTG_CORE_HANDLE  *pdev, USB_SETUP_REQ  *req);
79 USBD_Status  USBD_StdEPReq (USB_OTG_CORE_HANDLE  *pdev, USB_SETUP_REQ  *req);
80 void USBD_ParseSetupRequest( USB_OTG_CORE_HANDLE  *pdev,
81                                     USB_SETUP_REQ *req);
82
83 void USBD_CtlError( USB_OTG_CORE_HANDLE  *pdev,
84                             USB_SETUP_REQ *req);
85
86 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
87 /**
88   * @}
89   */ 
90
91 #endif /* __USB_REQUEST_H_ */
92
93 /**
94   * @}
95   */ 
96
97 /**
98 * @}
99 */ 
100
101
102 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/