HAL
USB_CfgTypeDef
is only used within HAL.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
HAL
USB_CfgTypeDef
USB_CfgTypeDef struct
USB Instance Initialization Structure definition
Syntax
Show:
Summary
Declaration
from
stm32f4xx_ll_usb.h:93
typedef
struct
{
uint8_t
dev_endpoints
;
uint8_t
Host_channels
;
uint8_t
dma_enable
;
uint8_t
speed
;
uint8_t
ep0_mps
;
uint8_t
phy_itface
;
uint8_t
Sof_enable
;
uint8_t
low_power_enable
;
uint8_t
lpm_enable
;
uint8_t
battery_charging_enable
;
uint8_t
vbus_sensing_enable
;
uint8_t
use_dedicated_ep1
;
uint8_t
use_external_vbus
;
}
USB_CfgTypeDef
;
Fields
Field
Declared as
Description
USB_CfgTypeDef::dev_endpoints
uint8_t
Device Endpoints number. This parameter depends on the used USB core. This parameter must be a number between Min_Data = 1 and Max_Data = 15.
USB_CfgTypeDef::Host_channels
uint8_t
Host Channels number. This parameter Depends on the used USB core. This parameter must be a number between Min_Data = 1 and Max_Data = 15.
USB_CfgTypeDef::dma_enable
uint8_t
USB DMA state. If DMA is not supported this parameter shall be set by default to zero.
USB_CfgTypeDef::speed
uint8_t
USB Core speed. This parameter can be any value of PCD_Speed/HCD_Speed (HCD_SPEED_xxx, HCD_SPEED_xxx).
USB_CfgTypeDef::ep0_mps
uint8_t
Set the Endpoint 0 Max Packet size.
USB_CfgTypeDef::phy_itface
uint8_t
Select the used PHY interface. This parameter can be any value of PCD_PHY_Module/HCD_PHY_Module.
USB_CfgTypeDef::Sof_enable
uint8_t
Enable or disable the output of the SOF signal.
USB_CfgTypeDef::low_power_enable
uint8_t
Enable or disable the low Power Mode.
USB_CfgTypeDef::lpm_enable
uint8_t
Enable or disable Link Power Management.
USB_CfgTypeDef::battery_charging_enable
uint8_t
Enable or disable Battery charging.
USB_CfgTypeDef::vbus_sensing_enable
uint8_t
Enable or disable the VBUS Sensing feature.
USB_CfgTypeDef::use_dedicated_ep1
uint8_t
Enable or disable the use of the dedicated EP1 interrupt.
USB_CfgTypeDef::use_external_vbus
uint8_t
Enable or disable the use of the external VBUS.
Related Functions
Found 3 other functions taking a
USB_CfgTypeDef
argument:
Function
Description
USB_CoreInit()
Initializes the USB Core
USB_DevInit()
USB_DevInit Initializes the USB_OTG controller registers for device mode
USB_HostInit()
USB_HostInit : Initializes the USB OTG controller registers for Host mode
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out