management functions
More...
|
| HAL_StatusTypeDef | HAL_PCD_DevConnect (PCD_HandleTypeDef *hpcd) |
| | Connect the USB device. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_DevDisconnect (PCD_HandleTypeDef *hpcd) |
| | Disconnect the USB device. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_SetAddress (PCD_HandleTypeDef *hpcd, uint8_t address) |
| | Set the USB Device address. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_Open (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type) |
| | Open and configure an endpoint. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_Close (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
| | Deactivate an endpoint. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_Receive (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) |
| | Receive an amount of data. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_Transmit (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) |
| | Send an amount of data. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_SetStall (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
| | Set a STALL condition over an endpoint. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_ClrStall (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
| | Clear a STALL condition over in an endpoint. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_Flush (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
| | Flush an endpoint. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_EP_Abort (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
| | Abort an USB EP transaction. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_ActivateRemoteWakeup (PCD_HandleTypeDef *hpcd) |
| | Activate remote wakeup signalling. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_DeActivateRemoteWakeup (PCD_HandleTypeDef *hpcd) |
| | De-activate remote wakeup signalling. More...
|
| |
| HAL_StatusTypeDef | HAL_PCD_SetTestMode (const PCD_HandleTypeDef *hpcd, uint8_t testmode) |
| | Set the USB Device high speed test mode. More...
|
| |
| uint32_t | HAL_PCD_EP_GetRxCount (PCD_HandleTypeDef const *hpcd, uint8_t ep_addr) |
| | Get Received Data Size. More...
|
| |
management functions
===============================================================================
##### Peripheral Control functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the PCD data
transfers.
◆ HAL_PCD_ActivateRemoteWakeup()
◆ HAL_PCD_DeActivateRemoteWakeup()
De-activate remote wakeup signalling.
- Parameters
-
- Return values
-
Definition at line 2099 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_DevConnect()
◆ HAL_PCD_DevDisconnect()
◆ HAL_PCD_EP_Abort()
Abort an USB EP transaction.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
- Return values
-
Definition at line 2040 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_Close()
Deactivate an endpoint.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
- Return values
-
Definition at line 1860 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_ClrStall()
Clear a STALL condition over in an endpoint.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
- Return values
-
Definition at line 2004 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_Flush()
Flush an endpoint.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
- Return values
-
Definition at line 2066 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_GetRxCount()
Get Received Data Size.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
- Return values
-
Definition at line 1920 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_Open()
| HAL_StatusTypeDef HAL_PCD_EP_Open |
( |
PCD_HandleTypeDef * |
hpcd, |
|
|
uint8_t |
ep_addr, |
|
|
uint16_t |
ep_mps, |
|
|
uint8_t |
ep_type |
|
) |
| |
Open and configure an endpoint.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
| ep_mps | endpoint max packet size |
| ep_type | endpoint type |
- Return values
-
Definition at line 1814 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_Receive()
| HAL_StatusTypeDef HAL_PCD_EP_Receive |
( |
PCD_HandleTypeDef * |
hpcd, |
|
|
uint8_t |
ep_addr, |
|
|
uint8_t * |
pBuf, |
|
|
uint32_t |
len |
|
) |
| |
Receive an amount of data.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
| pBuf | pointer to the reception buffer |
| len | amount of data to be received |
- Return values
-
Definition at line 1891 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_SetStall()
Set a STALL condition over an endpoint.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
- Return values
-
Definition at line 1961 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_EP_Transmit()
| HAL_StatusTypeDef HAL_PCD_EP_Transmit |
( |
PCD_HandleTypeDef * |
hpcd, |
|
|
uint8_t |
ep_addr, |
|
|
uint8_t * |
pBuf, |
|
|
uint32_t |
len |
|
) |
| |
Send an amount of data.
- Parameters
-
| hpcd | PCD handle |
| ep_addr | endpoint address |
| pBuf | pointer to the transmission buffer |
| len | amount of data to be sent |
- Return values
-
Definition at line 1932 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_SetAddress()
Set the USB Device address.
- Parameters
-
| hpcd | PCD handle |
| address | new device address |
- Return values
-
Definition at line 1797 of file stm32f4xx_hal_pcd.c.
◆ HAL_PCD_SetTestMode()
| HAL_StatusTypeDef HAL_PCD_SetTestMode |
( |
const PCD_HandleTypeDef * |
hpcd, |
|
|
uint8_t |
testmode |
|
) |
| |
Set the USB Device high speed test mode.
- Parameters
-
| hpcd | PCD handle |
| testmode | USB Device high speed test mode |
- Return values
-
Definition at line 2140 of file stm32f4xx_hal_pcd.c.