Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 9 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /** |
1 | /** |
| 2 | ****************************************************************************** |
2 | ****************************************************************************** |
| 3 | * @file usbd_ioreq.h |
3 | * @file usbd_ioreq.h |
| 4 | * @author MCD Application Team |
4 | * @author MCD Application Team |
| 5 | * @version V2.4.2 |
- | |
| 6 | * @date 11-December-2015 |
- | |
| 7 | * @brief Header file for the usbd_ioreq.c file |
5 | * @brief Header file for the usbd_ioreq.c file |
| 8 | ****************************************************************************** |
6 | ****************************************************************************** |
| 9 | * @attention |
7 | * @attention |
| 10 | * |
8 | * |
| 11 | * <h2><center>© COPYRIGHT 2015 STMicroelectronics</center></h2> |
9 | * <h2><center>© Copyright (c) 2015 STMicroelectronics. |
| - | 10 | * All rights reserved.</center></h2> |
|
| 12 | * |
11 | * |
| 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); |
12 | * This software component is licensed by ST under Ultimate Liberty license |
| 14 | * You may not use this file except in compliance with the License. |
13 | * SLA0044, the "License"; You may not use this file except in compliance with |
| 15 | * You may obtain a copy of the License at: |
14 | * the License. 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. |
15 | * www.st.com/SLA0044 |
| 24 | * |
16 | * |
| 25 | ****************************************************************************** |
17 | ****************************************************************************** |
| 26 | */ |
18 | */ |
| 27 | 19 | ||
| 28 | /* Define to prevent recursive inclusion -------------------------------------*/ |
20 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| 29 | #ifndef __USBD_IOREQ_H |
21 | #ifndef __USBD_IOREQ_H |
| 30 | #define __USBD_IOREQ_H |
22 | #define __USBD_IOREQ_H |
| 31 | 23 | ||
| 32 | #ifdef __cplusplus |
24 | #ifdef __cplusplus |
| 33 | extern "C" { |
25 | extern "C" { |
| 34 | #endif |
26 | #endif |
| 35 | 27 | ||
| 36 | /* Includes ------------------------------------------------------------------*/ |
28 | /* Includes ------------------------------------------------------------------*/ |
| 37 | #include "usbd_def.h" |
29 | #include "usbd_def.h" |
| 38 | #include "usbd_core.h" |
30 | #include "usbd_core.h" |
| 39 | 31 | ||
| 40 | /** @addtogroup STM32_USB_DEVICE_LIBRARY |
32 | /** @addtogroup STM32_USB_DEVICE_LIBRARY |
| 41 | * @{ |
33 | * @{ |
| 42 | */ |
34 | */ |
| 43 | 35 | ||
| 44 | /** @defgroup USBD_IOREQ |
36 | /** @defgroup USBD_IOREQ |
| 45 | * @brief header file for the usbd_ioreq.c file |
37 | * @brief header file for the usbd_ioreq.c file |
| 46 | * @{ |
38 | * @{ |
| 47 | */ |
39 | */ |
| 48 | 40 | ||
| 49 | /** @defgroup USBD_IOREQ_Exported_Defines |
41 | /** @defgroup USBD_IOREQ_Exported_Defines |
| 50 | * @{ |
42 | * @{ |
| 51 | */ |
43 | */ |
| 52 | /** |
44 | /** |
| 53 | * @} |
45 | * @} |
| 54 | */ |
46 | */ |
| 55 | 47 | ||
| 56 | 48 | ||
| 57 | /** @defgroup USBD_IOREQ_Exported_Types |
49 | /** @defgroup USBD_IOREQ_Exported_Types |
| 58 | * @{ |
50 | * @{ |
| 59 | */ |
51 | */ |
| 60 | 52 | ||
| 61 | 53 | ||
| 62 | /** |
54 | /** |
| 63 | * @} |
55 | * @} |
| 64 | */ |
56 | */ |
| 65 | 57 | ||
| 66 | 58 | ||
| 67 | 59 | ||
| 68 | /** @defgroup USBD_IOREQ_Exported_Macros |
60 | /** @defgroup USBD_IOREQ_Exported_Macros |
| 69 | * @{ |
61 | * @{ |
| 70 | */ |
62 | */ |
| 71 | 63 | ||
| 72 | /** |
64 | /** |
| 73 | * @} |
65 | * @} |
| 74 | */ |
66 | */ |
| 75 | 67 | ||
| 76 | /** @defgroup USBD_IOREQ_Exported_Variables |
68 | /** @defgroup USBD_IOREQ_Exported_Variables |
| 77 | * @{ |
69 | * @{ |
| 78 | */ |
70 | */ |
| 79 | 71 | ||
| 80 | /** |
72 | /** |
| 81 | * @} |
73 | * @} |
| 82 | */ |
74 | */ |
| 83 | 75 | ||
| 84 | /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype |
76 | /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype |
| 85 | * @{ |
77 | * @{ |
| 86 | */ |
78 | */ |
| 87 | 79 | ||
| 88 | USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev, |
80 | USBD_StatusTypeDef USBD_CtlSendData(USBD_HandleTypeDef *pdev, |
| 89 | uint8_t *buf, |
81 | uint8_t *pbuf, |
| 90 | uint16_t len); |
82 | uint16_t len); |
| 91 | 83 | ||
| 92 | USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev, |
84 | USBD_StatusTypeDef USBD_CtlContinueSendData(USBD_HandleTypeDef *pdev, |
| 93 | uint8_t *pbuf, |
85 | uint8_t *pbuf, |
| 94 | uint16_t len); |
86 | uint16_t len); |
| 95 | 87 | ||
| 96 | USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev, |
88 | USBD_StatusTypeDef USBD_CtlPrepareRx(USBD_HandleTypeDef *pdev, |
| 97 | uint8_t *pbuf, |
89 | uint8_t *pbuf, |
| 98 | uint16_t len); |
90 | uint16_t len); |
| 99 | 91 | ||
| 100 | USBD_StatusTypeDef USBD_CtlContinueRx (USBD_HandleTypeDef *pdev, |
92 | USBD_StatusTypeDef USBD_CtlContinueRx(USBD_HandleTypeDef *pdev, |
| 101 | uint8_t *pbuf, |
93 | uint8_t *pbuf, |
| 102 | uint16_t len); |
94 | uint16_t len); |
| 103 | 95 | ||
| 104 | USBD_StatusTypeDef USBD_CtlSendStatus (USBD_HandleTypeDef *pdev); |
96 | USBD_StatusTypeDef USBD_CtlSendStatus(USBD_HandleTypeDef *pdev); |
| 105 | 97 | ||
| 106 | USBD_StatusTypeDef USBD_CtlReceiveStatus (USBD_HandleTypeDef *pdev); |
98 | USBD_StatusTypeDef USBD_CtlReceiveStatus(USBD_HandleTypeDef *pdev); |
| 107 | 99 | ||
| 108 | uint16_t USBD_GetRxCount (USBD_HandleTypeDef *pdev , |
100 | uint32_t USBD_GetRxCount(USBD_HandleTypeDef *pdev, uint8_t ep_addr); |
| 109 | uint8_t epnum); |
- | |
| 110 | 101 | ||
| 111 | /** |
102 | /** |
| 112 | * @} |
103 | * @} |
| 113 | */ |
104 | */ |
| 114 | 105 | ||
| 115 | #ifdef __cplusplus |
106 | #ifdef __cplusplus |
| 116 | } |
107 | } |
| 117 | #endif |
108 | #endif |
| 118 | 109 | ||
| 119 | #endif /* __USBD_IOREQ_H */ |
110 | #endif /* __USBD_IOREQ_H */ |
| 120 | 111 | ||
| 121 | /** |
112 | /** |
| 122 | * @} |
113 | * @} |
| 123 | */ |
114 | */ |
| 124 | 115 | ||
| 125 | /** |
116 | /** |
| 126 | * @} |
117 | * @} |
| 127 | */ |
118 | */ |
| 128 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
119 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |