STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Initialization and Configuration functions. More...
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. | |
Initialization and Configuration functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to:
HAL_StatusTypeDef HAL_HCD_Init | ( | HCD_HandleTypeDef * | hhcd | ) |
#include <stm32f4xx_hal_hcd.h>
Initialize the host driver.
hhcd | HCD handle |
HAL | status |
Definition at line 110 of file stm32f4xx_hal_hcd.c.
References __HAL_HCD_DISABLE, assert_param, HAL_ERROR, HAL_HCD_Connect_Callback(), HAL_HCD_Disconnect_Callback(), HAL_HCD_HC_NotifyURBChange_Callback(), HAL_HCD_MspInit(), HAL_HCD_PortDisabled_Callback(), HAL_HCD_PortEnabled_Callback(), HAL_HCD_SOF_Callback(), HAL_HCD_STATE_BUSY, HAL_HCD_STATE_ERROR, HAL_HCD_STATE_READY, HAL_HCD_STATE_RESET, HAL_OK, HAL_UNLOCKED, HCD_HandleTypeDef::Init, HCD_HandleTypeDef::Instance, HCD_HandleTypeDef::Lock, and HCD_HandleTypeDef::State.
HAL_StatusTypeDef HAL_HCD_DeInit | ( | HCD_HandleTypeDef * | hhcd | ) |
#include <stm32f4xx_hal_hcd.h>
DeInitialize the host driver.
hhcd | HCD handle |
HAL | status |
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_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.
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 |
HAL | status |
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_StatusTypeDef HAL_HCD_HC_Halt | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | ch_num ) |
#include <stm32f4xx_hal_hcd.h>
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 276 of file stm32f4xx_hal_hcd.c.
References __HAL_LOCK, __HAL_UNLOCK, HAL_OK, and HCD_HandleTypeDef::Instance.
__weak void HAL_HCD_MspInit | ( | HCD_HandleTypeDef * | hhcd | ) |
#include <stm32f4xx_hal_hcd.h>
Initialize the HCD MSP.
hhcd | HCD handle |
None |
Definition at line 327 of file stm32f4xx_hal_hcd.c.
References UNUSED.
Referenced by HAL_HCD_Init().
__weak void HAL_HCD_MspDeInit | ( | HCD_HandleTypeDef * | hhcd | ) |
#include <stm32f4xx_hal_hcd.h>
DeInitialize the HCD MSP.
hhcd | HCD handle |
None |
Definition at line 342 of file stm32f4xx_hal_hcd.c.
References UNUSED.
Referenced by HAL_HCD_DeInit().