37 #ifndef __STM32F4xx_HAL_PCD_EX_H
38 #define __STM32F4xx_HAL_PCD_EX_H
43 #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) || \
44 defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \
45 defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) || \
46 defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \
47 defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
59 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \
60 defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
63 PCD_LPM_L0_ACTIVE = 0x00U,
64 PCD_LPM_L1_ACTIVE = 0x01U
68 #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
71 PCD_BCD_ERROR = 0xFFU,
72 PCD_BCD_CONTACT_DETECTION = 0xFEU,
73 PCD_BCD_STD_DOWNSTREAM_PORT = 0xFDU,
74 PCD_BCD_CHARGING_DOWNSTREAM_PORT = 0xFCU,
75 PCD_BCD_DEDICATED_CHARGING_PORT = 0xFBU,
76 PCD_BCD_DISCOVERY_COMPLETED = 0x00U
91 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || \
92 defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
95 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
97 #if defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
100 void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd);
101 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
102 void HAL_PCDEx_ADP_Sensing_Start(PCD_HandleTypeDef *hpcd);
103 void HAL_PCDEx_ADP_Sensing_Callback(PCD_HandleTypeDef *hpcd);