Select one of the symbols to view example projects that use it.
 
Outline
#define __USBD_CORE_H
#include "usbd_conf.h"
#include "usbd_def.h"
#include "usbd_ioreq.h"
#include "usbd_ctlreq.h"
#define USBD_DEBUG_LEVEL
#define USBD_SOF
USBD_Init(USBD_HandleTypeDef *, USBD_DescriptorsTypeDef *, uint8_t);
USBD_DeInit(USBD_HandleTypeDef *);
USBD_Start(USBD_HandleTypeDef *);
USBD_Stop(USBD_HandleTypeDef *);
USBD_RegisterClass(USBD_HandleTypeDef *, USBD_ClassTypeDef *);
USBD_CoreFindIF(USBD_HandleTypeDef *, uint8_t);
USBD_CoreFindEP(USBD_HandleTypeDef *, uint8_t);
USBD_RunTestMode(USBD_HandleTypeDef *);
USBD_SetClassConfig(USBD_HandleTypeDef *, uint8_t);
USBD_ClrClassConfig(USBD_HandleTypeDef *, uint8_t);
USBD_LL_SetupStage(USBD_HandleTypeDef *, uint8_t *);
USBD_LL_DataOutStage(USBD_HandleTypeDef *, uint8_t, uint8_t *);
USBD_LL_DataInStage(USBD_HandleTypeDef *, uint8_t, uint8_t *);
USBD_LL_Reset(USBD_HandleTypeDef *);
USBD_LL_SetSpeed(USBD_HandleTypeDef *, USBD_SpeedTypeDef);
USBD_LL_Suspend(USBD_HandleTypeDef *);
USBD_LL_Resume(USBD_HandleTypeDef *);
USBD_LL_SOF(USBD_HandleTypeDef *);
USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *, uint8_t);
USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *, uint8_t);
USBD_LL_DevConnected(USBD_HandleTypeDef *);
USBD_LL_DevDisconnected(USBD_HandleTypeDef *);
USBD_LL_Init(USBD_HandleTypeDef *);
USBD_LL_DeInit(USBD_HandleTypeDef *);
USBD_LL_Start(USBD_HandleTypeDef *);
USBD_LL_Stop(USBD_HandleTypeDef *);
USBD_LL_OpenEP(USBD_HandleTypeDef *, uint8_t, uint8_t, uint16_t);
USBD_LL_CloseEP(USBD_HandleTypeDef *, uint8_t);
USBD_LL_FlushEP(USBD_HandleTypeDef *, uint8_t);
USBD_LL_StallEP(USBD_HandleTypeDef *, uint8_t);
USBD_LL_ClearStallEP(USBD_HandleTypeDef *, uint8_t);
USBD_LL_SetUSBAddress(USBD_HandleTypeDef *, uint8_t);
USBD_LL_Transmit(USBD_HandleTypeDef *, uint8_t, uint8_t *, uint32_t);
USBD_LL_PrepareReceive(USBD_HandleTypeDef *, uint8_t, uint8_t *, uint32_t);
USBD_LL_IsStallEP(USBD_HandleTypeDef *, uint8_t);
USBD_LL_GetRxDataSize(USBD_HandleTypeDef *, uint8_t);
USBD_LL_Delay(uint32_t);
USBD_GetEpDesc(uint8_t *, uint8_t);
USBD_GetNextDesc(uint8_t *, uint16_t *);
Files
loading...
SourceVuSTM32 Libraries and SamplesSTM32_USB_Device_LibraryCore/Inc/usbd_core.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file usbd_core.h * @author MCD Application Team * @brief Header file for usbd_core.c file ****************************************************************************** * @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 inclusion -------------------------------------*/ #ifndef __USBD_CORE_H #define __USBD_CORE_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_conf.h" #include "usbd_def.h" #include "usbd_ioreq.h" #include "usbd_ctlreq.h" /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ *//* ... */ /** @defgroup USBD_CORE * @brief This file is the Header file for usbd_core.c file * @{ *//* ... */ /** @defgroup USBD_CORE_Exported_Defines * @{ *//* ... */ #ifndef USBD_DEBUG_LEVEL #define USBD_DEBUG_LEVEL 0U #endif /* USBD_DEBUG_LEVEL */ /** * @} *//* ... */ /** @defgroup USBD_CORE_Exported_TypesDefinitions * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup USBD_CORE_Exported_Macros * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup USBD_CORE_Exported_Variables * @{ *//* ... */ #define USBD_SOF USBD_LL_SOF /** * @} *//* ... */ /** @defgroup USBD_CORE_Exported_FunctionsPrototype * @{ *//* ... */ USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id); USBD_StatusTypeDef USBD_DeInit(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_Start(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_Stop(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass); #if (USBD_USER_REGISTER_CALLBACK == 1U) USBD_StatusTypeDef USBD_RegisterDevStateCallback(USBD_HandleTypeDef *pdev, USBD_DevStateCallbackTypeDef pUserCallback); #endif /* USBD_USER_REGISTER_CALLBACK */ #ifdef USE_USBD_COMPOSITE USBD_StatusTypeDef USBD_RegisterClassComposite(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass, USBD_CompositeClassTypeDef classtype, uint8_t *EpAddr); USBD_StatusTypeDef USBD_UnRegisterClassComposite(USBD_HandleTypeDef *pdev); uint8_t USBD_CoreGetEPAdd(USBD_HandleTypeDef *pdev, uint8_t ep_dir, uint8_t ep_type, uint8_t ClassId);/* ... */ #endif /* USE_USBD_COMPOSITE */ uint8_t USBD_CoreFindIF(USBD_HandleTypeDef *pdev, uint8_t index); uint8_t USBD_CoreFindEP(USBD_HandleTypeDef *pdev, uint8_t index); USBD_StatusTypeDef USBD_RunTestMode(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_SetClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx); USBD_StatusTypeDef USBD_ClrClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx); USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup); USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata); USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata); USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed); USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum); USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum); USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev); /* USBD Low Level Driver */ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_DeInit(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_Start(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_Stop(USBD_HandleTypeDef *pdev); USBD_StatusTypeDef USBD_LL_OpenEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps); USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_FlushEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_StallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_ClearStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr); USBD_StatusTypeDef USBD_LL_SetUSBAddress(USBD_HandleTypeDef *pdev, uint8_t dev_addr); USBD_StatusTypeDef USBD_LL_Transmit(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint32_t size); USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint32_t size); #ifdef USBD_HS_TESTMODE_ENABLE USBD_StatusTypeDef USBD_LL_SetTestMode(USBD_HandleTypeDef *pdev, uint8_t testmode); #endif /* USBD_HS_TESTMODE_ENABLE */ uint8_t USBD_LL_IsStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr); uint32_t USBD_LL_GetRxDataSize(USBD_HandleTypeDef *pdev, uint8_t ep_addr); void USBD_LL_Delay(uint32_t Delay); void *USBD_GetEpDesc(uint8_t *pConfDesc, uint8_t EpAddr); USBD_DescHeaderTypeDef *USBD_GetNextDesc(uint8_t *pbuf, uint16_t *ptr); /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __USBD_CORE_H */ /** * @} *//* ... */ /** * @} *//* ... */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.