|
STM32L4xx_HAL_Driver
1.14.0
|
Initialization and Configuration functions. More...
Modules | |
| HAL USB OTG HCD Callback ID enumeration definition | |
| HAL USB OTG HCD Callback ID enumeration definition. | |
| HAL USB OTG HCD Callback pointer definition | |
| HAL USB OTG HCD Callback pointer definition. | |
Functions | |
| HAL_StatusTypeDef | HAL_HCD_Init (HCD_HandleTypeDef *hhcd) |
| Initialize the host driver. More... | |
| HAL_StatusTypeDef | HAL_HCD_DeInit (HCD_HandleTypeDef *hhcd) |
| DeInitialize the host driver. More... | |
| HAL_StatusTypeDef | HAL_HCD_HC_Init (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps) |
| Initialize a host channel. More... | |
| HAL_StatusTypeDef | HAL_HCD_HC_Halt (HCD_HandleTypeDef *hhcd, uint8_t ch_num) |
| Halt a host channel. More... | |
| void | HAL_HCD_MspInit (HCD_HandleTypeDef *hhcd) |
| Initialize the HCD MSP. More... | |
| void | HAL_HCD_MspDeInit (HCD_HandleTypeDef *hhcd) |
| DeInitialize the HCD MSP. 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 callabck 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... | |
Initialization and Configuration functions.
===============================================================================
##### Initialization and de-initialization functions #####
===============================================================================
[..] This section provides functions allowing to: | HAL_StatusTypeDef HAL_HCD_DeInit | ( | HCD_HandleTypeDef * | hhcd | ) |
DeInitialize the host driver.
| hhcd | HCD handle |
| HAL | status |
Definition at line 261 of file stm32l4xx_hal_hcd.c.
| HAL_StatusTypeDef HAL_HCD_HC_Halt | ( | HCD_HandleTypeDef * | hhcd, |
| uint8_t | ch_num | ||
| ) |
Halt a host channel.
| hhcd | HCD handle |
| ch_num | Channel number. This parameter can be a value from 1 to 15 |
| HAL | status |
Definition at line 245 of file stm32l4xx_hal_hcd.c.
| HAL_StatusTypeDef HAL_HCD_HC_Init | ( | HCD_HandleTypeDef * | hhcd, |
| uint8_t | ch_num, | ||
| uint8_t | epnum, | ||
| uint8_t | dev_address, | ||
| uint8_t | speed, | ||
| uint8_t | ep_type, | ||
| uint16_t | mps | ||
| ) |
Initialize a host channel.
| hhcd | HCD handle |
| ch_num | Channel number. This parameter can be a value from 1 to 15 |
| epnum | Endpoint number. This parameter can be a value from 1 to 15 |
| dev_address | Current device address This parameter can be a value from 0 to 255 |
| speed | Current device speed. This parameter can be one of these values: HCD_SPEED_FULL: Full speed mode, HCD_SPEED_LOW: Low speed mode |
| 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 |
| mps | Max Packet Size. This parameter can be a value from 0 to32K |
| HAL | status |
Definition at line 197 of file stm32l4xx_hal_hcd.c.
| HAL_StatusTypeDef HAL_HCD_Init | ( | HCD_HandleTypeDef * | hhcd | ) |
Initialize the host driver.
| hhcd | HCD handle |
| HAL | status |
Definition at line 108 of file stm32l4xx_hal_hcd.c.
| __weak void HAL_HCD_MspDeInit | ( | HCD_HandleTypeDef * | hhcd | ) |
DeInitialize the HCD MSP.
| hhcd | HCD handle |
| None |
Definition at line 311 of file stm32l4xx_hal_hcd.c.
| __weak void HAL_HCD_MspInit | ( | HCD_HandleTypeDef * | hhcd | ) |
Initialize the HCD MSP.
| hhcd | HCD handle |
| None |
Definition at line 296 of file stm32l4xx_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 719 of file stm32l4xx_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 911 of file stm32l4xx_hal_hcd.c.
| HAL_StatusTypeDef HAL_HCD_UnRegisterCallback | ( | HCD_HandleTypeDef * | hhcd, |
| HAL_HCD_CallbackIDTypeDef | CallbackID | ||
| ) |
Unregister an USB HCD Callback USB HCD callabck 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 820 of file stm32l4xx_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 951 of file stm32l4xx_hal_hcd.c.