Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
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:
-
HAL status
Definition at line 93 of file stm32l4xx_hal_pcd_ex.c.
Generated on Tue Jul 12 2022 17:38:54 by
