STM32F439xx HAL User Manual
Functions
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:
hhcdHCD handle
Return values:
HALstatus

Definition at line 241 of file stm32f4xx_hal_hcd.c.

References __HAL_HCD_DISABLE, HAL_HCD_MspDeInit(), HAL_HCD_STATE_BUSY, HAL_HCD_STATE_RESET, and HCD_HandleTypeDef::State.

HAL_StatusTypeDef HAL_HCD_HC_Halt ( HCD_HandleTypeDef hhcd,
uint8_t  ch_num 
)

Halt a host channel.

Parameters:
hhcdHCD handle
ch_numChannel number. This parameter can be a value from 1 to 15
Return values:
HALstatus

Definition at line 225 of file stm32f4xx_hal_hcd.c.

References HCD_HandleTypeDef::Instance.

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:
hhcdHCD handle
ch_numChannel number. This parameter can be a value from 1 to 15
epnumEndpoint number. This parameter can be a value from 1 to 15
dev_addressCurrent device address This parameter can be a value from 0 to 255
speedCurrent 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_typeEndpoint 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
mpsMax Packet Size. This parameter can be a value from 0 to32K
Return values:
HALstatus

Definition at line 186 of file stm32f4xx_hal_hcd.c.

References HCD_HandleTypeDef::hc, and HCD_HandleTypeDef::Instance.

HAL_StatusTypeDef HAL_HCD_Init ( HCD_HandleTypeDef hhcd)

Initialize the host driver.

Parameters:
hhcdHCD handle
Return values:
HALstatus

Definition at line 129 of file stm32f4xx_hal_hcd.c.

References __HAL_HCD_DISABLE, assert_param, HAL_HCD_MspInit(), HAL_HCD_STATE_BUSY, HAL_HCD_STATE_READY, HCD_HandleTypeDef::Init, HCD_HandleTypeDef::Instance, and HCD_HandleTypeDef::State.

DeInitialize the HCD MSP.

Parameters:
hhcdHCD handle
Return values:
None

Definition at line 280 of file stm32f4xx_hal_hcd.c.

Referenced by HAL_HCD_DeInit().

Initialize the HCD MSP.

Parameters:
hhcdHCD handle
Return values:
None

Definition at line 266 of file stm32f4xx_hal_hcd.c.

Referenced by HAL_HCD_Init().