Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
stm32l4xx_hal_pcd_ex.h
00001 /** 00002 ****************************************************************************** 00003 * @file stm32l4xx_hal_pcd_ex.h 00004 * @author MCD Application Team 00005 * @version V1.5.1 00006 * @date 31-May-2016 00007 * @brief Header file of PCD HAL module. 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> 00012 * 00013 * Redistribution and use in source and binary forms, with or without modification, 00014 * are permitted provided that the following conditions are met: 00015 * 1. Redistributions of source code must retain the above copyright notice, 00016 * this list of conditions and the following disclaimer. 00017 * 2. Redistributions in binary form must reproduce the above copyright notice, 00018 * this list of conditions and the following disclaimer in the documentation 00019 * and/or other materials provided with the distribution. 00020 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00021 * may be used to endorse or promote products derived from this software 00022 * without specific prior written permission. 00023 * 00024 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00025 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00026 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00027 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00028 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00029 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00030 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00032 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 * 00035 ****************************************************************************** 00036 */ 00037 00038 /* Define to prevent recursive inclusion -------------------------------------*/ 00039 #ifndef __STM32L4xx_HAL_PCD_EX_H 00040 #define __STM32L4xx_HAL_PCD_EX_H 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #endif 00045 00046 #if defined(STM32L475xx) || defined(STM32L476xx) || \ 00047 defined(STM32L485xx) || defined(STM32L486xx) || \ 00048 defined(STM32L432xx) || defined(STM32L433xx) || \ 00049 defined(STM32L442xx) || defined(STM32L443xx) 00050 00051 /* Includes ------------------------------------------------------------------*/ 00052 #include "stm32l4xx_hal_def.h" 00053 00054 /** @addtogroup STM32L4xx_HAL_Driver 00055 * @{ 00056 */ 00057 00058 /** @addtogroup PCDEx 00059 * @{ 00060 */ 00061 /* Exported types ------------------------------------------------------------*/ 00062 typedef enum 00063 { 00064 PCD_LPM_L0_ACTIVE = 0x00, /* on */ 00065 PCD_LPM_L1_ACTIVE = 0x01, /* LPM L1 sleep */ 00066 }PCD_LPM_MsgTypeDef; 00067 00068 typedef enum 00069 { 00070 PCD_BCD_ERROR = 0xFF, 00071 PCD_BCD_CONTACT_DETECTION = 0xFE, 00072 PCD_BCD_STD_DOWNSTREAM_PORT = 0xFD, 00073 PCD_BCD_CHARGING_DOWNSTREAM_PORT = 0xFC, 00074 PCD_BCD_DEDICATED_CHARGING_PORT = 0xFB, 00075 PCD_BCD_DISCOVERY_COMPLETED = 0x00, 00076 00077 }PCD_BCD_MsgTypeDef; 00078 00079 /* Exported constants --------------------------------------------------------*/ 00080 /* Exported macros -----------------------------------------------------------*/ 00081 /* Exported functions --------------------------------------------------------*/ 00082 /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions 00083 * @{ 00084 */ 00085 /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions 00086 * @{ 00087 */ 00088 00089 #if defined(USB_OTG_FS) 00090 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size); 00091 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size); 00092 #endif /* USB_OTG_FS */ 00093 00094 #if defined (USB) 00095 HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, 00096 uint16_t ep_addr, 00097 uint16_t ep_kind, 00098 uint32_t pmaadress); 00099 #endif /* USB_FS */ 00100 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd); 00101 HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd); 00102 HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd); 00103 HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd); 00104 void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd); 00105 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); 00106 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); 00107 00108 /** 00109 * @} 00110 */ 00111 00112 /** 00113 * @} 00114 */ 00115 00116 /** 00117 * @} 00118 */ 00119 00120 /** 00121 * @} 00122 */ 00123 00124 #endif /* STM32L475xx || STM32L476xx || */ 00125 /* STM32L485xx || STM32L486xx || */ 00126 /* STM32L432xx || STM32L433xx || */ 00127 /* STM32L442xx || STM32L443xx */ 00128 00129 #ifdef __cplusplus 00130 } 00131 #endif 00132 00133 00134 #endif /* __STM32L4xx_HAL_PCD_EX_H */ 00135 00136 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 17:38:49 by
