STM32F4xx_HAL_Driver
1.8.3
|
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. More... | |
HAL_StatusTypeDef | HAL_HCD_HC_SetHubInfo (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t addr, uint8_t PortNbr) |
Set host channel Hub information. More... | |
HAL_StatusTypeDef | HAL_HCD_HC_ClearHubInfo (HCD_HandleTypeDef *hhcd, uint8_t ch_num) |
Clear host channel hub information. More... | |
void | HAL_HCD_IRQHandler (HCD_HandleTypeDef *hhcd) |
Handle HCD interrupt request. More... | |
void | HAL_HCD_WKUP_IRQHandler (HCD_HandleTypeDef *hhcd) |
Handles HCD Wakeup interrupt request. More... | |
void | HAL_HCD_SOF_Callback (HCD_HandleTypeDef *hhcd) |
SOF callback. More... | |
void | HAL_HCD_Connect_Callback (HCD_HandleTypeDef *hhcd) |
Connection Event callback. More... | |
void | HAL_HCD_Disconnect_Callback (HCD_HandleTypeDef *hhcd) |
Disconnection Event callback. More... | |
void | HAL_HCD_PortEnabled_Callback (HCD_HandleTypeDef *hhcd) |
Port Enabled Event callback. More... | |
void | HAL_HCD_PortDisabled_Callback (HCD_HandleTypeDef *hhcd) |
Port Disabled Event callback. More... | |
void | HAL_HCD_HC_NotifyURBChange_Callback (HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state) |
Notify URB state change callback. More... | |
HAL_StatusTypeDef | HAL_HCD_RegisterCallback (HCD_HandleTypeDef *hhcd, HAL_HCD_CallbackIDTypeDef CallbackID, pHCD_CallbackTypeDef pCallback) |
Register a User USB HCD Callback To be used instead of the weak predefined callback. More... | |
HAL_StatusTypeDef | HAL_HCD_UnRegisterCallback (HCD_HandleTypeDef *hhcd, HAL_HCD_CallbackIDTypeDef CallbackID) |
Unregister an USB HCD Callback USB HCD callback is redirected to the weak predefined callback. More... | |
HAL_StatusTypeDef | HAL_HCD_RegisterHC_NotifyURBChangeCallback (HCD_HandleTypeDef *hhcd, pHCD_HC_NotifyURBChangeCallbackTypeDef pCallback) |
Register USB HCD Host Channel Notify URB Change Callback To be used instead of the weak HAL_HCD_HC_NotifyURBChange_Callback() predefined callback. More... | |
HAL_StatusTypeDef | HAL_HCD_UnRegisterHC_NotifyURBChangeCallback (HCD_HandleTypeDef *hhcd) |
Unregister the USB HCD Host Channel Notify URB Change Callback USB HCD Host Channel Notify URB Change Callback is redirected to the weak HAL_HCD_HC_NotifyURBChange_Callback() predefined callback. More... | |
HCD IO operation functions.
=============================================================================== ##### IO operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the USB Host Data Transfer
__weak void HAL_HCD_Connect_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
Connection Event callback.
hhcd | HCD handle |
None |
Definition at line 687 of file stm32f4xx_hal_hcd.c.
__weak void HAL_HCD_Disconnect_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
Disconnection Event callback.
hhcd | HCD handle |
None |
Definition at line 702 of file stm32f4xx_hal_hcd.c.
HAL_StatusTypeDef HAL_HCD_HC_ClearHubInfo | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | ch_num | ||
) |
Clear host channel hub information.
hhcd | HCD handle |
ch_num | Channel number. This parameter can be a value from 1 to 15 |
HAL | status |
Definition at line 1253 of file stm32f4xx_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.
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 757 of file stm32f4xx_hal_hcd.c.
HAL_StatusTypeDef HAL_HCD_HC_SetHubInfo | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | ch_num, | ||
uint8_t | addr, | ||
uint8_t | PortNbr | ||
) |
Set host channel Hub information.
hhcd | HCD handle |
ch_num | Channel number. This parameter can be a value from 1 to 15 |
addr | Hub address |
PortNbr | Hub port number |
HAL | status |
Definition at line 1223 of file stm32f4xx_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.
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 394 of file stm32f4xx_hal_hcd.c.
void HAL_HCD_IRQHandler | ( | HCD_HandleTypeDef * | hhcd | ) |
Handle HCD interrupt request.
hhcd | HCD handle |
None |
Definition at line 538 of file stm32f4xx_hal_hcd.c.
__weak void HAL_HCD_PortDisabled_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
Port Disabled Event callback.
hhcd | HCD handle |
None |
Definition at line 732 of file stm32f4xx_hal_hcd.c.
__weak void HAL_HCD_PortEnabled_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
Port Enabled Event callback.
hhcd | HCD handle |
None |
Definition at line 717 of file stm32f4xx_hal_hcd.c.
HAL_StatusTypeDef HAL_HCD_RegisterCallback | ( | HCD_HandleTypeDef * | hhcd, |
HAL_HCD_CallbackIDTypeDef | CallbackID, | ||
pHCD_CallbackTypeDef | pCallback | ||
) |
Register a User USB HCD Callback To be used instead of the weak predefined callback.
hhcd | USB HCD handle |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
HAL | status |
Definition at line 786 of file stm32f4xx_hal_hcd.c.
HAL_StatusTypeDef HAL_HCD_RegisterHC_NotifyURBChangeCallback | ( | HCD_HandleTypeDef * | hhcd, |
pHCD_HC_NotifyURBChangeCallbackTypeDef | pCallback | ||
) |
Register USB HCD Host Channel Notify URB Change Callback To be used instead of the weak HAL_HCD_HC_NotifyURBChange_Callback() predefined callback.
hhcd | HCD handle |
pCallback | pointer to the USB HCD Host Channel Notify URB Change Callback function |
HAL | status |
Definition at line 980 of file stm32f4xx_hal_hcd.c.
__weak void HAL_HCD_SOF_Callback | ( | HCD_HandleTypeDef * | hhcd | ) |
SOF callback.
hhcd | HCD handle |
None |
Definition at line 672 of file stm32f4xx_hal_hcd.c.
HAL_StatusTypeDef HAL_HCD_UnRegisterCallback | ( | HCD_HandleTypeDef * | hhcd, |
HAL_HCD_CallbackIDTypeDef | CallbackID | ||
) |
Unregister an USB HCD Callback USB HCD callback is redirected to the weak predefined callback.
hhcd | USB HCD handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
HAL | status |
Definition at line 889 of file stm32f4xx_hal_hcd.c.
HAL_StatusTypeDef HAL_HCD_UnRegisterHC_NotifyURBChangeCallback | ( | HCD_HandleTypeDef * | hhcd | ) |
Unregister the USB HCD Host Channel Notify URB Change Callback USB HCD Host Channel Notify URB Change Callback is redirected to the weak HAL_HCD_HC_NotifyURBChange_Callback() predefined callback.
hhcd | HCD handle |
HAL | status |
Definition at line 1022 of file stm32f4xx_hal_hcd.c.
void HAL_HCD_WKUP_IRQHandler | ( | HCD_HandleTypeDef * | hhcd | ) |
Handles HCD Wakeup interrupt request.
hhcd | HCD handle |
HAL | status |
Definition at line 661 of file stm32f4xx_hal_hcd.c.