2 ******************************************************************************
4 * @author MCD Application Team
7 * @brief Header file for usbh_ioreq.c
8 ******************************************************************************
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
22 /* Define to prevent recursive ----------------------------------------------*/
23 #ifndef __USBH_IOREQ_H
24 #define __USBH_IOREQ_H
26 /* Includes ------------------------------------------------------------------*/
28 #include "usbh_core.h"
32 /** @addtogroup USBH_LIB
36 /** @addtogroup USBH_LIB_CORE
40 /** @defgroup USBH_IOREQ
41 * @brief This file is the header file for usbh_ioreq.c
46 /** @defgroup USBH_IOREQ_Exported_Defines
49 #define USBH_SETUP_PKT_SIZE 8
50 #define USBH_EP0_EP_NUM 0
51 #define USBH_MAX_PACKET_SIZE 0x40
57 /** @defgroup USBH_IOREQ_Exported_Types
65 /** @defgroup USBH_IOREQ_Exported_Macros
72 /** @defgroup USBH_IOREQ_Exported_Variables
79 /** @defgroup USBH_IOREQ_Exported_FunctionsPrototype
82 USBH_Status USBH_CtlSendSetup ( USB_OTG_CORE_HANDLE *pdev,
86 USBH_Status USBH_CtlSendData ( USB_OTG_CORE_HANDLE *pdev,
91 USBH_Status USBH_CtlReceiveData( USB_OTG_CORE_HANDLE *pdev,
96 USBH_Status USBH_BulkReceiveData( USB_OTG_CORE_HANDLE *pdev,
101 USBH_Status USBH_BulkSendData ( USB_OTG_CORE_HANDLE *pdev,
106 USBH_Status USBH_InterruptReceiveData( USB_OTG_CORE_HANDLE *pdev,
111 USBH_Status USBH_InterruptSendData( USB_OTG_CORE_HANDLE *pdev,
116 USBH_Status USBH_CtlReq (USB_OTG_CORE_HANDLE *pdev,
124 #endif /* __USBH_IOREQ_H */
138 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/