Select one of the symbols to view example projects that use it.
 
Outline
#define __USBH_IOREQ_H
#include "usbh_conf.h"
#include "usbh_core.h"
#define USBH_PID_SETUP
#define USBH_PID_DATA
#define USBH_EP_CONTROL
#define USBH_EP_ISO
#define USBH_EP_BULK
#define USBH_EP_INTERRUPT
#define USBH_SETUP_PKT_SIZE
USBH_CtlSendSetup(USBH_HandleTypeDef *, uint8_t *, uint8_t);
USBH_CtlSendData(USBH_HandleTypeDef *, uint8_t *, uint16_t, uint8_t, uint8_t);
USBH_CtlReceiveData(USBH_HandleTypeDef *, uint8_t *, uint16_t, uint8_t);
USBH_BulkReceiveData(USBH_HandleTypeDef *, uint8_t *, uint16_t, uint8_t);
USBH_BulkSendData(USBH_HandleTypeDef *, uint8_t *, uint16_t, uint8_t, uint8_t);
USBH_InterruptReceiveData(USBH_HandleTypeDef *, uint8_t *, uint8_t, uint8_t);
USBH_InterruptSendData(USBH_HandleTypeDef *, uint8_t *, uint8_t, uint8_t);
USBH_IsocReceiveData(USBH_HandleTypeDef *, uint8_t *, uint32_t, uint8_t);
USBH_IsocSendData(USBH_HandleTypeDef *, uint8_t *, uint32_t, uint8_t);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTM32_USB_Host_LibraryCore/Inc/usbh_ioreq.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file usbh_ioreq.h * @author MCD Application Team * @brief Header file for usbh_ioreq.c ****************************************************************************** * @attention * * Copyright (c) 2015 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive ----------------------------------------------*/ #ifndef __USBH_IOREQ_H #define __USBH_IOREQ_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbh_conf.h" #include "usbh_core.h" /** @addtogroup USBH_LIB * @{ *//* ... */ /** @addtogroup USBH_LIB_CORE * @{ *//* ... */ /** @defgroup USBH_IOREQ * @brief This file is the header file for usbh_ioreq.c * @{ *//* ... */ /** @defgroup USBH_IOREQ_Exported_Defines * @{ *//* ... */ #define USBH_PID_SETUP 0U #define USBH_PID_DATA 1U #define USBH_EP_CONTROL 0U #define USBH_EP_ISO 1U #define USBH_EP_BULK 2U #define USBH_EP_INTERRUPT 3U #define USBH_SETUP_PKT_SIZE 8U 7 defines/** * @} *//* ... */ /** @defgroup USBH_IOREQ_Exported_Types * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup USBH_IOREQ_Exported_Macros * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup USBH_IOREQ_Exported_Variables * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup USBH_IOREQ_Exported_FunctionsPrototype * @{ *//* ... */ USBH_StatusTypeDef USBH_CtlSendSetup(USBH_HandleTypeDef *phost, uint8_t *buff, uint8_t pipe_num); USBH_StatusTypeDef USBH_CtlSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t pipe_num, uint8_t do_ping); USBH_StatusTypeDef USBH_CtlReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t pipe_num); USBH_StatusTypeDef USBH_BulkReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t pipe_num); USBH_StatusTypeDef USBH_BulkSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t pipe_num, uint8_t do_ping); USBH_StatusTypeDef USBH_InterruptReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint8_t length, uint8_t pipe_num); USBH_StatusTypeDef USBH_InterruptSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint8_t length, uint8_t pipe_num); USBH_StatusTypeDef USBH_IsocReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint32_t length, uint8_t pipe_num); USBH_StatusTypeDef USBH_IsocSendData(USBH_HandleTypeDef *phost, uint8_t *buff, uint32_t length, uint8_t pipe_num); /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __USBH_IOREQ_H */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */