Initialization and Configuration functions.
More...
|
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 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...
|
|
Initialization and Configuration functions.
===============================================================================
##### Initialization and de-initialization functions #####
===============================================================================
[..] This section provides functions allowing to:
◆ HAL_HCD_DeInit()
HAL_StatusTypeDef HAL_HCD_DeInit |
( |
HCD_HandleTypeDef * |
hhcd | ) |
|
◆ HAL_HCD_HC_Halt()
HAL_StatusTypeDef HAL_HCD_HC_Halt |
( |
HCD_HandleTypeDef * |
hhcd, |
|
|
uint8_t |
ch_num |
|
) |
| |
Halt a host channel.
- Parameters
-
hhcd | HCD handle |
ch_num | Channel number. This parameter can be a value from 1 to 15 |
- Return values
-
Definition at line 276 of file stm32f4xx_hal_hcd.c.
◆ HAL_HCD_HC_Init()
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.
- Parameters
-
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_DEVICE_SPEED_HIGH: High speed mode, HCD_DEVICE_SPEED_FULL: Full speed mode, HCD_DEVICE_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 |
- Return values
-
Definition at line 218 of file stm32f4xx_hal_hcd.c.
◆ HAL_HCD_Init()
HAL_StatusTypeDef HAL_HCD_Init |
( |
HCD_HandleTypeDef * |
hhcd | ) |
|
◆ HAL_HCD_MspDeInit()
__weak void HAL_HCD_MspDeInit |
( |
HCD_HandleTypeDef * |
hhcd | ) |
|
◆ HAL_HCD_MspInit()
__weak void HAL_HCD_MspInit |
( |
HCD_HandleTypeDef * |
hhcd | ) |
|
◆ HAL_HCD_RegisterCallback()
Register a User USB HCD Callback To be used instead of the weak predefined callback.
- Parameters
-
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 |
- Return values
-
Definition at line 786 of file stm32f4xx_hal_hcd.c.
◆ HAL_HCD_RegisterHC_NotifyURBChangeCallback()
Register USB HCD Host Channel Notify URB Change Callback To be used instead of the weak HAL_HCD_HC_NotifyURBChange_Callback() predefined callback.
- Parameters
-
hhcd | HCD handle |
pCallback | pointer to the USB HCD Host Channel Notify URB Change Callback function |
- Return values
-
Definition at line 980 of file stm32f4xx_hal_hcd.c.
◆ HAL_HCD_UnRegisterCallback()
Unregister an USB HCD Callback USB HCD callback is redirected to the weak predefined callback.
- Parameters
-
hhcd | USB HCD handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
- Return values
-
Definition at line 889 of file stm32f4xx_hal_hcd.c.
◆ HAL_HCD_UnRegisterHC_NotifyURBChangeCallback()
HAL_StatusTypeDef HAL_HCD_UnRegisterHC_NotifyURBChangeCallback |
( |
HCD_HandleTypeDef * |
hhcd | ) |
|