STM32H735xx HAL User Manual
|
PCDEx control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_PCDEx_SetTxFiFo (PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size) |
Set Tx FIFO. | |
HAL_StatusTypeDef | HAL_PCDEx_SetRxFiFo (PCD_HandleTypeDef *hpcd, uint16_t size) |
Set Rx FIFO. | |
HAL_StatusTypeDef | HAL_PCDEx_ActivateLPM (PCD_HandleTypeDef *hpcd) |
Activate LPM feature. | |
HAL_StatusTypeDef | HAL_PCDEx_DeActivateLPM (PCD_HandleTypeDef *hpcd) |
Deactivate LPM feature. | |
void | HAL_PCDEx_BCD_VBUSDetect (PCD_HandleTypeDef *hpcd) |
Handle BatteryCharging Process. | |
HAL_StatusTypeDef | HAL_PCDEx_ActivateBCD (PCD_HandleTypeDef *hpcd) |
Activate BatteryCharging feature. | |
HAL_StatusTypeDef | HAL_PCDEx_DeActivateBCD (PCD_HandleTypeDef *hpcd) |
Deactivate BatteryCharging feature. | |
__weak void | HAL_PCDEx_LPM_Callback (PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) |
Send LPM message to user layer callback. | |
__weak void | HAL_PCDEx_BCD_Callback (PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg) |
Send BatteryCharging message to user layer callback. |
PCDEx control functions.
=============================================================================== ##### Extended features functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Update FIFO configuration
HAL_StatusTypeDef HAL_PCDEx_ActivateBCD | ( | PCD_HandleTypeDef * | hpcd | ) |
Activate BatteryCharging feature.
hpcd | PCD handle |
HAL | status |
Definition at line 255 of file stm32h7xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::battery_charging_active, and __PCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_PCDEx_ActivateLPM | ( | PCD_HandleTypeDef * | hpcd | ) |
Activate LPM feature.
hpcd | PCD handle |
HAL | status |
Definition at line 124 of file stm32h7xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::Instance, __PCD_HandleTypeDef::lpm_active, LPM_L0, and __PCD_HandleTypeDef::LPM_State.
Referenced by HAL_PCD_Init().
void HAL_PCDEx_BCD_Callback | ( | PCD_HandleTypeDef * | hpcd, |
PCD_BCD_MsgTypeDef | msg | ||
) |
Send BatteryCharging message to user layer callback.
hpcd | PCD handle |
msg | LPM message |
HAL | status |
Definition at line 318 of file stm32h7xx_hal_pcd_ex.c.
Referenced by HAL_PCD_Init(), HAL_PCD_UnRegisterBcdCallback(), and HAL_PCDEx_BCD_VBUSDetect().
void HAL_PCDEx_BCD_VBUSDetect | ( | PCD_HandleTypeDef * | hpcd | ) |
Handle BatteryCharging Process.
hpcd | PCD handle |
HAL | status |
Definition at line 158 of file stm32h7xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::BCDCallback, HAL_Delay(), HAL_GetTick(), HAL_PCDEx_BCD_Callback(), HAL_PCDEx_DeActivateBCD(), __PCD_HandleTypeDef::Instance, PCD_BCD_CHARGING_DOWNSTREAM_PORT, PCD_BCD_CONTACT_DETECTION, PCD_BCD_DEDICATED_CHARGING_PORT, PCD_BCD_DISCOVERY_COMPLETED, PCD_BCD_ERROR, and PCD_BCD_STD_DOWNSTREAM_PORT.
HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD | ( | PCD_HandleTypeDef * | hpcd | ) |
Deactivate BatteryCharging feature.
hpcd | PCD handle |
HAL | status |
Definition at line 278 of file stm32h7xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::battery_charging_active, and __PCD_HandleTypeDef::Instance.
Referenced by HAL_PCDEx_BCD_VBUSDetect().
HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM | ( | PCD_HandleTypeDef * | hpcd | ) |
Deactivate LPM feature.
hpcd | PCD handle |
HAL | status |
Definition at line 141 of file stm32h7xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::lpm_active.
void HAL_PCDEx_LPM_Callback | ( | PCD_HandleTypeDef * | hpcd, |
PCD_LPM_MsgTypeDef | msg | ||
) |
Send LPM message to user layer callback.
hpcd | PCD handle |
msg | LPM message |
HAL | status |
Definition at line 301 of file stm32h7xx_hal_pcd_ex.c.
Referenced by HAL_PCD_Init(), HAL_PCD_IRQHandler(), and HAL_PCD_UnRegisterLpmCallback().
HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo | ( | PCD_HandleTypeDef * | hpcd, |
uint16_t | size | ||
) |
Set Rx FIFO.
hpcd | PCD handle |
size | Size of Rx fifo |
HAL | status |
Definition at line 112 of file stm32h7xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | fifo, | ||
uint16_t | size | ||
) |
Set Tx FIFO.
hpcd | PCD handle |
fifo | The number of Tx fifo |
size | Fifo size |
HAL | status |
Definition at line 70 of file stm32h7xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::Instance.