ARMEBS4  revision-26.06.2015
usbh_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 usbh_ioreq.h
6  * @author MCD Application Team
7  * @version V2.1.0
8  * @date 19-March-2012
9  * @brief Header file for usbh_ioreq.c
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 ----------------------------------------------*/
31 #ifndef __USBH_IOREQ_H
32 #define __USBH_IOREQ_H
33 
34 /* Includes ------------------------------------------------------------------*/
35 #include "config/usb_conf.h"
36 #include "stm32/usb/usbh_core.h"
37 #include "stm32/usb/usbh_def.h"
38 
39 /** @addtogroup USBH_LIB
40  * @{
41  */
42 
43 /** @addtogroup USBH_LIB_CORE
44 * @{
45 */
46 
47 /** @defgroup USBH_IOREQ
48  * @brief This file is the header file for usbh_ioreq.c
49  * @{
50  */
51 
52 
53 /** @defgroup USBH_IOREQ_Exported_Defines
54  * @{
55  */
56 #define USBH_SETUP_PKT_SIZE 8
57 #define USBH_EP0_EP_NUM 0
58 #define USBH_MAX_PACKET_SIZE 0x40
59 /**
60  * @}
61  */
62 
63 
64 /** @defgroup USBH_IOREQ_Exported_Types
65  * @{
66  */
67 /**
68  * @}
69  */
70 
71 
72 /** @defgroup USBH_IOREQ_Exported_Macros
73  * @{
74  */
75 /**
76  * @}
77  */
78 
79 /** @defgroup USBH_IOREQ_Exported_Variables
80  * @{
81  */
82 /**
83  * @}
84  */
85 
86 /** @defgroup USBH_IOREQ_Exported_FunctionsPrototype
87  * @{
88  */
89 USBH_Status USBH_CtlSendSetup ( USB_OTG_CORE_HANDLE *pdev,
90  uint8_t *buff,
91  uint8_t hc_num);
92 
93 USBH_Status USBH_CtlSendData ( USB_OTG_CORE_HANDLE *pdev,
94  uint8_t *buff,
95  uint16_t length,
96  uint8_t hc_num);
97 
98 USBH_Status USBH_CtlReceiveData( USB_OTG_CORE_HANDLE *pdev,
99  uint8_t *buff,
100  uint16_t length,
101  uint8_t hc_num);
102 
103 USBH_Status USBH_BulkReceiveData( USB_OTG_CORE_HANDLE *pdev,
104  uint8_t *buff,
105  uint16_t length,
106  uint8_t hc_num);
107 
108 USBH_Status USBH_BulkSendData ( USB_OTG_CORE_HANDLE *pdev,
109  uint8_t *buff,
110  uint16_t length,
111  uint8_t hc_num);
112 
113 USBH_Status USBH_InterruptReceiveData( USB_OTG_CORE_HANDLE *pdev,
114  uint8_t *buff,
115  uint8_t length,
116  uint8_t hc_num);
117 
118 USBH_Status USBH_InterruptSendData( USB_OTG_CORE_HANDLE *pdev,
119  uint8_t *buff,
120  uint8_t length,
121  uint8_t hc_num);
122 
123 USBH_Status USBH_CtlReq (USB_OTG_CORE_HANDLE *pdev,
124  USBH_HOST *phost,
125  uint8_t *buff,
126  uint16_t length);
127 
128 USBH_Status USBH_IsocReceiveData( USB_OTG_CORE_HANDLE *pdev,
129  uint8_t *buff,
130  uint32_t length,
131  uint8_t hc_num);
132 
133 
134 USBH_Status USBH_IsocSendData( USB_OTG_CORE_HANDLE *pdev,
135  uint8_t *buff,
136  uint32_t length,
137  uint8_t hc_num);
138 /**
139  * @}
140  */
141 
142 #endif /* __USBH_IOREQ_H */
143 
144 /**
145  * @}
146  */
147 
148 /**
149  * @}
150  */
151 
152 /**
153 * @}
154 */
155 
156 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
157 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
libheivs configuration file