rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
usbd_bulk.h
Go to the documentation of this file.
1/**
2 ******************************************************************************
3 * @file usbd_bulk.h
4 * @author MCD Application Team
5 * @version V2.4.2
6 * @date 11-December-2015
7 * @brief header file for the usbd_bulk.c file.
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 inclusion -------------------------------------*/
29#ifndef __USB_BULK_H
30#define __USB_BULK_H
31
32#ifdef __cplusplus
33 extern "C" {
34#endif
35
36/* Includes ------------------------------------------------------------------*/
37#include "usbd_ioreq.h"
38
39/** @addtogroup STM32_USB_DEVICE_LIBRARY
40 * @{
41 */
42
43/** @defgroup usbd_cdc
44 * @brief This file is the Header file for usbd_cdc.c
45 * @{
46 */
47
48
49/** @defgroup usbd_cdc_Exported_Defines
50 * @{
51 */
52#define BULK_IN_EP 0x81 /* EP1 for data IN */
53#define BULK_OUT_EP 0x01 /* EP1 for data OUT */
54
55/* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */
56#define BULK_DATA_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */
57
58#define USB_BULK_CONFIG_DESC_SIZ 32
59#define USB_BULK_DESC_SIZ (32-9)
60
61#define BULK_DESCRIPTOR_TYPE 0x21
62
63
64#define BULK_DATA_FS_IN_PACKET_SIZE BULK_DATA_MAX_PACKET_SIZE
65#define BULK_DATA_FS_OUT_PACKET_SIZE BULK_DATA_MAX_PACKET_SIZE
66
67
68/**
69 * @}
70 */
71
72
73/** @defgroup USBD_CORE_Exported_TypesDefinitions
74 * @{
75 */
76
77/**
78 * @}
79 */
80
81
82/** @defgroup USBD_CORE_Exported_Macros
83 * @{
84 */
85
86/**
87 * @}
88 */
89
90/** @defgroup USBD_CORE_Exported_Variables
91 * @{
92 */
93
94extern USBD_ClassTypeDef USBD_Bulk;
95/**
96 * @}
97 */
98
99/** @defgroup USB_CORE_Exported_Functions
100 * @{
101 */
102uint8_t * USBD_Bulk_GetRxBufferPtr(void);
103/**
104 * @}
105 */
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif /* __USB_BULK_H */
112/**
113 * @}
114 */
115
116/**
117 * @}
118 */
119
120/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
uint8_t * USBD_Bulk_GetRxBufferPtr(void)
USBD_Bulk_GetRxBufferPtr.
Definition usbd_bulk.c:384
USBD_ClassTypeDef USBD_Bulk
Definition usbd_bulk.c:129