usbd_ctlreq.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /**
  2. ******************************************************************************
  3. * @file usbd_req.h
  4. * @author MCD Application Team
  5. * @version V2.4.2
  6. * @date 11-December-2015
  7. * @brief Header file for the usbd_req.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. /* Define to prevent recursive inclusion -------------------------------------*/
  28. #ifndef __USB_REQUEST_H
  29. #define __USB_REQUEST_H
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. /* Includes ------------------------------------------------------------------*/
  34. #include "usbd_def.h"
  35. /** @addtogroup STM32_USB_DEVICE_LIBRARY
  36. * @{
  37. */
  38. /** @defgroup USBD_REQ
  39. * @brief header file for the usbd_req.c file
  40. * @{
  41. */
  42. /** @defgroup USBD_REQ_Exported_Defines
  43. * @{
  44. */
  45. /**
  46. * @}
  47. */
  48. /** @defgroup USBD_REQ_Exported_Types
  49. * @{
  50. */
  51. /**
  52. * @}
  53. */
  54. /** @defgroup USBD_REQ_Exported_Macros
  55. * @{
  56. */
  57. /**
  58. * @}
  59. */
  60. /** @defgroup USBD_REQ_Exported_Variables
  61. * @{
  62. */
  63. /**
  64. * @}
  65. */
  66. /** @defgroup USBD_REQ_Exported_FunctionsPrototype
  67. * @{
  68. */
  69. USBD_StatusTypeDef USBD_StdDevReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
  70. USBD_StatusTypeDef USBD_StdItfReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
  71. USBD_StatusTypeDef USBD_StdEPReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
  72. void USBD_CtlError (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
  73. void USBD_ParseSetupRequest (USBD_SetupReqTypedef *req, uint8_t *pdata);
  74. void USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len);
  75. /**
  76. * @}
  77. */
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif /* __USB_REQUEST_H */
  82. /**
  83. * @}
  84. */
  85. /**
  86. * @}
  87. */
  88. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/