USB CDC library for MBED on STM32

Dependents:   PushToGo-F429

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers usbd_ctlreq.h Source File

usbd_ctlreq.h

00001 /**
00002   ******************************************************************************
00003   * @file    usbd_req.h
00004   * @author  MCD Application Team
00005   * @version V2.4.2
00006   * @date    11-December-2015
00007   * @brief   Header file for the usbd_req.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 __USB_REQUEST_H
00030 #define __USB_REQUEST_H
00031 
00032 #ifdef __cplusplus
00033  extern "C" {
00034 #endif
00035 
00036 /* Includes ------------------------------------------------------------------*/
00037 #include  "usbd_def.h"
00038 
00039 
00040 /** @addtogroup STM32_USB_DEVICE_LIBRARY
00041   * @{
00042   */
00043   
00044 /** @defgroup USBD_REQ
00045   * @brief header file for the usbd_req.c file
00046   * @{
00047   */ 
00048 
00049 /** @defgroup USBD_REQ_Exported_Defines
00050   * @{
00051   */ 
00052 /**
00053   * @}
00054   */ 
00055 
00056 
00057 /** @defgroup USBD_REQ_Exported_Types
00058   * @{
00059   */
00060 /**
00061   * @}
00062   */ 
00063 
00064 
00065 
00066 /** @defgroup USBD_REQ_Exported_Macros
00067   * @{
00068   */ 
00069 /**
00070   * @}
00071   */ 
00072 
00073 /** @defgroup USBD_REQ_Exported_Variables
00074   * @{
00075   */ 
00076 /**
00077   * @}
00078   */ 
00079 
00080 /** @defgroup USBD_REQ_Exported_FunctionsPrototype
00081   * @{
00082   */ 
00083 
00084 USBD_StatusTypeDef  USBD_StdDevReq (USBD_HandleTypeDef  *pdev, USBD_SetupReqTypedef  *req);
00085 USBD_StatusTypeDef  USBD_StdItfReq (USBD_HandleTypeDef  *pdev, USBD_SetupReqTypedef  *req);
00086 USBD_StatusTypeDef  USBD_StdEPReq  (USBD_HandleTypeDef  *pdev, USBD_SetupReqTypedef  *req);
00087 
00088 
00089 void USBD_CtlError  (USBD_HandleTypeDef  *pdev, USBD_SetupReqTypedef *req);
00090 
00091 void USBD_ParseSetupRequest (USBD_SetupReqTypedef *req, uint8_t *pdata);
00092 
00093 void USBD_GetString         (uint8_t *desc, uint8_t *unicode, uint16_t *len);
00094 /**
00095   * @}
00096   */ 
00097 
00098 #ifdef __cplusplus
00099 }
00100 #endif
00101 
00102 #endif /* __USB_REQUEST_H */
00103 
00104 /**
00105   * @}
00106   */ 
00107 
00108 /**
00109 * @}
00110 */ 
00111 
00112 
00113 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
00114