STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Initialization and de-initialization functions

Initialization and Configuration functions. More...

Collaboration diagram for Initialization and de-initialization functions:

Functions

HAL_StatusTypeDef HAL_HCD_Init (HCD_HandleTypeDef *hhcd)
 Initialize the host driver.
 
HAL_StatusTypeDef HAL_HCD_DeInit (HCD_HandleTypeDef *hhcd)
 DeInitialize 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.
 
void HAL_HCD_MspInit (HCD_HandleTypeDef *hhcd)
 Initialize the HCD MSP.
 
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_HCD_Init()

◆ HAL_HCD_DeInit()

HAL_StatusTypeDef HAL_HCD_DeInit ( HCD_HandleTypeDef * hhcd)

#include <stm32f4xx_hal_hcd.h>

DeInitialize the host driver.

Parameters
hhcdHCD handle
Return values
HALstatus

Definition at line 292 of file stm32f4xx_hal_hcd.c.

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

◆ 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 )

#include <stm32f4xx_hal_hcd.h>

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_DEVICE_SPEED_HIGH: High speed mode, HCD_DEVICE_SPEED_FULL: Full speed mode, HCD_DEVICE_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 218 of file stm32f4xx_hal_hcd.c.

References __HAL_LOCK, __HAL_UNLOCK, HAL_HCD_HC_ClearHubInfo(), HCD_HandleTypeDef::hc, HCD_DEVICE_SPEED_FULL, and HCD_HandleTypeDef::Instance.

◆ HAL_HCD_HC_Halt()

HAL_StatusTypeDef HAL_HCD_HC_Halt ( HCD_HandleTypeDef * hhcd,
uint8_t ch_num )

#include <stm32f4xx_hal_hcd.h>

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 276 of file stm32f4xx_hal_hcd.c.

References __HAL_LOCK, __HAL_UNLOCK, HAL_OK, and HCD_HandleTypeDef::Instance.

◆ HAL_HCD_MspInit()

__weak void HAL_HCD_MspInit ( HCD_HandleTypeDef * hhcd)

#include <stm32f4xx_hal_hcd.h>

Initialize the HCD MSP.

Parameters
hhcdHCD handle
Return values
None

Definition at line 327 of file stm32f4xx_hal_hcd.c.

References UNUSED.

Referenced by HAL_HCD_Init().

◆ HAL_HCD_MspDeInit()

__weak void HAL_HCD_MspDeInit ( HCD_HandleTypeDef * hhcd)

#include <stm32f4xx_hal_hcd.h>

DeInitialize the HCD MSP.

Parameters
hhcdHCD handle
Return values
None

Definition at line 342 of file stm32f4xx_hal_hcd.c.

References UNUSED.

Referenced by HAL_HCD_DeInit().