|
STM32F439xx HAL User Manual
|
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. | |
HCD IO operation functions.
===============================================================================
##### IO operation functions #####
===============================================================================
[..] This subsection provides a set of functions allowing to manage the USB Host Data
Transfer
| void HAL_HCD_Connect_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
Connection Event callback.
| hhcd | HCD handle |
| None |
Definition at line 572 of file stm32f4xx_hal_hcd.c.
Referenced by HCD_Port_IRQHandler().
| void HAL_HCD_Disconnect_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
Disconnection Event callback.
| hhcd | HCD handle |
| 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.
| hhcd | HCD handle |
| chnum | Channel 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/ |
| 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.
| hhcd | HCD handle |
| ch_num | Channel number. This parameter can be a value from 1 to 15 |
| direction | Channel number. This parameter can be one of these values: 0 : Output / 1 : Input |
| ep_type | Endpoint 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/ |
| token | Endpoint Type. This parameter can be one of these values: 0: HC_PID_SETUP / 1: HC_PID_DATA1 |
| pbuff | pointer to URB data |
| length | Length of URB data |
| do_ping | activate do ping protocol (for high speed only). This parameter can be one of these values: 0 : do ping inactive / 1 : do ping active |
| HAL | status |
Definition at line 331 of file stm32f4xx_hal_hcd.c.
References HCD_HandleTypeDef::hc, HCD_HandleTypeDef::Init, and HCD_HandleTypeDef::Instance.
| void HAL_HCD_IRQHandler | ( | HCD_HandleTypeDef * | hhcd | ) |
Handle HCD interrupt request.
| hhcd | HCD handle |
| None |
Definition at line 455 of file stm32f4xx_hal_hcd.c.
References __HAL_HCD_CLEAR_FLAG, __HAL_HCD_GET_FLAG, __HAL_HCD_IS_INVALID_INTERRUPT, HAL_HCD_Disconnect_Callback(), HAL_HCD_SOF_Callback(), HCD_HC_IN_IRQHandler(), HCD_HC_OUT_IRQHandler(), HCD_Port_IRQHandler(), HCD_RXQLVL_IRQHandler(), HCD_HandleTypeDef::Init, and HCD_HandleTypeDef::Instance.
| void HAL_HCD_SOF_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
SOF callback.
| hhcd | HCD handle |
| None |
Definition at line 558 of file stm32f4xx_hal_hcd.c.
Referenced by HAL_HCD_IRQHandler().
1.7.6.1