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