usbd_ioreq.h
  1  /**
  2    ******************************************************************************
  3    * @file    usbd_ioreq.h
  4    * @author  MCD Application Team
  5    * @brief   Header file for the usbd_ioreq.c file
  6    ******************************************************************************
  7    * @attention
  8    *
  9    * Copyright (c) 2015 STMicroelectronics.
 10    * All rights reserved.
 11    *
 12    * This software is licensed under terms that can be found in the LICENSE file
 13    * in the root directory of this software component.
 14    * If no LICENSE file comes with this software, it is provided AS-IS.
 15    *
 16    ******************************************************************************
 17    */
 18  
 19  /* Define to prevent recursive inclusion -------------------------------------*/
 20  #ifndef __USBD_IOREQ_H
 21  #define __USBD_IOREQ_H
 22  
 23  #ifdef __cplusplus
 24  extern "C" {
 25  #endif
 26  
 27  /* Includes ------------------------------------------------------------------*/
 28  #include  "usbd_def.h"
 29  #include  "usbd_core.h"
 30  
 31  /** @addtogroup STM32_USB_DEVICE_LIBRARY
 32    * @{
 33    */
 34  
 35  /** @defgroup USBD_IOREQ
 36    * @brief header file for the usbd_ioreq.c file
 37    * @{
 38    */
 39  
 40  /** @defgroup USBD_IOREQ_Exported_Defines
 41    * @{
 42    */
 43  /**
 44    * @}
 45    */
 46  
 47  
 48  /** @defgroup USBD_IOREQ_Exported_Types
 49    * @{
 50    */
 51  
 52  
 53  /**
 54    * @}
 55    */
 56  
 57  
 58  
 59  /** @defgroup USBD_IOREQ_Exported_Macros
 60    * @{
 61    */
 62  
 63  /**
 64    * @}
 65    */
 66  
 67  /** @defgroup USBD_IOREQ_Exported_Variables
 68    * @{
 69    */
 70  
 71  /**
 72    * @}
 73    */
 74  
 75  /** @defgroup USBD_IOREQ_Exported_FunctionsPrototype
 76    * @{
 77    */
 78  
 79  USBD_StatusTypeDef USBD_CtlSendData(USBD_HandleTypeDef *pdev,
 80                                      uint8_t *pbuf, uint32_t len);
 81  
 82  USBD_StatusTypeDef USBD_CtlContinueSendData(USBD_HandleTypeDef *pdev,
 83                                              uint8_t *pbuf, uint32_t len);
 84  
 85  USBD_StatusTypeDef USBD_CtlPrepareRx(USBD_HandleTypeDef *pdev,
 86                                       uint8_t *pbuf, uint32_t len);
 87  
 88  USBD_StatusTypeDef USBD_CtlContinueRx(USBD_HandleTypeDef *pdev,
 89                                        uint8_t *pbuf, uint32_t len);
 90  
 91  USBD_StatusTypeDef USBD_CtlSendStatus(USBD_HandleTypeDef *pdev);
 92  USBD_StatusTypeDef USBD_CtlReceiveStatus(USBD_HandleTypeDef *pdev);
 93  
 94  uint32_t USBD_GetRxCount(USBD_HandleTypeDef *pdev, uint8_t ep_addr);
 95  
 96  /**
 97    * @}
 98    */
 99  
100  #ifdef __cplusplus
101  }
102  #endif
103  
104  #endif /* __USBD_IOREQ_H */
105  
106  /**
107    * @}
108    */
109  
110  /**
111    * @}
112    */
113