STM32H735xx HAL User Manual
|
management functions More...
Functions | |
HAL_StatusTypeDef | HAL_PCD_DevConnect (PCD_HandleTypeDef *hpcd) |
Connect the USB device. | |
HAL_StatusTypeDef | HAL_PCD_DevDisconnect (PCD_HandleTypeDef *hpcd) |
Disconnect the USB device. | |
HAL_StatusTypeDef | HAL_PCD_SetAddress (PCD_HandleTypeDef *hpcd, uint8_t address) |
Set the USB Device address. | |
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. | |
HAL_StatusTypeDef | HAL_PCD_EP_Close (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Deactivate an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_Receive (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) |
Receive an amount of data. | |
uint32_t | HAL_PCD_EP_GetRxCount (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Get Received Data Size. | |
HAL_StatusTypeDef | HAL_PCD_EP_Transmit (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) |
Send an amount of data. | |
HAL_StatusTypeDef | HAL_PCD_EP_SetStall (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Set a STALL condition over an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_ClrStall (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Clear a STALL condition over in an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_Abort (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Abort an USB EP transaction. | |
HAL_StatusTypeDef | HAL_PCD_EP_Flush (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Flush an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_ActivateRemoteWakeup (PCD_HandleTypeDef *hpcd) |
Activate remote wakeup signalling. | |
HAL_StatusTypeDef | HAL_PCD_DeActivateRemoteWakeup (PCD_HandleTypeDef *hpcd) |
De-activate remote wakeup signalling. | |
HAL_StatusTypeDef | HAL_PCD_SetTestMode (PCD_HandleTypeDef *hpcd, uint8_t testmode) |
Set the USB Device high speed test mode. |
management functions
=============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the PCD data transfers.
HAL_StatusTypeDef HAL_PCD_ActivateRemoteWakeup | ( | PCD_HandleTypeDef * | hpcd | ) |
Activate remote wakeup signalling.
hpcd | PCD handle |
HAL | status |
Definition at line 1989 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_PCD_DeActivateRemoteWakeup | ( | PCD_HandleTypeDef * | hpcd | ) |
De-activate remote wakeup signalling.
hpcd | PCD handle |
HAL | status |
Definition at line 1999 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_PCD_DevConnect | ( | PCD_HandleTypeDef * | hpcd | ) |
Connect the USB device.
hpcd | PCD handle |
HAL | status |
Definition at line 1636 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Init, and __PCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_PCD_DevDisconnect | ( | PCD_HandleTypeDef * | hpcd | ) |
Disconnect the USB device.
hpcd | PCD handle |
HAL | status |
Definition at line 1659 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Init, and __PCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_PCD_EP_Abort | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr | ||
) |
Abort an USB EP transaction.
hpcd | PCD handle |
ep_addr | endpoint address |
HAL | status |
Definition at line 1940 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::OUT_ep.
HAL_StatusTypeDef HAL_PCD_EP_Close | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr | ||
) |
Deactivate an endpoint.
hpcd | PCD handle |
ep_addr | endpoint address |
HAL | status |
Definition at line 1746 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::OUT_ep.
HAL_StatusTypeDef HAL_PCD_EP_ClrStall | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr | ||
) |
Clear a STALL condition over in an endpoint.
hpcd | PCD handle |
ep_addr | endpoint address |
HAL | status |
Definition at line 1904 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::Init, __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::OUT_ep.
HAL_StatusTypeDef HAL_PCD_EP_Flush | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr | ||
) |
Flush an endpoint.
hpcd | PCD handle |
ep_addr | endpoint address |
HAL | status |
Definition at line 1966 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Instance.
uint32_t HAL_PCD_EP_GetRxCount | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr | ||
) |
Get Received Data Size.
hpcd | PCD handle |
ep_addr | endpoint address |
Data | Size |
Definition at line 1813 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::OUT_ep.
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.
hpcd | PCD handle |
ep_addr | endpoint address |
ep_mps | endpoint max packet size |
ep_type | endpoint type |
HAL | status |
Definition at line 1701 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::OUT_ep.
HAL_StatusTypeDef HAL_PCD_EP_Receive | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr, | ||
uint8_t * | pBuf, | ||
uint32_t | len | ||
) |
Receive an amount of data.
hpcd | PCD handle |
ep_addr | endpoint address |
pBuf | pointer to the reception buffer |
len | amount of data to be received |
HAL | status |
Definition at line 1777 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Init, __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::OUT_ep.
HAL_StatusTypeDef HAL_PCD_EP_SetStall | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr | ||
) |
Set a STALL condition over an endpoint.
hpcd | PCD handle |
ep_addr | endpoint address |
HAL | status |
Definition at line 1861 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::Init, __PCD_HandleTypeDef::Instance, __PCD_HandleTypeDef::OUT_ep, and __PCD_HandleTypeDef::Setup.
HAL_StatusTypeDef HAL_PCD_EP_Transmit | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | ep_addr, | ||
uint8_t * | pBuf, | ||
uint32_t | len | ||
) |
Send an amount of data.
hpcd | PCD handle |
ep_addr | endpoint address |
pBuf | pointer to the transmission buffer |
len | amount of data to be sent |
HAL | status |
Definition at line 1825 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::IN_ep, __PCD_HandleTypeDef::Init, and __PCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_PCD_SetAddress | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | address | ||
) |
Set the USB Device address.
hpcd | PCD handle |
address | new device address |
HAL | status |
Definition at line 1684 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Instance, and __PCD_HandleTypeDef::USB_Address.
HAL_StatusTypeDef HAL_PCD_SetTestMode | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | testmode | ||
) |
Set the USB Device high speed test mode.
hpcd | PCD handle |
address | test mode |
HAL | status |
Definition at line 2039 of file stm32h7xx_hal_pcd.c.
References __PCD_HandleTypeDef::Instance.