HAL
USB_HC_Init() is only used within HAL.
 
Symbols
loading...
Files
loading...

USB_HC_Init() function

Initialize a host channel

Syntax

HAL_StatusTypeDef USB_HC_Init(USB_OTG_GlobalTypeDef *USBx,     uint8_t ch_num,     uint8_t epnum,     uint8_t dev_address,     uint8_t speed,     uint8_t ep_type,     uint16_t mps);
Implemented in stm32f4xx_ll_usb.c:1693

Arguments

USBx

Selected device

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: @arg USB_OTG_SPEED_HIGH: High speed mode @arg USB_OTG_SPEED_FULL: Full speed mode @arg USB_OTG_SPEED_LOW: Low speed mode

ep_type

Endpoint Type This parameter can be one of these values: @arg EP_TYPE_CTRL: Control type @arg EP_TYPE_ISOC: Isochronous type @arg EP_TYPE_BULK: Bulk type @arg EP_TYPE_INTR: Interrupt type

mps

Max Packet Size This parameter can be a value from 0 to 32K

Return value

HAL state

Call Tree

Functions calling USB_HC_Init()
Functions called by USB_HC_Init()
all items filtered out
USB_HC_Init()
all items filtered out
Type of USB_HC_Init()
USB_HC_Init()
uint32_t
all items filtered out