STM32L443xx HAL User Manual
|
PCDEx control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_PCDEx_PMAConfig (PCD_HandleTypeDef *hpcd, uint16_t ep_addr, uint16_t ep_kind, uint32_t pmaadress) |
Configure PMA for EP. | |
HAL_StatusTypeDef | HAL_PCDEx_ActivateBCD (PCD_HandleTypeDef *hpcd) |
Activate BatteryCharging feature. | |
HAL_StatusTypeDef | HAL_PCDEx_DeActivateBCD (PCD_HandleTypeDef *hpcd) |
Deactivate BatteryCharging feature. | |
void | HAL_PCDEx_BCD_VBUSDetect (PCD_HandleTypeDef *hpcd) |
Handle BatteryCharging Process. | |
HAL_StatusTypeDef | HAL_PCDEx_ActivateLPM (PCD_HandleTypeDef *hpcd) |
Activate LPM feature. | |
HAL_StatusTypeDef | HAL_PCDEx_DeActivateLPM (PCD_HandleTypeDef *hpcd) |
Deactivate LPM 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 354 of file stm32l4xx_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 485 of file stm32l4xx_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 540 of file stm32l4xx_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 391 of file stm32l4xx_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 375 of file stm32l4xx_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 503 of file stm32l4xx_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 523 of file stm32l4xx_hal_pcd_ex.c.
Referenced by HAL_PCD_Init(), HAL_PCD_IRQHandler(), and HAL_PCD_UnRegisterLpmCallback().
HAL_StatusTypeDef HAL_PCDEx_PMAConfig | ( | PCD_HandleTypeDef * | hpcd, |
uint16_t | ep_addr, | ||
uint16_t | ep_kind, | ||
uint32_t | pmaadress | ||
) |
Configure PMA for EP.
hpcd | Device instance |
ep_addr | endpoint address |
ep_kind | endpoint Kind USB_SNG_BUF: Single Buffer used USB_DBL_BUF: Double Buffer used |
pmaadress,: | EP address in The PMA: In case of single buffer endpoint this parameter is 16-bit value providing the address in PMA allocated to endpoint. In case of double buffer endpoint this parameter is a 32-bit value providing the endpoint buffer 0 address in the LSB part of 32-bit value and endpoint buffer 1 address in the MSB part of 32-bit value. |
HAL | status |
Definition at line 312 of file stm32l4xx_hal_pcd_ex.c.
References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::OUT_ep, and PCD_SNG_BUF.