Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
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
__weak void HAL_HCD_Connect_Callback | ( | HCD_HandleTypeDef * | hhcd ) |
Connection Event callback.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
None
Definition at line 611 of file stm32l4xx_hal_hcd.c.
__weak void HAL_HCD_Disconnect_Callback | ( | HCD_HandleTypeDef * | hhcd ) |
Disconnection Event callback.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
None
Definition at line 626 of file stm32l4xx_hal_hcd.c.
__weak void HAL_HCD_HC_NotifyURBChange_Callback | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | chnum, | ||
HCD_URBStateTypeDef | urb_state | ||
) |
Notify URB state change callback.
- Parameters:
-
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/
- Return values:
-
None
Definition at line 651 of file stm32l4xx_hal_hcd.c.
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:
-
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
- Return values:
-
HAL status
Definition at line 340 of file stm32l4xx_hal_hcd.c.
void HAL_HCD_IRQHandler | ( | HCD_HandleTypeDef * | hhcd ) |
Handle HCD interrupt request.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
None
Definition at line 493 of file stm32l4xx_hal_hcd.c.
__weak void HAL_HCD_SOF_Callback | ( | HCD_HandleTypeDef * | hhcd ) |
SOF callback.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
None
Definition at line 596 of file stm32l4xx_hal_hcd.c.
Generated on Tue Jul 12 2022 17:38:53 by
