STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
stm32f4xx_hal_hcd.h File Reference

Header file of HCD HAL module. More...

#include "stm32f4xx_ll_usb.h"
Include dependency graph for stm32f4xx_hal_hcd.h:

Go to the source code of this file.

Data Structures

struct  HCD_HandleTypeDef
 

Macros

#define HCD_SPEED_HIGH   USBH_HS_SPEED
 
#define HCD_SPEED_FULL   USBH_FSLS_SPEED
 
#define HCD_SPEED_LOW   USBH_FSLS_SPEED
 
#define HCD_DEVICE_SPEED_HIGH   0U
 
#define HCD_DEVICE_SPEED_FULL   1U
 
#define HCD_DEVICE_SPEED_LOW   2U
 
#define HCD_PHY_ULPI   1U
 
#define HCD_PHY_EMBEDDED   2U
 
#define __HAL_HCD_ENABLE(__HANDLE__)
 
#define __HAL_HCD_DISABLE(__HANDLE__)
 
#define __HAL_HCD_GET_FLAG(__HANDLE__, __INTERRUPT__)
 
#define __HAL_HCD_GET_CH_FLAG(__HANDLE__, __chnum__, __INTERRUPT__)
 
#define __HAL_HCD_CLEAR_FLAG(__HANDLE__, __INTERRUPT__)
 
#define __HAL_HCD_IS_INVALID_INTERRUPT(__HANDLE__)
 
#define __HAL_HCD_CLEAR_HC_INT(chnum, __INTERRUPT__)
 
#define __HAL_HCD_MASK_HALT_HC_INT(chnum)
 
#define __HAL_HCD_UNMASK_HALT_HC_INT(chnum)
 
#define __HAL_HCD_MASK_ACK_HC_INT(chnum)
 
#define __HAL_HCD_UNMASK_ACK_HC_INT(chnum)
 
#define __HAL_HCD_SET_HC_CSPLT(chnum)
 
#define __HAL_HCD_CLEAR_HC_CSPLT(chnum)
 
#define __HAL_HCD_CLEAR_HC_SSPLT(chnum)
 

Typedefs

typedef USB_OTG_GlobalTypeDef HCD_TypeDef
 
typedef USB_OTG_CfgTypeDef HCD_InitTypeDef
 
typedef USB_OTG_HCTypeDef HCD_HCTypeDef
 
typedef USB_OTG_URBStateTypeDef HCD_URBStateTypeDef
 
typedef USB_OTG_HCStateTypeDef HCD_HCStateTypeDef
 

Enumerations

enum  HCD_StateTypeDef {
  HAL_HCD_STATE_RESET = 0x00 , HAL_HCD_STATE_READY = 0x01 , HAL_HCD_STATE_ERROR = 0x02 , HAL_HCD_STATE_BUSY = 0x03 ,
  HAL_HCD_STATE_TIMEOUT = 0x04
}
 

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.
 
HAL_StatusTypeDef HAL_HCD_HC_SubmitRequest (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t direction, uint8_t ep_type, uint8_t token, uint8_t *pbuff, uint16_t length, uint8_t do_ping)
 Submit a new URB for processing.
 
HAL_StatusTypeDef HAL_HCD_HC_SetHubInfo (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t addr, uint8_t PortNbr)
 Set host channel Hub information.
 
HAL_StatusTypeDef HAL_HCD_HC_ClearHubInfo (HCD_HandleTypeDef *hhcd, uint8_t ch_num)
 Clear host channel hub information.
 
void HAL_HCD_IRQHandler (HCD_HandleTypeDef *hhcd)
 Handle HCD interrupt request.
 
void HAL_HCD_WKUP_IRQHandler (HCD_HandleTypeDef *hhcd)
 Handles HCD Wakeup interrupt request.
 
void HAL_HCD_SOF_Callback (HCD_HandleTypeDef *hhcd)
 SOF callback.
 
void HAL_HCD_Connect_Callback (HCD_HandleTypeDef *hhcd)
 Connection Event callback.
 
void HAL_HCD_Disconnect_Callback (HCD_HandleTypeDef *hhcd)
 Disconnection Event callback.
 
void HAL_HCD_PortEnabled_Callback (HCD_HandleTypeDef *hhcd)
 Port Enabled Event callback.
 
void HAL_HCD_PortDisabled_Callback (HCD_HandleTypeDef *hhcd)
 Port Disabled Event callback.
 
void HAL_HCD_HC_NotifyURBChange_Callback (HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state)
 Notify URB state change callback.
 
HAL_StatusTypeDef HAL_HCD_ResetPort (HCD_HandleTypeDef *hhcd)
 Reset the host port.
 
HAL_StatusTypeDef HAL_HCD_Start (HCD_HandleTypeDef *hhcd)
 Start the host driver.
 
HAL_StatusTypeDef HAL_HCD_Stop (HCD_HandleTypeDef *hhcd)
 Stop the host driver.
 
HCD_StateTypeDef HAL_HCD_GetState (HCD_HandleTypeDef const *hhcd)
 Return the HCD handle state.
 
HCD_URBStateTypeDef HAL_HCD_HC_GetURBState (HCD_HandleTypeDef const *hhcd, uint8_t chnum)
 Return URB state for a channel.
 
HCD_HCStateTypeDef HAL_HCD_HC_GetState (HCD_HandleTypeDef const *hhcd, uint8_t chnum)
 Return the Host Channel state.
 
uint32_t HAL_HCD_HC_GetXferCount (HCD_HandleTypeDef const *hhcd, uint8_t chnum)
 Return the last host transfer size.
 
uint32_t HAL_HCD_GetCurrentFrame (HCD_HandleTypeDef *hhcd)
 Return the current Host frame number.
 
uint32_t HAL_HCD_GetCurrentSpeed (HCD_HandleTypeDef *hhcd)
 Return the Host enumeration speed.
 

Detailed Description

Header file of HCD HAL module.

Author
MCD Application Team
Attention

Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f4xx_hal_hcd.h.