USB CDC library for MBED on STM32

Dependents:   PushToGo-F429

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers usbd_ioreq.h Source File

usbd_ioreq.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    usbd_ioreq.h
00004   * @author  MCD Application Team
00005   * @version V2.4.2
00006   * @date    11-December-2015
00007   * @brief   Header file for the usbd_ioreq.c file
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 inclusion -------------------------------------*/
00029 #ifndef __USBD_IOREQ_H
00030 #define __USBD_IOREQ_H
00031 
00032 #ifdef __cplusplus
00033  extern "C" {
00034 #endif
00035 
00036 /* Includes ------------------------------------------------------------------*/
00037 #include  "usbd_def.h"
00038 #include  "usbd_core.h"
00039 
00040 /** @addtogroup STM32_USB_DEVICE_LIBRARY
00041   * @{
00042   */
00043   
00044 /** @defgroup USBD_IOREQ
00045   * @brief header file for the usbd_ioreq.c file
00046   * @{
00047   */ 
00048 
00049 /** @defgroup USBD_IOREQ_Exported_Defines
00050   * @{
00051   */ 
00052 /**
00053   * @}
00054   */ 
00055 
00056 
00057 /** @defgroup USBD_IOREQ_Exported_Types
00058   * @{
00059   */
00060 
00061 
00062 /**
00063   * @}
00064   */ 
00065 
00066 
00067 
00068 /** @defgroup USBD_IOREQ_Exported_Macros
00069   * @{
00070   */ 
00071 
00072 /**
00073   * @}
00074   */ 
00075 
00076 /** @defgroup USBD_IOREQ_Exported_Variables
00077   * @{
00078   */ 
00079 
00080 /**
00081   * @}
00082   */ 
00083 
00084 /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype
00085   * @{
00086   */ 
00087 
00088 USBD_StatusTypeDef  USBD_CtlSendData (USBD_HandleTypeDef  *pdev, 
00089                                uint8_t *buf,
00090                                uint16_t len);
00091 
00092 USBD_StatusTypeDef  USBD_CtlContinueSendData (USBD_HandleTypeDef  *pdev, 
00093                                uint8_t *pbuf,
00094                                uint16_t len);
00095 
00096 USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef  *pdev, 
00097                                uint8_t *pbuf,                                 
00098                                uint16_t len);
00099 
00100 USBD_StatusTypeDef  USBD_CtlContinueRx (USBD_HandleTypeDef  *pdev, 
00101                               uint8_t *pbuf,                                          
00102                               uint16_t len);
00103 
00104 USBD_StatusTypeDef  USBD_CtlSendStatus (USBD_HandleTypeDef  *pdev);
00105 
00106 USBD_StatusTypeDef  USBD_CtlReceiveStatus (USBD_HandleTypeDef  *pdev);
00107 
00108 uint16_t  USBD_GetRxCount (USBD_HandleTypeDef  *pdev , 
00109                            uint8_t epnum);
00110 
00111 /**
00112   * @}
00113   */ 
00114 
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118 
00119 #endif /* __USBD_IOREQ_H */
00120 
00121 /**
00122   * @}
00123   */ 
00124 
00125 /**
00126 * @}
00127 */ 
00128 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
00129