mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Sep 12 16:41:52 2014 +0100
Revision:
89:552587b429a1
Child:
92:4fc01daae5a5
Release 89 of the mbed library

Main changes:

- low power optimizations for Nordic targets
- code structure changes for Freescale K64F targets
- bug fixes in various backends

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 89:552587b429a1 1 /**
bogdanm 89:552587b429a1 2 ******************************************************************************
bogdanm 89:552587b429a1 3 * @file stm32f4xx_hal_pcd.h
bogdanm 89:552587b429a1 4 * @author MCD Application Team
bogdanm 89:552587b429a1 5 * @version V1.1.0RC2
bogdanm 89:552587b429a1 6 * @date 14-May-2014
bogdanm 89:552587b429a1 7 * @brief Header file of PCD HAL module.
bogdanm 89:552587b429a1 8 ******************************************************************************
bogdanm 89:552587b429a1 9 * @attention
bogdanm 89:552587b429a1 10 *
bogdanm 89:552587b429a1 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
bogdanm 89:552587b429a1 12 *
bogdanm 89:552587b429a1 13 * Redistribution and use in source and binary forms, with or without modification,
bogdanm 89:552587b429a1 14 * are permitted provided that the following conditions are met:
bogdanm 89:552587b429a1 15 * 1. Redistributions of source code must retain the above copyright notice,
bogdanm 89:552587b429a1 16 * this list of conditions and the following disclaimer.
bogdanm 89:552587b429a1 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
bogdanm 89:552587b429a1 18 * this list of conditions and the following disclaimer in the documentation
bogdanm 89:552587b429a1 19 * and/or other materials provided with the distribution.
bogdanm 89:552587b429a1 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bogdanm 89:552587b429a1 21 * may be used to endorse or promote products derived from this software
bogdanm 89:552587b429a1 22 * without specific prior written permission.
bogdanm 89:552587b429a1 23 *
bogdanm 89:552587b429a1 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 89:552587b429a1 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 89:552587b429a1 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bogdanm 89:552587b429a1 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bogdanm 89:552587b429a1 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bogdanm 89:552587b429a1 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bogdanm 89:552587b429a1 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bogdanm 89:552587b429a1 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bogdanm 89:552587b429a1 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bogdanm 89:552587b429a1 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bogdanm 89:552587b429a1 34 *
bogdanm 89:552587b429a1 35 ******************************************************************************
bogdanm 89:552587b429a1 36 */
bogdanm 89:552587b429a1 37
bogdanm 89:552587b429a1 38 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 89:552587b429a1 39 #ifndef __STM32F4xx_HAL_PCD_H
bogdanm 89:552587b429a1 40 #define __STM32F4xx_HAL_PCD_H
bogdanm 89:552587b429a1 41
bogdanm 89:552587b429a1 42 #ifdef __cplusplus
bogdanm 89:552587b429a1 43 extern "C" {
bogdanm 89:552587b429a1 44 #endif
bogdanm 89:552587b429a1 45
bogdanm 89:552587b429a1 46 /* Includes ------------------------------------------------------------------*/
bogdanm 89:552587b429a1 47 #include "stm32f4xx_ll_usb.h"
bogdanm 89:552587b429a1 48
bogdanm 89:552587b429a1 49 /** @addtogroup STM32F4xx_HAL_Driver
bogdanm 89:552587b429a1 50 * @{
bogdanm 89:552587b429a1 51 */
bogdanm 89:552587b429a1 52
bogdanm 89:552587b429a1 53 /** @addtogroup PCD
bogdanm 89:552587b429a1 54 * @{
bogdanm 89:552587b429a1 55 */
bogdanm 89:552587b429a1 56
bogdanm 89:552587b429a1 57 /* Exported types ------------------------------------------------------------*/
bogdanm 89:552587b429a1 58
bogdanm 89:552587b429a1 59 /**
bogdanm 89:552587b429a1 60 * @brief PCD State structures definition
bogdanm 89:552587b429a1 61 */
bogdanm 89:552587b429a1 62 typedef enum
bogdanm 89:552587b429a1 63 {
bogdanm 89:552587b429a1 64 PCD_READY = 0x00,
bogdanm 89:552587b429a1 65 PCD_ERROR = 0x01,
bogdanm 89:552587b429a1 66 PCD_BUSY = 0x02,
bogdanm 89:552587b429a1 67 PCD_TIMEOUT = 0x03
bogdanm 89:552587b429a1 68 } PCD_StateTypeDef;
bogdanm 89:552587b429a1 69
bogdanm 89:552587b429a1 70
bogdanm 89:552587b429a1 71 typedef USB_OTG_GlobalTypeDef PCD_TypeDef;
bogdanm 89:552587b429a1 72 typedef USB_OTG_CfgTypeDef PCD_InitTypeDef;
bogdanm 89:552587b429a1 73 typedef USB_OTG_EPTypeDef PCD_EPTypeDef ;
bogdanm 89:552587b429a1 74
bogdanm 89:552587b429a1 75 /**
bogdanm 89:552587b429a1 76 * @brief PCD Handle Structure definition
bogdanm 89:552587b429a1 77 */
bogdanm 89:552587b429a1 78 typedef struct
bogdanm 89:552587b429a1 79 {
bogdanm 89:552587b429a1 80 PCD_TypeDef *Instance; /*!< Register base address */
bogdanm 89:552587b429a1 81 PCD_InitTypeDef Init; /*!< PCD required parameters */
bogdanm 89:552587b429a1 82 PCD_EPTypeDef IN_ep[15]; /*!< IN endpoint parameters */
bogdanm 89:552587b429a1 83 PCD_EPTypeDef OUT_ep[15]; /*!< OUT endpoint parameters */
bogdanm 89:552587b429a1 84 HAL_LockTypeDef Lock; /*!< PCD peripheral status */
bogdanm 89:552587b429a1 85 __IO PCD_StateTypeDef State; /*!< PCD communication state */
bogdanm 89:552587b429a1 86 uint32_t Setup[12]; /*!< Setup packet buffer */
bogdanm 89:552587b429a1 87 void *pData; /*!< Pointer to upper stack Handler */
bogdanm 89:552587b429a1 88
bogdanm 89:552587b429a1 89 } PCD_HandleTypeDef;
bogdanm 89:552587b429a1 90
bogdanm 89:552587b429a1 91 /* Exported constants --------------------------------------------------------*/
bogdanm 89:552587b429a1 92 /** @defgroup PCD_Exported_Constants
bogdanm 89:552587b429a1 93 * @{
bogdanm 89:552587b429a1 94 */
bogdanm 89:552587b429a1 95
bogdanm 89:552587b429a1 96 /** @defgroup PCD_Speed
bogdanm 89:552587b429a1 97 * @{
bogdanm 89:552587b429a1 98 */
bogdanm 89:552587b429a1 99 #define PCD_SPEED_HIGH 0
bogdanm 89:552587b429a1 100 #define PCD_SPEED_HIGH_IN_FULL 1
bogdanm 89:552587b429a1 101 #define PCD_SPEED_FULL 2
bogdanm 89:552587b429a1 102 /**
bogdanm 89:552587b429a1 103 * @}
bogdanm 89:552587b429a1 104 */
bogdanm 89:552587b429a1 105
bogdanm 89:552587b429a1 106 /** @defgroup PCD_PHY_Module
bogdanm 89:552587b429a1 107 * @{
bogdanm 89:552587b429a1 108 */
bogdanm 89:552587b429a1 109 #define PCD_PHY_ULPI 1
bogdanm 89:552587b429a1 110 #define PCD_PHY_EMBEDDED 2
bogdanm 89:552587b429a1 111 /**
bogdanm 89:552587b429a1 112 * @}
bogdanm 89:552587b429a1 113 */
bogdanm 89:552587b429a1 114
bogdanm 89:552587b429a1 115 /** @defgroup PCD_Instance_definition
bogdanm 89:552587b429a1 116 * @{
bogdanm 89:552587b429a1 117 */
bogdanm 89:552587b429a1 118 #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)
bogdanm 89:552587b429a1 119 #define IS_PCD_ALL_INSTANCE(INSTANCE) (((INSTANCE) == USB_OTG_FS) || \
bogdanm 89:552587b429a1 120 ((INSTANCE) == USB_OTG_HS))
bogdanm 89:552587b429a1 121 #elif defined(STM32F401xC) || defined(STM32F401xE)
bogdanm 89:552587b429a1 122 #define IS_PCD_ALL_INSTANCE(INSTANCE) (((INSTANCE) == USB_OTG_FS))
bogdanm 89:552587b429a1 123 #endif
bogdanm 89:552587b429a1 124
bogdanm 89:552587b429a1 125 /**
bogdanm 89:552587b429a1 126 * @}
bogdanm 89:552587b429a1 127 */
bogdanm 89:552587b429a1 128
bogdanm 89:552587b429a1 129 /**
bogdanm 89:552587b429a1 130 * @}
bogdanm 89:552587b429a1 131 */
bogdanm 89:552587b429a1 132
bogdanm 89:552587b429a1 133 /* Exported macro ------------------------------------------------------------*/
bogdanm 89:552587b429a1 134
bogdanm 89:552587b429a1 135 /** @defgroup PCD_Interrupt_Clock
bogdanm 89:552587b429a1 136 * @brief macros to handle interrupts and specific clock configurations
bogdanm 89:552587b429a1 137 * @{
bogdanm 89:552587b429a1 138 */
bogdanm 89:552587b429a1 139 #define __HAL_PCD_ENABLE(__HANDLE__) USB_EnableGlobalInt ((__HANDLE__)->Instance)
bogdanm 89:552587b429a1 140 #define __HAL_PCD_DISABLE(__HANDLE__) USB_DisableGlobalInt ((__HANDLE__)->Instance)
bogdanm 89:552587b429a1 141
bogdanm 89:552587b429a1 142 #define __HAL_GET_FLAG(__HANDLE__, __INTERRUPT__) ((USB_ReadInterrupts((__HANDLE__)->Instance) & (__INTERRUPT__)) == (__INTERRUPT__))
bogdanm 89:552587b429a1 143 #define __HAL_CLEAR_FLAG(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->GINTSTS) |= (__INTERRUPT__))
bogdanm 89:552587b429a1 144 #define __HAL_IS_INVALID_INTERRUPT(__HANDLE__) (USB_ReadInterrupts((__HANDLE__)->Instance) == 0)
bogdanm 89:552587b429a1 145
bogdanm 89:552587b429a1 146
bogdanm 89:552587b429a1 147 #define __HAL_PCD_UNGATE_PHYCLOCK(__HANDLE__) *(__IO uint32_t *)((uint32_t)((__HANDLE__)->Instance) + USB_OTG_PCGCCTL_BASE) &= \
bogdanm 89:552587b429a1 148 ~(USB_OTG_PCGCCTL_STOPCLK)
bogdanm 89:552587b429a1 149
bogdanm 89:552587b429a1 150
bogdanm 89:552587b429a1 151 #define __HAL_PCD_GATE_PHYCLOCK(__HANDLE__) *(__IO uint32_t *)((uint32_t)((__HANDLE__)->Instance) + USB_OTG_PCGCCTL_BASE) |= USB_OTG_PCGCCTL_STOPCLK
bogdanm 89:552587b429a1 152
bogdanm 89:552587b429a1 153 #define __HAL_PCD_IS_PHY_SUSPENDED(__HANDLE__) ((*(__IO uint32_t *)((uint32_t)((__HANDLE__)->Instance) + USB_OTG_PCGCCTL_BASE))&0x10)
bogdanm 89:552587b429a1 154
bogdanm 89:552587b429a1 155 #define USB_FS_EXTI_TRIGGER_RISING_EDGE ((uint32_t)0x08)
bogdanm 89:552587b429a1 156 #define USB_FS_EXTI_TRIGGER_FALLING_EDGE ((uint32_t)0x0C)
bogdanm 89:552587b429a1 157 #define USB_FS_EXTI_TRIGGER_BOTH_EDGE ((uint32_t)0x10)
bogdanm 89:552587b429a1 158
bogdanm 89:552587b429a1 159 #define USB_HS_EXTI_TRIGGER_RISING_EDGE ((uint32_t)0x08)
bogdanm 89:552587b429a1 160 #define USB_HS_EXTI_TRIGGER_FALLING_EDGE ((uint32_t)0x0C)
bogdanm 89:552587b429a1 161 #define USB_HS_EXTI_TRIGGER_BOTH_EDGE ((uint32_t)0x10)
bogdanm 89:552587b429a1 162
bogdanm 89:552587b429a1 163
bogdanm 89:552587b429a1 164 #define USB_HS_EXTI_LINE_WAKEUP ((uint32_t)0x00100000) /*!< External interrupt line 20 Connected to the USB HS EXTI Line */
bogdanm 89:552587b429a1 165 #define USB_FS_EXTI_LINE_WAKEUP ((uint32_t)0x00040000) /*!< External interrupt line 18 Connected to the USB FS EXTI Line */
bogdanm 89:552587b429a1 166
bogdanm 89:552587b429a1 167
bogdanm 89:552587b429a1 168
bogdanm 89:552587b429a1 169 #define __HAL_USB_HS_EXTI_ENABLE_IT() EXTI->IMR |= (USB_HS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 170 #define __HAL_USB_HS_EXTI_DISABLE_IT() EXTI->IMR &= ~(USB_HS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 171 #define __HAL_USB_HS_EXTI_GET_FLAG() EXTI->PR & (USB_HS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 172 #define __HAL_USB_HS_EXTI_CLEAR_FLAG() EXTI->PR = (USB_HS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 173
bogdanm 89:552587b429a1 174 #define __HAL_USB_HS_EXTI_SET_RISING_EGDE_TRIGGER() EXTI->FTSR &= ~(USB_HS_EXTI_LINE_WAKEUP);\
bogdanm 89:552587b429a1 175 EXTI->RTSR |= USB_HS_EXTI_LINE_WAKEUP
bogdanm 89:552587b429a1 176
bogdanm 89:552587b429a1 177
bogdanm 89:552587b429a1 178 #define __HAL_USB_HS_EXTI_SET_FALLING_EGDE_TRIGGER() EXTI->FTSR |= (USB_HS_EXTI_LINE_WAKEUP);\
bogdanm 89:552587b429a1 179 EXTI->RTSR &= ~(USB_HS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 180
bogdanm 89:552587b429a1 181
bogdanm 89:552587b429a1 182 #define __HAL_USB_HS_EXTI_SET_FALLINGRISING_TRIGGER() EXTI->RTSR &= ~(USB_HS_EXTI_LINE_WAKEUP);\
bogdanm 89:552587b429a1 183 EXTI->FTSR &= ~(USB_HS_EXTI_LINE_WAKEUP;)\
bogdanm 89:552587b429a1 184 EXTI->RTSR |= USB_HS_EXTI_LINE_WAKEUP;\
bogdanm 89:552587b429a1 185 EXTI->FTSR |= USB_HS_EXTI_LINE_WAKEUP
bogdanm 89:552587b429a1 186
bogdanm 89:552587b429a1 187
bogdanm 89:552587b429a1 188 #define __HAL_USB_FS_EXTI_ENABLE_IT() EXTI->IMR |= USB_FS_EXTI_LINE_WAKEUP
bogdanm 89:552587b429a1 189 #define __HAL_USB_FS_EXTI_DISABLE_IT() EXTI->IMR &= ~(USB_FS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 190 #define __HAL_USB_FS_EXTI_GET_FLAG() EXTI->PR & (USB_FS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 191 #define __HAL_USB_FS_EXTI_CLEAR_FLAG() EXTI->PR = USB_FS_EXTI_LINE_WAKEUP
bogdanm 89:552587b429a1 192
bogdanm 89:552587b429a1 193 #define __HAL_USB_FS_EXTI_SET_RISING_EGDE_TRIGGER() EXTI->FTSR &= ~(USB_FS_EXTI_LINE_WAKEUP);\
bogdanm 89:552587b429a1 194 EXTI->RTSR |= USB_FS_EXTI_LINE_WAKEUP
bogdanm 89:552587b429a1 195
bogdanm 89:552587b429a1 196
bogdanm 89:552587b429a1 197 #define __HAL_USB_FS_EXTI_SET_FALLING_EGDE_TRIGGER() EXTI->FTSR |= (USB_FS_EXTI_LINE_WAKEUP);\
bogdanm 89:552587b429a1 198 EXTI->RTSR &= ~(USB_FS_EXTI_LINE_WAKEUP)
bogdanm 89:552587b429a1 199
bogdanm 89:552587b429a1 200
bogdanm 89:552587b429a1 201 #define __HAL_USB_FS_EXTI_SET_FALLINGRISING_TRIGGER() EXTI->RTSR &= ~(USB_FS_EXTI_LINE_WAKEUP);\
bogdanm 89:552587b429a1 202 EXTI->FTSR &= ~(USB_FS_EXTI_LINE_WAKEUP);\
bogdanm 89:552587b429a1 203 EXTI->RTSR |= USB_FS_EXTI_LINE_WAKEUP;\
bogdanm 89:552587b429a1 204 EXTI->FTSR |= USB_FS_EXTI_LINE_WAKEUP
bogdanm 89:552587b429a1 205
bogdanm 89:552587b429a1 206 /**
bogdanm 89:552587b429a1 207 * @}
bogdanm 89:552587b429a1 208 */
bogdanm 89:552587b429a1 209
bogdanm 89:552587b429a1 210 /* Exported functions --------------------------------------------------------*/
bogdanm 89:552587b429a1 211
bogdanm 89:552587b429a1 212 /* Initialization/de-initialization functions **********************************/
bogdanm 89:552587b429a1 213 HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 214 HAL_StatusTypeDef HAL_PCD_DeInit (PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 215 void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 216 void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 217
bogdanm 89:552587b429a1 218 /* I/O operation functions *****************************************************/
bogdanm 89:552587b429a1 219 /* Non-Blocking mode: Interrupt */
bogdanm 89:552587b429a1 220 HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 221 HAL_StatusTypeDef HAL_PCD_Stop(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 222 void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 223
bogdanm 89:552587b429a1 224 void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
bogdanm 89:552587b429a1 225 void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
bogdanm 89:552587b429a1 226 void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 227 void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 228 void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 229 void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 230 void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 231 void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
bogdanm 89:552587b429a1 232 void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum);
bogdanm 89:552587b429a1 233 void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 234 void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 235
bogdanm 89:552587b429a1 236
bogdanm 89:552587b429a1 237
bogdanm 89:552587b429a1 238 /* Peripheral Control functions ************************************************/
bogdanm 89:552587b429a1 239 HAL_StatusTypeDef HAL_PCD_DevConnect(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 240 HAL_StatusTypeDef HAL_PCD_DevDisconnect(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 241 HAL_StatusTypeDef HAL_PCD_SetAddress(PCD_HandleTypeDef *hpcd, uint8_t address);
bogdanm 89:552587b429a1 242 HAL_StatusTypeDef HAL_PCD_EP_Open(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type);
bogdanm 89:552587b429a1 243 HAL_StatusTypeDef HAL_PCD_EP_Close(PCD_HandleTypeDef *hpcd, uint8_t ep_addr);
bogdanm 89:552587b429a1 244 HAL_StatusTypeDef HAL_PCD_EP_Receive(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len);
bogdanm 89:552587b429a1 245 HAL_StatusTypeDef HAL_PCD_EP_Transmit(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len);
bogdanm 89:552587b429a1 246 uint16_t HAL_PCD_EP_GetRxCount(PCD_HandleTypeDef *hpcd, uint8_t ep_addr);
bogdanm 89:552587b429a1 247 HAL_StatusTypeDef HAL_PCD_EP_SetStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr);
bogdanm 89:552587b429a1 248 HAL_StatusTypeDef HAL_PCD_EP_ClrStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr);
bogdanm 89:552587b429a1 249 HAL_StatusTypeDef HAL_PCD_EP_Flush(PCD_HandleTypeDef *hpcd, uint8_t ep_addr);
bogdanm 89:552587b429a1 250 HAL_StatusTypeDef HAL_PCD_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
bogdanm 89:552587b429a1 251 HAL_StatusTypeDef HAL_PCD_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
bogdanm 89:552587b429a1 252 HAL_StatusTypeDef HAL_PCD_ActiveRemoteWakeup(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 253 HAL_StatusTypeDef HAL_PCD_DeActiveRemoteWakeup(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 254 /* Peripheral State functions **************************************************/
bogdanm 89:552587b429a1 255 PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef *hpcd);
bogdanm 89:552587b429a1 256
bogdanm 89:552587b429a1 257 /**
bogdanm 89:552587b429a1 258 * @}
bogdanm 89:552587b429a1 259 */
bogdanm 89:552587b429a1 260
bogdanm 89:552587b429a1 261 /**
bogdanm 89:552587b429a1 262 * @}
bogdanm 89:552587b429a1 263 */
bogdanm 89:552587b429a1 264
bogdanm 89:552587b429a1 265 #ifdef __cplusplus
bogdanm 89:552587b429a1 266 }
bogdanm 89:552587b429a1 267 #endif
bogdanm 89:552587b429a1 268
bogdanm 89:552587b429a1 269
bogdanm 89:552587b429a1 270 #endif /* __STM32F4xx_HAL_PCD_H */
bogdanm 89:552587b429a1 271
bogdanm 89:552587b429a1 272 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/