2018-06-11 13:34:03 +00:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* @file usbd_req.h
|
|
|
|
* @author MCD Application Team
|
|
|
|
* @brief Header file for the usbd_req.c file
|
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
2020-02-27 10:03:06 +00:00
|
|
|
* <h2><center>© Copyright (c) 2015 STMicroelectronics.
|
|
|
|
* All rights reserved.</center></h2>
|
2018-06-11 13:34:03 +00:00
|
|
|
*
|
2020-02-27 10:03:06 +00:00
|
|
|
* This software component is licensed by ST under Ultimate Liberty license
|
|
|
|
* SLA0044, the "License"; You may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at:
|
|
|
|
* www.st.com/SLA0044
|
2018-06-11 13:34:03 +00:00
|
|
|
*
|
|
|
|
******************************************************************************
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
#ifndef __USB_REQUEST_H
|
|
|
|
#define __USB_REQUEST_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2020-02-27 10:03:06 +00:00
|
|
|
extern "C" {
|
2018-06-11 13:34:03 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
|
|
#include "usbd_def.h"
|
|
|
|
|
|
|
|
|
|
|
|
/** @addtogroup STM32_USB_DEVICE_LIBRARY
|
|
|
|
* @{
|
|
|
|
*/
|
2020-02-27 10:03:06 +00:00
|
|
|
|
2018-06-11 13:34:03 +00:00
|
|
|
/** @defgroup USBD_REQ
|
|
|
|
* @brief header file for the usbd_req.c file
|
|
|
|
* @{
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
/** @defgroup USBD_REQ_Exported_Defines
|
|
|
|
* @{
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
/**
|
|
|
|
* @}
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
/** @defgroup USBD_REQ_Exported_Types
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @}
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @defgroup USBD_REQ_Exported_Macros
|
|
|
|
* @{
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
/**
|
|
|
|
* @}
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
/** @defgroup USBD_REQ_Exported_Variables
|
|
|
|
* @{
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
/**
|
|
|
|
* @}
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
/** @defgroup USBD_REQ_Exported_FunctionsPrototype
|
|
|
|
* @{
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
2020-02-27 10:03:06 +00:00
|
|
|
USBD_StatusTypeDef USBD_StdDevReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
|
|
|
|
USBD_StatusTypeDef USBD_StdItfReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
|
|
|
|
USBD_StatusTypeDef USBD_StdEPReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
|
2020-02-27 10:03:06 +00:00
|
|
|
void USBD_CtlError(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req);
|
2018-06-11 13:34:03 +00:00
|
|
|
|
2020-02-27 10:03:06 +00:00
|
|
|
void USBD_ParseSetupRequest(USBD_SetupReqTypedef *req, uint8_t *pdata);
|
2018-06-11 13:34:03 +00:00
|
|
|
|
2020-02-27 10:03:06 +00:00
|
|
|
void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len);
|
2018-06-11 13:34:03 +00:00
|
|
|
/**
|
|
|
|
* @}
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __USB_REQUEST_H */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
2020-02-27 10:03:06 +00:00
|
|
|
*/
|
2018-06-11 13:34:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|