Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2 | mjames | 1 | /** |
| 2 | ****************************************************************************** |
||
| 3 | * @file stm32f1xx_hal_pcd_ex.h |
||
| 4 | * @author MCD Application Team |
||
| 9 | mjames | 5 | * @brief Header file of PCD HAL Extension module. |
| 2 | mjames | 6 | ****************************************************************************** |
| 7 | * @attention |
||
| 8 | * |
||
| 9 | mjames | 9 | * <h2><center>© Copyright (c) 2016 STMicroelectronics. |
| 10 | * All rights reserved.</center></h2> |
||
| 2 | mjames | 11 | * |
| 9 | mjames | 12 | * This software component is licensed by ST under BSD 3-Clause license, |
| 13 | * the "License"; You may not use this file except in compliance with the |
||
| 14 | * License. You may obtain a copy of the License at: |
||
| 15 | * opensource.org/licenses/BSD-3-Clause |
||
| 2 | mjames | 16 | * |
| 17 | ****************************************************************************** |
||
| 9 | mjames | 18 | */ |
| 2 | mjames | 19 | |
| 20 | /* Define to prevent recursive inclusion -------------------------------------*/ |
||
| 9 | mjames | 21 | #ifndef STM32F1xx_HAL_PCD_EX_H |
| 22 | #define STM32F1xx_HAL_PCD_EX_H |
||
| 2 | mjames | 23 | |
| 24 | #ifdef __cplusplus |
||
| 9 | mjames | 25 | extern "C" { |
| 2 | mjames | 26 | #endif |
| 27 | |||
| 28 | /* Includes ------------------------------------------------------------------*/ |
||
| 29 | #include "stm32f1xx_hal_def.h" |
||
| 30 | |||
| 9 | mjames | 31 | #if defined (USB) || defined (USB_OTG_FS) |
| 2 | mjames | 32 | /** @addtogroup STM32F1xx_HAL_Driver |
| 33 | * @{ |
||
| 34 | */ |
||
| 35 | |||
| 36 | /** @addtogroup PCDEx |
||
| 37 | * @{ |
||
| 38 | */ |
||
| 39 | /* Exported types ------------------------------------------------------------*/ |
||
| 40 | /* Exported constants --------------------------------------------------------*/ |
||
| 41 | /* Exported macros -----------------------------------------------------------*/ |
||
| 42 | /* Exported functions --------------------------------------------------------*/ |
||
| 43 | /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions |
||
| 44 | * @{ |
||
| 45 | */ |
||
| 46 | /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions |
||
| 47 | * @{ |
||
| 48 | */ |
||
| 9 | mjames | 49 | |
| 2 | mjames | 50 | #if defined (USB_OTG_FS) |
| 51 | HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size); |
||
| 52 | HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size); |
||
| 9 | mjames | 53 | #endif /* defined (USB_OTG_FS) */ |
| 2 | mjames | 54 | |
| 55 | #if defined (USB) |
||
| 9 | mjames | 56 | HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr, |
| 57 | uint16_t ep_kind, uint32_t pmaadress); |
||
| 58 | |||
| 59 | void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state); |
||
| 60 | #endif /* defined (USB) */ |
||
| 61 | void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); |
||
| 62 | void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); |
||
| 63 | |||
| 2 | mjames | 64 | /** |
| 65 | * @} |
||
| 66 | */ |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @} |
||
| 70 | */ |
||
| 9 | mjames | 71 | |
| 2 | mjames | 72 | /** |
| 73 | * @} |
||
| 74 | */ |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @} |
||
| 78 | */ |
||
| 9 | mjames | 79 | #endif /* defined (USB) || defined (USB_OTG_FS) */ |
| 2 | mjames | 80 | |
| 81 | #ifdef __cplusplus |
||
| 82 | } |
||
| 83 | #endif |
||
| 84 | |||
| 85 | |||
| 9 | mjames | 86 | #endif /* STM32F1xx_HAL_PCD_EX_H */ |
| 2 | mjames | 87 | |
| 88 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |