/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }

Fork of mbed by mbed official

Committer:
fblanc
Date:
Fri Dec 05 15:42:32 2014 +0000
Revision:
93:9dd889aeda0e
Parent:
92:4fc01daae5a5
substitute line 894 extern } by }; /TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h

Who changed what in which revision?

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