Added USB Device library sources
[fw/stlink] / example / stm32f4 / STM32_USB_Device_Library / Core / inc / usbd_ioreq.h
1 /**
2   ******************************************************************************
3   * @file    usbd_ioreq.h
4   * @author  MCD Application Team
5   * @version V1.0.0
6   * @date    22-July-2011
7   * @brief   header file for the usbd_ioreq.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 __USBD_IOREQ_H_
25 #define __USBD_IOREQ_H_
26
27 /* Includes ------------------------------------------------------------------*/
28 #include  "usbd_def.h"
29 #include  "usbd_core.h"
30
31 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
32   * @{
33   */
34   
35 /** @defgroup USBD_IOREQ
36   * @brief header file for the usbd_ioreq.c file
37   * @{
38   */ 
39
40 /** @defgroup USBD_IOREQ_Exported_Defines
41   * @{
42   */ 
43 /**
44   * @}
45   */ 
46
47
48 /** @defgroup USBD_IOREQ_Exported_Types
49   * @{
50   */
51
52
53 /**
54   * @}
55   */ 
56
57
58
59 /** @defgroup USBD_IOREQ_Exported_Macros
60   * @{
61   */ 
62
63 /**
64   * @}
65   */ 
66
67 /** @defgroup USBD_IOREQ_Exported_Variables
68   * @{
69   */ 
70
71 /**
72   * @}
73   */ 
74
75 /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype
76   * @{
77   */ 
78
79 USBD_Status  USBD_CtlSendData (USB_OTG_CORE_HANDLE  *pdev, 
80                                uint8_t *buf,
81                                uint16_t len);
82
83 USBD_Status  USBD_CtlContinueSendData (USB_OTG_CORE_HANDLE  *pdev, 
84                                uint8_t *pbuf,
85                                uint16_t len);
86
87 USBD_Status USBD_CtlPrepareRx (USB_OTG_CORE_HANDLE  *pdev, 
88                                uint8_t *pbuf,                                 
89                                uint16_t len);
90
91 USBD_Status  USBD_CtlContinueRx (USB_OTG_CORE_HANDLE  *pdev, 
92                               uint8_t *pbuf,                                          
93                               uint16_t len);
94
95 USBD_Status  USBD_CtlSendStatus (USB_OTG_CORE_HANDLE  *pdev);
96
97 USBD_Status  USBD_CtlReceiveStatus (USB_OTG_CORE_HANDLE  *pdev);
98
99 uint16_t  USBD_GetRxCount (USB_OTG_CORE_HANDLE  *pdev , 
100                            uint8_t epnum);
101
102 /**
103   * @}
104   */ 
105
106 #endif /* __USBD_IOREQ_H_ */
107
108 /**
109   * @}
110   */ 
111
112 /**
113 * @}
114 */ 
115 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/