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
Initialization and de-initialization functions
[HCD Exported Functions]
Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_HCD_Init (HCD_HandleTypeDef *hhcd) |
Initialize the Host driver. | |
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. | |
HAL_StatusTypeDef | HAL_HCD_HC_Halt (HCD_HandleTypeDef *hhcd, uint8_t ch_num) |
Halt a Host channel. | |
HAL_StatusTypeDef | HAL_HCD_DeInit (HCD_HandleTypeDef *hhcd) |
DeInitialize the Host driver. | |
__weak void | HAL_HCD_MspInit (HCD_HandleTypeDef *hhcd) |
Initialize the HCD MSP. | |
__weak void | HAL_HCD_MspDeInit (HCD_HandleTypeDef *hhcd) |
DeInitialize the HCD MSP. |
Detailed Description
Initialization and Configuration functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to:
Function Documentation
HAL_StatusTypeDef HAL_HCD_DeInit | ( | HCD_HandleTypeDef * | hhcd ) |
DeInitialize the Host driver.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
HAL status
Definition at line 248 of file stm32l4xx_hal_hcd.c.
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:
-
HAL status
Definition at line 232 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.
- 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_SPEED_HIGH: High speed mode, 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
- Return values:
-
HAL status
Definition at line 190 of file stm32l4xx_hal_hcd.c.
HAL_StatusTypeDef HAL_HCD_Init | ( | HCD_HandleTypeDef * | hhcd ) |
Initialize the Host driver.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
HAL status
Definition at line 127 of file stm32l4xx_hal_hcd.c.
__weak void HAL_HCD_MspDeInit | ( | HCD_HandleTypeDef * | hhcd ) |
DeInitialize the HCD MSP.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
None
Definition at line 288 of file stm32l4xx_hal_hcd.c.
__weak void HAL_HCD_MspInit | ( | HCD_HandleTypeDef * | hhcd ) |
Initialize the HCD MSP.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
None
Definition at line 273 of file stm32l4xx_hal_hcd.c.
Generated on Tue Jul 12 2022 17:38:53 by
