usbd_ctlreq.h
1 /** 2 ****************************************************************************** 3 * @file usbd_req.h 4 * @author MCD Application Team 5 * @brief Header file for the usbd_req.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 __USB_REQUEST_H 21 #define __USB_REQUEST_H 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /* Includes ------------------------------------------------------------------*/ 28 #include "usbd_def.h" 29 30 31 /** @addtogroup STM32_USB_DEVICE_LIBRARY 32 * @{ 33 */ 34 35 /** @defgroup USBD_REQ 36 * @brief header file for the usbd_req.c file 37 * @{ 38 */ 39 40 /** @defgroup USBD_REQ_Exported_Defines 41 * @{ 42 */ 43 /** 44 * @} 45 */ 46 47 48 /** @defgroup USBD_REQ_Exported_Types 49 * @{ 50 */ 51 /** 52 * @} 53 */ 54 55 56 57 /** @defgroup USBD_REQ_Exported_Macros 58 * @{ 59 */ 60 /** 61 * @} 62 */ 63 64 /** @defgroup USBD_REQ_Exported_Variables 65 * @{ 66 */ 67 /** 68 * @} 69 */ 70 71 /** @defgroup USBD_REQ_Exported_FunctionsPrototype 72 * @{ 73 */ 74 75 USBD_StatusTypeDef USBD_StdDevReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); 76 USBD_StatusTypeDef USBD_StdItfReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); 77 USBD_StatusTypeDef USBD_StdEPReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); 78 79 void USBD_CtlError(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); 80 void USBD_ParseSetupRequest(USBD_SetupReqTypedef *req, uint8_t *pdata); 81 void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len); 82 83 /** 84 * @} 85 */ 86 87 #ifdef __cplusplus 88 } 89 #endif 90 91 #endif /* __USB_REQUEST_H */ 92 93 /** 94 * @} 95 */ 96 97 /** 98 * @} 99 */ 100 101