IOTON boards API using mbed SDK - http://ioton.cc/plataforma-ton
Dependents: ton-bot_teste ton-bot_seguidor_linha ton-bot_seguidor_parede
Fork of IOTON-API by
usbd_ctlreq.h@3:9c7195d31602, 2017-06-29 (annotated)
- Committer:
- krebyy
- Date:
- Thu Jun 29 20:20:49 2017 +0000
- Revision:
- 3:9c7195d31602
- Parent:
- 1:3a73d77c2cef
Update to TON Board V1.2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
krebyy | 1:3a73d77c2cef | 1 | /** |
krebyy | 1:3a73d77c2cef | 2 | ****************************************************************************** |
krebyy | 1:3a73d77c2cef | 3 | * @file usbd_req.h |
krebyy | 1:3a73d77c2cef | 4 | * @author MCD Application Team |
krebyy | 1:3a73d77c2cef | 5 | * @version V2.3.0 |
krebyy | 1:3a73d77c2cef | 6 | * @date 04-November-2014 |
krebyy | 1:3a73d77c2cef | 7 | * @brief Header file for the usbd_req.c file |
krebyy | 1:3a73d77c2cef | 8 | ****************************************************************************** |
krebyy | 1:3a73d77c2cef | 9 | * @attention |
krebyy | 1:3a73d77c2cef | 10 | * |
krebyy | 1:3a73d77c2cef | 11 | * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> |
krebyy | 1:3a73d77c2cef | 12 | * |
krebyy | 1:3a73d77c2cef | 13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); |
krebyy | 1:3a73d77c2cef | 14 | * You may not use this file except in compliance with the License. |
krebyy | 1:3a73d77c2cef | 15 | * You may obtain a copy of the License at: |
krebyy | 1:3a73d77c2cef | 16 | * |
krebyy | 1:3a73d77c2cef | 17 | * http://www.st.com/software_license_agreement_liberty_v2 |
krebyy | 1:3a73d77c2cef | 18 | * |
krebyy | 1:3a73d77c2cef | 19 | * Unless required by applicable law or agreed to in writing, software |
krebyy | 1:3a73d77c2cef | 20 | * distributed under the License is distributed on an "AS IS" BASIS, |
krebyy | 1:3a73d77c2cef | 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
krebyy | 1:3a73d77c2cef | 22 | * See the License for the specific language governing permissions and |
krebyy | 1:3a73d77c2cef | 23 | * limitations under the License. |
krebyy | 1:3a73d77c2cef | 24 | * |
krebyy | 1:3a73d77c2cef | 25 | ****************************************************************************** |
krebyy | 1:3a73d77c2cef | 26 | */ |
krebyy | 1:3a73d77c2cef | 27 | |
krebyy | 1:3a73d77c2cef | 28 | /* Define to prevent recursive inclusion -------------------------------------*/ |
krebyy | 1:3a73d77c2cef | 29 | #ifndef __USB_REQUEST_H |
krebyy | 1:3a73d77c2cef | 30 | #define __USB_REQUEST_H |
krebyy | 1:3a73d77c2cef | 31 | |
krebyy | 1:3a73d77c2cef | 32 | #ifdef __cplusplus |
krebyy | 1:3a73d77c2cef | 33 | extern "C" { |
krebyy | 1:3a73d77c2cef | 34 | #endif |
krebyy | 1:3a73d77c2cef | 35 | |
krebyy | 1:3a73d77c2cef | 36 | /* Includes ------------------------------------------------------------------*/ |
krebyy | 1:3a73d77c2cef | 37 | #include "usbd_def.h" |
krebyy | 1:3a73d77c2cef | 38 | |
krebyy | 1:3a73d77c2cef | 39 | |
krebyy | 1:3a73d77c2cef | 40 | /** @addtogroup STM32_USB_DEVICE_LIBRARY |
krebyy | 1:3a73d77c2cef | 41 | * @{ |
krebyy | 1:3a73d77c2cef | 42 | */ |
krebyy | 1:3a73d77c2cef | 43 | |
krebyy | 1:3a73d77c2cef | 44 | /** @defgroup USBD_REQ |
krebyy | 1:3a73d77c2cef | 45 | * @brief header file for the usbd_req.c file |
krebyy | 1:3a73d77c2cef | 46 | * @{ |
krebyy | 1:3a73d77c2cef | 47 | */ |
krebyy | 1:3a73d77c2cef | 48 | |
krebyy | 1:3a73d77c2cef | 49 | /** @defgroup USBD_REQ_Exported_Defines |
krebyy | 1:3a73d77c2cef | 50 | * @{ |
krebyy | 1:3a73d77c2cef | 51 | */ |
krebyy | 1:3a73d77c2cef | 52 | /** |
krebyy | 1:3a73d77c2cef | 53 | * @} |
krebyy | 1:3a73d77c2cef | 54 | */ |
krebyy | 1:3a73d77c2cef | 55 | |
krebyy | 1:3a73d77c2cef | 56 | |
krebyy | 1:3a73d77c2cef | 57 | /** @defgroup USBD_REQ_Exported_Types |
krebyy | 1:3a73d77c2cef | 58 | * @{ |
krebyy | 1:3a73d77c2cef | 59 | */ |
krebyy | 1:3a73d77c2cef | 60 | /** |
krebyy | 1:3a73d77c2cef | 61 | * @} |
krebyy | 1:3a73d77c2cef | 62 | */ |
krebyy | 1:3a73d77c2cef | 63 | |
krebyy | 1:3a73d77c2cef | 64 | |
krebyy | 1:3a73d77c2cef | 65 | |
krebyy | 1:3a73d77c2cef | 66 | /** @defgroup USBD_REQ_Exported_Macros |
krebyy | 1:3a73d77c2cef | 67 | * @{ |
krebyy | 1:3a73d77c2cef | 68 | */ |
krebyy | 1:3a73d77c2cef | 69 | /** |
krebyy | 1:3a73d77c2cef | 70 | * @} |
krebyy | 1:3a73d77c2cef | 71 | */ |
krebyy | 1:3a73d77c2cef | 72 | |
krebyy | 1:3a73d77c2cef | 73 | /** @defgroup USBD_REQ_Exported_Variables |
krebyy | 1:3a73d77c2cef | 74 | * @{ |
krebyy | 1:3a73d77c2cef | 75 | */ |
krebyy | 1:3a73d77c2cef | 76 | /** |
krebyy | 1:3a73d77c2cef | 77 | * @} |
krebyy | 1:3a73d77c2cef | 78 | */ |
krebyy | 1:3a73d77c2cef | 79 | |
krebyy | 1:3a73d77c2cef | 80 | /** @defgroup USBD_REQ_Exported_FunctionsPrototype |
krebyy | 1:3a73d77c2cef | 81 | * @{ |
krebyy | 1:3a73d77c2cef | 82 | */ |
krebyy | 1:3a73d77c2cef | 83 | |
krebyy | 1:3a73d77c2cef | 84 | USBD_StatusTypeDef USBD_StdDevReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); |
krebyy | 1:3a73d77c2cef | 85 | USBD_StatusTypeDef USBD_StdItfReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); |
krebyy | 1:3a73d77c2cef | 86 | USBD_StatusTypeDef USBD_StdEPReq (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); |
krebyy | 1:3a73d77c2cef | 87 | |
krebyy | 1:3a73d77c2cef | 88 | |
krebyy | 1:3a73d77c2cef | 89 | void USBD_CtlError (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req); |
krebyy | 1:3a73d77c2cef | 90 | |
krebyy | 1:3a73d77c2cef | 91 | void USBD_ParseSetupRequest (USBD_SetupReqTypedef *req, uint8_t *pdata); |
krebyy | 1:3a73d77c2cef | 92 | |
krebyy | 1:3a73d77c2cef | 93 | void USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len); |
krebyy | 1:3a73d77c2cef | 94 | /** |
krebyy | 1:3a73d77c2cef | 95 | * @} |
krebyy | 1:3a73d77c2cef | 96 | */ |
krebyy | 1:3a73d77c2cef | 97 | |
krebyy | 1:3a73d77c2cef | 98 | #ifdef __cplusplus |
krebyy | 1:3a73d77c2cef | 99 | } |
krebyy | 1:3a73d77c2cef | 100 | #endif |
krebyy | 1:3a73d77c2cef | 101 | |
krebyy | 1:3a73d77c2cef | 102 | #endif /* __USB_REQUEST_H */ |
krebyy | 1:3a73d77c2cef | 103 | |
krebyy | 1:3a73d77c2cef | 104 | /** |
krebyy | 1:3a73d77c2cef | 105 | * @} |
krebyy | 1:3a73d77c2cef | 106 | */ |
krebyy | 1:3a73d77c2cef | 107 | |
krebyy | 1:3a73d77c2cef | 108 | /** |
krebyy | 1:3a73d77c2cef | 109 | * @} |
krebyy | 1:3a73d77c2cef | 110 | */ |
krebyy | 1:3a73d77c2cef | 111 | |
krebyy | 1:3a73d77c2cef | 112 | |
krebyy | 1:3a73d77c2cef | 113 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |