STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Peripheral Control functions

PCDEx control functions. More...

Collaboration diagram for Peripheral Control functions:

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_LPM_Callback (PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg)
 Send LPM message to user layer callback.
 
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_PCDEx_SetTxFiFo()

HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo ( PCD_HandleTypeDef * hpcd,
uint8_t fifo,
uint16_t size )

#include <stm32f4xx_hal_pcd_ex.h>

Set Tx FIFO.

Parameters
hpcdPCD handle
fifoThe number of Tx fifo
sizeFifo size
Return values
HALstatus

Definition at line 70 of file stm32f4xx_hal_pcd_ex.c.

References HAL_OK, and PCD_HandleTypeDef::Instance.

◆ HAL_PCDEx_SetRxFiFo()

HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo ( PCD_HandleTypeDef * hpcd,
uint16_t size )

#include <stm32f4xx_hal_pcd_ex.h>

Set Rx FIFO.

Parameters
hpcdPCD handle
sizeSize of Rx fifo
Return values
HALstatus

Definition at line 112 of file stm32f4xx_hal_pcd_ex.c.

References HAL_OK, and PCD_HandleTypeDef::Instance.

◆ HAL_PCDEx_ActivateLPM()

HAL_StatusTypeDef HAL_PCDEx_ActivateLPM ( PCD_HandleTypeDef * hpcd)

#include <stm32f4xx_hal_pcd_ex.h>

Activate LPM feature.

Parameters
hpcdPCD handle
Return values
HALstatus

Definition at line 126 of file stm32f4xx_hal_pcd_ex.c.

References HAL_OK, PCD_HandleTypeDef::Instance, PCD_HandleTypeDef::lpm_active, LPM_L0, and PCD_HandleTypeDef::LPM_State.

Referenced by HAL_PCD_Init().

◆ HAL_PCDEx_DeActivateLPM()

HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM ( PCD_HandleTypeDef * hpcd)

#include <stm32f4xx_hal_pcd_ex.h>

Deactivate LPM feature.

Parameters
hpcdPCD handle
Return values
HALstatus

Definition at line 143 of file stm32f4xx_hal_pcd_ex.c.

References HAL_OK, PCD_HandleTypeDef::Instance, and PCD_HandleTypeDef::lpm_active.

◆ HAL_PCDEx_LPM_Callback()

__weak void HAL_PCDEx_LPM_Callback ( PCD_HandleTypeDef * hpcd,
PCD_LPM_MsgTypeDef msg )

#include <stm32f4xx_hal_pcd_ex.h>

Send LPM message to user layer callback.

Parameters
hpcdPCD handle
msgLPM message
Return values
HALstatus

Definition at line 303 of file stm32f4xx_hal_pcd_ex.c.

References UNUSED.

Referenced by HAL_PCD_Init(), and HAL_PCD_IRQHandler().

◆ HAL_PCDEx_BCD_Callback()

__weak void HAL_PCDEx_BCD_Callback ( PCD_HandleTypeDef * hpcd,
PCD_BCD_MsgTypeDef msg )

#include <stm32f4xx_hal_pcd_ex.h>

Send BatteryCharging message to user layer callback.

Parameters
hpcdPCD handle
msgLPM message
Return values
HALstatus

Definition at line 320 of file stm32f4xx_hal_pcd_ex.c.

References UNUSED.

Referenced by HAL_PCD_Init().