TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Peripheral Control functions

Peripheral Control functions
[PCDEx Exported Functions]

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.
HAL_StatusTypeDef HAL_PCDEx_PMAConfig (PCD_HandleTypeDef *hpcd, uint16_t ep_addr, uint16_t ep_kind, uint32_t pmaadress)
 Configure PMA for EP.
__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:
hpcd,:PCD handle
Return values:
HALstatus

Definition at line 251 of file stm32l4xx_hal_pcd_ex.c.

HAL_StatusTypeDef HAL_PCDEx_ActivateLPM ( PCD_HandleTypeDef *  hpcd )

Activate LPM feature.

Parameters:
hpcd,:PCD handle
Return values:
HALstatus

Definition at line 147 of file stm32l4xx_hal_pcd_ex.c.

__weak void HAL_PCDEx_BCD_Callback ( PCD_HandleTypeDef *  hpcd,
PCD_BCD_MsgTypeDef  msg 
)

Send BatteryCharging message to user layer callback.

Parameters:
hpcd,:PCD handle
msg,:LPM message
Return values:
HALstatus

Definition at line 489 of file stm32l4xx_hal_pcd_ex.c.

void HAL_PCDEx_BCD_VBUSDetect ( PCD_HandleTypeDef *  hpcd )

Handle BatteryCharging Process.

Parameters:
hpcd,:PCD handle
Return values:
HALstatus

Definition at line 180 of file stm32l4xx_hal_pcd_ex.c.

HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD ( PCD_HandleTypeDef *  hpcd )

Deactivate BatteryCharging feature.

Parameters:
hpcd,:PCD handle
Return values:
HALstatus

Definition at line 266 of file stm32l4xx_hal_pcd_ex.c.

HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM ( PCD_HandleTypeDef *  hpcd )

Deactivate LPM feature.

Parameters:
hpcd,:PCD handle
Return values:
HALstatus

Definition at line 164 of file stm32l4xx_hal_pcd_ex.c.

__weak void HAL_PCDEx_LPM_Callback ( PCD_HandleTypeDef *  hpcd,
PCD_LPM_MsgTypeDef  msg 
)

Send LPM message to user layer callback.

Parameters:
hpcd,:PCD handle
msg,:LPM message
Return values:
HALstatus

Definition at line 472 of file stm32l4xx_hal_pcd_ex.c.

HAL_StatusTypeDef HAL_PCDEx_PMAConfig ( PCD_HandleTypeDef *  hpcd,
uint16_t  ep_addr,
uint16_t  ep_kind,
uint32_t  pmaadress 
)

Configure PMA for EP.

Parameters:
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.
Return values:
HALstatus

Definition at line 293 of file stm32l4xx_hal_pcd_ex.c.

HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo ( PCD_HandleTypeDef *  hpcd,
uint16_t  size 
)

Set Rx FIFO.

Parameters:
hpcd,:PCD handle
size,:Size of Rx fifo
Return values:
HALstatus

Definition at line 135 of file stm32l4xx_hal_pcd_ex.c.

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

Set Tx FIFO.

Parameters:
hpcd,:PCD handle
fifo,:The number of Tx fifo
size,:Fifo size
Return values:
HALstatus

Definition at line 93 of file stm32l4xx_hal_pcd_ex.c.