Nirvana Jay / Mbed 2 deprecated F7DISCO_Demo

Dependencies:   BSP_DISCO_F746NG_patch mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers usbh_ioreq.h Source File

usbh_ioreq.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    usbh_ioreq.h
00004   * @author  MCD Application Team
00005   * @version V3.2.2
00006   * @date    07-July-2015
00007   * @brief   Header file for usbh_ioreq.c
00008   ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
00012   *
00013   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
00014   * You may not use this file except in compliance with the License.
00015   * You may obtain a copy of the License at:
00016   *
00017   *        http://www.st.com/software_license_agreement_liberty_v2
00018   *
00019   * Unless required by applicable law or agreed to in writing, software 
00020   * distributed under the License is distributed on an "AS IS" BASIS, 
00021   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00022   * See the License for the specific language governing permissions and
00023   * limitations under the License.
00024   *
00025   ******************************************************************************
00026   */ 
00027 
00028 /* Define to prevent recursive  ----------------------------------------------*/
00029 #ifndef __USBH_IOREQ_H
00030 #define __USBH_IOREQ_H
00031 
00032 #ifdef __cplusplus
00033  extern "C" {
00034 #endif
00035 
00036 /* Includes ------------------------------------------------------------------*/
00037 #include "usbh_conf.h"
00038 #include "usbh_core.h"
00039 
00040 /** @addtogroup USBH_LIB
00041   * @{
00042   */
00043 
00044 /** @addtogroup USBH_LIB_CORE
00045 * @{
00046 */
00047   
00048 /** @defgroup USBH_IOREQ
00049   * @brief This file is the header file for usbh_ioreq.c
00050   * @{
00051   */ 
00052 
00053 
00054 /** @defgroup USBH_IOREQ_Exported_Defines
00055   * @{
00056   */
00057     
00058 #define USBH_PID_SETUP                            0
00059 #define USBH_PID_DATA                             1
00060 
00061 #define USBH_EP_CONTROL                           0
00062 #define USBH_EP_ISO                               1
00063 #define USBH_EP_BULK                              2
00064 #define USBH_EP_INTERRUPT                         3
00065 
00066 #define USBH_SETUP_PKT_SIZE                       8
00067 /**
00068   * @}
00069   */ 
00070 
00071 
00072 /** @defgroup USBH_IOREQ_Exported_Types
00073   * @{
00074   */ 
00075 /**
00076   * @}
00077   */ 
00078 
00079 
00080 /** @defgroup USBH_IOREQ_Exported_Macros
00081   * @{
00082   */ 
00083 /**
00084   * @}
00085   */ 
00086 
00087 /** @defgroup USBH_IOREQ_Exported_Variables
00088   * @{
00089   */ 
00090 /**
00091   * @}
00092   */ 
00093 
00094 /** @defgroup USBH_IOREQ_Exported_FunctionsPrototype
00095   * @{
00096   */
00097 USBH_StatusTypeDef USBH_CtlSendSetup (USBH_HandleTypeDef *phost, 
00098                                 uint8_t *buff, 
00099                                 uint8_t hc_num);
00100 
00101 USBH_StatusTypeDef USBH_CtlSendData (USBH_HandleTypeDef *phost, 
00102                                 uint8_t *buff, 
00103                                 uint16_t length,
00104                                 uint8_t hc_num,
00105                                 uint8_t do_ping );
00106 
00107 USBH_StatusTypeDef USBH_CtlReceiveData(USBH_HandleTypeDef *phost, 
00108                                 uint8_t *buff, 
00109                                 uint16_t length,
00110                                 uint8_t hc_num);
00111 
00112 USBH_StatusTypeDef USBH_BulkReceiveData(USBH_HandleTypeDef *phost, 
00113                                 uint8_t *buff, 
00114                                 uint16_t length,
00115                                 uint8_t hc_num);
00116 
00117 USBH_StatusTypeDef USBH_BulkSendData (USBH_HandleTypeDef *phost, 
00118                                 uint8_t *buff, 
00119                                 uint16_t length,
00120                                 uint8_t hc_num,
00121                                 uint8_t do_ping );
00122 
00123 USBH_StatusTypeDef USBH_InterruptReceiveData(USBH_HandleTypeDef *phost, 
00124                                        uint8_t             *buff, 
00125                                        uint8_t             length,
00126                                        uint8_t             hc_num);
00127 
00128 USBH_StatusTypeDef USBH_InterruptSendData(USBH_HandleTypeDef *phost, 
00129                                     uint8_t *buff, 
00130                                     uint8_t length,
00131                                     uint8_t hc_num);
00132 
00133 
00134 USBH_StatusTypeDef USBH_IsocReceiveData(USBH_HandleTypeDef *phost, 
00135                                 uint8_t *buff, 
00136                                 uint32_t length,
00137                                 uint8_t hc_num);
00138 
00139 
00140 USBH_StatusTypeDef USBH_IsocSendData(USBH_HandleTypeDef *phost, 
00141                                 uint8_t *buff, 
00142                                 uint32_t length,
00143                                 uint8_t hc_num);
00144 /**
00145   * @}
00146   */ 
00147 
00148 #ifdef __cplusplus
00149 }
00150 #endif
00151 
00152 #endif /* __USBH_IOREQ_H */
00153 
00154 /**
00155   * @}
00156   */ 
00157 
00158 /**
00159   * @}
00160   */
00161 
00162 /**
00163 * @}
00164 */ 
00165 
00166 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
00167 
00168