Prusa MINI Firmware overview
usbh_ioreq.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file usbh_ioreq.h
4  * @author MCD Application Team
5  * @version V3.2.2
6  * @date 07-July-2015
7  * @brief Header file for usbh_ioreq.c
8  ******************************************************************************
9  * @attention
10  *
11  * <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
12  *
13  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14  * You may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at:
16  *
17  * http://www.st.com/software_license_agreement_liberty_v2
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  *
25  ******************************************************************************
26  */
27 
28 /* Define to prevent recursive ----------------------------------------------*/
29 #ifndef __USBH_IOREQ_H
30 #define __USBH_IOREQ_H
31 
32 #ifdef __cplusplus
33  extern "C" {
34 #endif
35 
36 /* Includes ------------------------------------------------------------------*/
37 #include "usbh_conf.h"
38 #include "usbh_core.h"
39 
40 /** @addtogroup USBH_LIB
41  * @{
42  */
43 
44 /** @addtogroup USBH_LIB_CORE
45 * @{
46 */
47 
48 /** @defgroup USBH_IOREQ
49  * @brief This file is the header file for usbh_ioreq.c
50  * @{
51  */
52 
53 
54 /** @defgroup USBH_IOREQ_Exported_Defines
55  * @{
56  */
57 
58 #define USBH_PID_SETUP 0
59 #define USBH_PID_DATA 1
60 
61 #define USBH_EP_CONTROL 0
62 #define USBH_EP_ISO 1
63 #define USBH_EP_BULK 2
64 #define USBH_EP_INTERRUPT 3
65 
66 #define USBH_SETUP_PKT_SIZE 8
67 /**
68  * @}
69  */
70 
71 
72 /** @defgroup USBH_IOREQ_Exported_Types
73  * @{
74  */
75 /**
76  * @}
77  */
78 
79 
80 /** @defgroup USBH_IOREQ_Exported_Macros
81  * @{
82  */
83 /**
84  * @}
85  */
86 
87 /** @defgroup USBH_IOREQ_Exported_Variables
88  * @{
89  */
90 /**
91  * @}
92  */
93 
94 /** @defgroup USBH_IOREQ_Exported_FunctionsPrototype
95  * @{
96  */
98  uint8_t *buff,
99  uint8_t hc_num);
100 
102  uint8_t *buff,
103  uint16_t length,
104  uint8_t hc_num,
105  uint8_t do_ping );
106 
108  uint8_t *buff,
109  uint16_t length,
110  uint8_t hc_num);
111 
113  uint8_t *buff,
114  uint16_t length,
115  uint8_t hc_num);
116 
118  uint8_t *buff,
119  uint16_t length,
120  uint8_t hc_num,
121  uint8_t do_ping );
122 
124  uint8_t *buff,
125  uint8_t length,
126  uint8_t hc_num);
127 
129  uint8_t *buff,
130  uint8_t length,
131  uint8_t hc_num);
132 
133 
135  uint8_t *buff,
136  uint32_t length,
137  uint8_t hc_num);
138 
139 
141  uint8_t *buff,
142  uint32_t length,
143  uint8_t hc_num);
144 /**
145  * @}
146  */
147 
148 #ifdef __cplusplus
149 }
150 #endif
151 
152 #endif /* __USBH_IOREQ_H */
153 
154 /**
155  * @}
156  */
157 
158 /**
159  * @}
160  */
161 
162 /**
163 * @}
164 */
165 
166 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
usbh_conf.h
: Header for usbh_conf.c file.
USBH_InterruptSendData
USBH_StatusTypeDef USBH_InterruptSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint8_t length, uint8_t hc_num)
USBH_InterruptSendData Sends the data on Interrupt OUT Endpoint.
Definition: usbh_ioreq.c:270
USBH_BulkSendData
USBH_StatusTypeDef USBH_BulkSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t hc_num, uint8_t do_ping)
USBH_BulkSendData Sends the Bulk Packet to the device.
Definition: usbh_ioreq.c:186
usbh_core.h
Header file for usbh_core.c.
USBH_IsocSendData
USBH_StatusTypeDef USBH_IsocSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint32_t length, uint8_t hc_num)
USBH_IsocSendData Sends the data on Isochronous OUT Endpoint.
Definition: usbh_ioreq.c:323
USBH_IsocReceiveData
USBH_StatusTypeDef USBH_IsocReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint32_t length, uint8_t hc_num)
USBH_IsocReceiveData Receives the Device Response to the Isochronous IN token.
Definition: usbh_ioreq.c:296
USBH_CtlSendData
USBH_StatusTypeDef USBH_CtlSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t hc_num, uint8_t do_ping)
USBH_CtlSendData Sends a data Packet to the Device.
Definition: usbh_ioreq.c:126
USBH_BulkReceiveData
USBH_StatusTypeDef USBH_BulkReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t hc_num)
USBH_BulkReceiveData Receives IN bulk packet from device.
Definition: usbh_ioreq.c:218
_USBH_HandleTypeDef
Definition: usbh_def.h:450
USBH_CtlReceiveData
USBH_StatusTypeDef USBH_CtlReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t hc_num)
USBH_CtlReceiveData Receives the Device Response to the Setup Packet.
Definition: usbh_ioreq.c:159
uint8_t
const uint8_t[]
Definition: 404_html.c:3
USBH_StatusTypeDef
USBH_StatusTypeDef
Definition: usbh_def.h:302
USBH_InterruptReceiveData
USBH_StatusTypeDef USBH_InterruptReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint8_t length, uint8_t hc_num)
USBH_InterruptReceiveData Receives the Device Response to the Interrupt IN token.
Definition: usbh_ioreq.c:244
USBH_CtlSendSetup
USBH_StatusTypeDef USBH_CtlSendSetup(USBH_HandleTypeDef *phost, uint8_t *buff, uint8_t hc_num)
USBH_CtlSendSetup Sends the Setup Packet to the Device.
Definition: usbh_ioreq.c:100
length
png_uint_32 length
Definition: png.c:2247