ARMEBS4  revision-26.06.2015
usbd_ioreq.h
1 #include "heivs/config.h"
2 #if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
3 /**
4  ******************************************************************************
5  * @file usbd_ioreq.h
6  * @author MCD Application Team
7  * @version V1.1.0
8  * @date 19-March-2012
9  * @brief header file for the usbd_ioreq.c file
10  ******************************************************************************
11  * @attention
12  *
13  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
14  *
15  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
16  * You may not use this file except in compliance with the License.
17  * You may obtain a copy of the License at:
18  *
19  * http://www.st.com/software_license_agreement_liberty_v2
20  *
21  * Unless required by applicable law or agreed to in writing, software
22  * distributed under the License is distributed on an "AS IS" BASIS,
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24  * See the License for the specific language governing permissions and
25  * limitations under the License.
26  *
27  ******************************************************************************
28  */
29 
30 /* Define to prevent recursive inclusion -------------------------------------*/
31 
32 #ifndef __USBD_IOREQ_H_
33 #define __USBD_IOREQ_H_
34 
35 /* Includes ------------------------------------------------------------------*/
36 #include "usbd_def.h"
37 #include "usbd_core.h"
38 
39 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
40  * @{
41  */
42 
43 /** @defgroup USBD_IOREQ
44  * @brief header file for the usbd_ioreq.c file
45  * @{
46  */
47 
48 /** @defgroup USBD_IOREQ_Exported_Defines
49  * @{
50  */
51 /**
52  * @}
53  */
54 
55 
56 /** @defgroup USBD_IOREQ_Exported_Types
57  * @{
58  */
59 
60 
61 /**
62  * @}
63  */
64 
65 
66 
67 /** @defgroup USBD_IOREQ_Exported_Macros
68  * @{
69  */
70 
71 /**
72  * @}
73  */
74 
75 /** @defgroup USBD_IOREQ_Exported_Variables
76  * @{
77  */
78 
79 /**
80  * @}
81  */
82 
83 /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype
84  * @{
85  */
86 
87 USBD_Status USBD_CtlSendData (USB_OTG_CORE_HANDLE *pdev,
88  uint8_t *buf,
89  uint16_t len);
90 
91 USBD_Status USBD_CtlContinueSendData (USB_OTG_CORE_HANDLE *pdev,
92  uint8_t *pbuf,
93  uint16_t len);
94 
95 USBD_Status USBD_CtlPrepareRx (USB_OTG_CORE_HANDLE *pdev,
96  uint8_t *pbuf,
97  uint16_t len);
98 
99 USBD_Status USBD_CtlContinueRx (USB_OTG_CORE_HANDLE *pdev,
100  uint8_t *pbuf,
101  uint16_t len);
102 
103 USBD_Status USBD_CtlSendStatus (USB_OTG_CORE_HANDLE *pdev);
104 
105 USBD_Status USBD_CtlReceiveStatus (USB_OTG_CORE_HANDLE *pdev);
106 
107 uint16_t USBD_GetRxCount (USB_OTG_CORE_HANDLE *pdev ,
108  uint8_t epnum);
109 
110 /**
111  * @}
112  */
113 
114 #endif /* __USBD_IOREQ_H_ */
115 
116 /**
117  * @}
118  */
119 
120 /**
121 * @}
122 */
123 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
124 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
libheivs configuration file