UM1940
HAL_PCD_EP_Open
Function name
Function description
Parameters
Return values
HAL_PCD_EP_Close
Function name
Function description
Parameters
Return values
HAL_PCD_EP_Receive
Function name
Function description
Parameters
Return values
HAL_PCD_EP_Transmit
Function name
Function description
Parameters
Return values
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
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
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
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
DocID028236 Rev 2
HAL PCD Generic Driver
399/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers