STM32L443xx HAL User Manual
Functions
Peripheral Control functions
PCDEx Exported Functions

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.

Detailed Description

PCDEx control functions.

 ===============================================================================
                 ##### Extended features functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Update FIFO configuration


Function Documentation

HAL_StatusTypeDef HAL_PCDEx_ActivateBCD ( PCD_HandleTypeDef hpcd)

Activate BatteryCharging feature.

Parameters:
hpcdPCD handle
Return values:
HALstatus

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.

Parameters:
hpcdPCD handle
Return values:
HALstatus

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().

Send BatteryCharging message to user layer callback.

Parameters:
hpcdPCD handle
msgLPM message
Return values:
HALstatus

Definition at line 540 of file stm32l4xx_hal_pcd_ex.c.

Referenced by HAL_PCD_Init(), HAL_PCD_UnRegisterBcdCallback(), and HAL_PCDEx_BCD_VBUSDetect().

HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD ( PCD_HandleTypeDef hpcd)

Deactivate BatteryCharging feature.

Parameters:
hpcdPCD handle
Return values:
HALstatus

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.

Parameters:
hpcdPCD handle
Return values:
HALstatus

Definition at line 503 of file stm32l4xx_hal_pcd_ex.c.

References __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::lpm_active.

Send LPM message to user layer callback.

Parameters:
hpcdPCD handle
msgLPM message
Return values:
HALstatus

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.

Parameters:
hpcdDevice instance
ep_addrendpoint address
ep_kindendpoint 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.
Return values:
HALstatus

Definition at line 312 of file stm32l4xx_hal_pcd_ex.c.

References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::OUT_ep, and PCD_SNG_BUF.