STM32F439xx HAL User Manual
Functions
Input and Output operation functions
HCD Exported Functions

HCD IO operation functions. More...

Functions

HAL_StatusTypeDef HAL_HCD_HC_SubmitRequest (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t direction, uint8_t ep_type, uint8_t token, uint8_t *pbuff, uint16_t length, uint8_t do_ping)
 Submit a new URB for processing.
void HAL_HCD_IRQHandler (HCD_HandleTypeDef *hhcd)
 Handle HCD interrupt request.
__weak void HAL_HCD_SOF_Callback (HCD_HandleTypeDef *hhcd)
 SOF callback.
__weak void HAL_HCD_Connect_Callback (HCD_HandleTypeDef *hhcd)
 Connection Event callback.
__weak void HAL_HCD_Disconnect_Callback (HCD_HandleTypeDef *hhcd)
 Disconnection Event callback.
__weak void HAL_HCD_HC_NotifyURBChange_Callback (HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state)
 Notify URB state change callback.

Detailed Description

HCD IO operation functions.

 ===============================================================================
                      ##### IO operation functions #####
 ===============================================================================
 [..] This subsection provides a set of functions allowing to manage the USB Host Data 
    Transfer
       

Function Documentation

Connection Event callback.

Parameters:
hhcdHCD handle
Return values:
None

Definition at line 572 of file stm32f4xx_hal_hcd.c.

Referenced by HCD_Port_IRQHandler().

Disconnection Event callback.

Parameters:
hhcdHCD handle
Return values:
None

Definition at line 586 of file stm32f4xx_hal_hcd.c.

Referenced by HAL_HCD_IRQHandler().

void HAL_HCD_HC_NotifyURBChange_Callback ( HCD_HandleTypeDef hhcd,
uint8_t  chnum,
HCD_URBStateTypeDef  urb_state 
)

Notify URB state change callback.

Parameters:
hhcdHCD handle
chnumChannel number. This parameter can be a value from 1 to 15
urb_state,:This parameter can be one of these values: URB_IDLE/ URB_DONE/ URB_NOTREADY/ URB_NYET/ URB_ERROR/ URB_STALL/
Return values:
None

Definition at line 610 of file stm32f4xx_hal_hcd.c.

Referenced by HCD_HC_IN_IRQHandler(), and HCD_HC_OUT_IRQHandler().

HAL_StatusTypeDef HAL_HCD_HC_SubmitRequest ( HCD_HandleTypeDef hhcd,
uint8_t  ch_num,
uint8_t  direction,
uint8_t  ep_type,
uint8_t  token,
uint8_t *  pbuff,
uint16_t  length,
uint8_t  do_ping 
)

Submit a new URB for processing.

Parameters:
hhcdHCD handle
ch_numChannel number. This parameter can be a value from 1 to 15
directionChannel number. This parameter can be one of these values: 0 : Output / 1 : Input
ep_typeEndpoint Type. This parameter can be one of these values: EP_TYPE_CTRL: Control type/ EP_TYPE_ISOC: Isochronous type/ EP_TYPE_BULK: Bulk type/ EP_TYPE_INTR: Interrupt type/
tokenEndpoint Type. This parameter can be one of these values: 0: HC_PID_SETUP / 1: HC_PID_DATA1
pbuffpointer to URB data
lengthLength of URB data
do_pingactivate do ping protocol (for high speed only). This parameter can be one of these values: 0 : do ping inactive / 1 : do ping active
Return values:
HALstatus

Definition at line 331 of file stm32f4xx_hal_hcd.c.

References HCD_HandleTypeDef::hc, HCD_HandleTypeDef::Init, and HCD_HandleTypeDef::Instance.

SOF callback.

Parameters:
hhcdHCD handle
Return values:
None

Definition at line 558 of file stm32f4xx_hal_hcd.c.

Referenced by HAL_HCD_IRQHandler().