![]()
![]()
#define STM32F4xx_LL_USB_H
![]()
![]()
#include "stm32f4xx_hal_def.h"
![]()
![]()
Exported types
![]()
![]()
#define HAL_USB_TIMEOUT
![]()
![]()
#define HAL_USB_CURRENT_MODE_MAX_DELAY_MS
![]()
![]()
USB_ModeTypeDef
![]()
![]()
USB_DEVICE_MODE
![]()
![]()
USB_HOST_MODE
![]()
![]()
USB_DRD_MODE
![]()
![]()
USB_URBStateTypeDef
![]()
![]()
URB_IDLE
![]()
![]()
URB_DONE
![]()
![]()
URB_NOTREADY
![]()
![]()
URB_NYET
![]()
![]()
URB_ERROR
![]()
![]()
URB_STALL
![]()
![]()
USB_HCStateTypeDef
![]()
![]()
HC_IDLE
![]()
![]()
HC_XFRC
![]()
![]()
HC_HALTED
![]()
![]()
HC_ACK
![]()
![]()
HC_NAK
![]()
![]()
HC_NYET
![]()
![]()
HC_STALL
![]()
![]()
HC_XACTERR
![]()
![]()
HC_BBLERR
![]()
![]()
HC_DATATGLERR
![]()
![]()
USB_CfgTypeDef
![]()
![]()
dev_endpoints
![]()
![]()
Host_channels
![]()
![]()
dma_enable
![]()
![]()
speed
![]()
![]()
ep0_mps
![]()
![]()
phy_itface
![]()
![]()
Sof_enable
![]()
![]()
low_power_enable
![]()
![]()
lpm_enable
![]()
![]()
battery_charging_enable
![]()
![]()
vbus_sensing_enable
![]()
![]()
use_dedicated_ep1
![]()
![]()
use_external_vbus
![]()
![]()
USB_EPTypeDef
![]()
![]()
num
![]()
![]()
is_in
![]()
![]()
is_stall
![]()
![]()
is_iso_incomplete
![]()
![]()
type
![]()
![]()
data_pid_start
![]()
![]()
maxpacket
![]()
![]()
xfer_buff
![]()
![]()
xfer_len
![]()
![]()
xfer_count
![]()
![]()
even_odd_frame
![]()
![]()
tx_fifo_num
![]()
![]()
dma_addr
![]()
![]()
xfer_size
![]()
![]()
USB_HCTypeDef
![]()
![]()
dev_addr
![]()
![]()
ch_num
![]()
![]()
ep_num
![]()
![]()
ep_is_in
![]()
![]()
speed
![]()
![]()
do_ping
![]()
![]()
do_ssplit
![]()
![]()
do_csplit
![]()
![]()
ep_ss_schedule
![]()
![]()
iso_splt_xactPos
![]()
![]()
hub_port_nbr
![]()
![]()
hub_addr
![]()
![]()
ep_type
![]()
![]()
max_packet
![]()
![]()
data_pid
![]()
![]()
xfer_buff
![]()
![]()
XferSize
![]()
![]()
xfer_len
![]()
![]()
xfer_count
![]()
![]()
toggle_in
![]()
![]()
toggle_out
![]()
![]()
dma_addr
![]()
![]()
ErrCnt
![]()
![]()
NyetErrCnt
![]()
![]()
urb_state
![]()
![]()
state
![]()
![]()
USB_OTG_ModeTypeDef
![]()
![]()
USB_OTG_CfgTypeDef
![]()
![]()
USB_OTG_EPTypeDef
![]()
![]()
USB_OTG_URBStateTypeDef
![]()
![]()
USB_OTG_HCStateTypeDef
![]()
![]()
USB_OTG_HCTypeDef
![]()
![]()
Exported constants
![]()
![]()
#define USB_OTG_CORE_ID_300A
![]()
![]()
#define USB_OTG_CORE_ID_310A
![]()
![]()
#define USB_OTG_MODE_DEVICE
![]()
![]()
#define USB_OTG_MODE_HOST
![]()
![]()
#define USB_OTG_MODE_DRD
![]()
![]()
#define USB_OTG_SPEED_HIGH
![]()
![]()
#define USB_OTG_SPEED_HIGH_IN_FULL
![]()
![]()
#define USB_OTG_SPEED_FULL
![]()
![]()
#define USB_OTG_ULPI_PHY
![]()
![]()
#define USB_OTG_EMBEDDED_PHY
![]()
![]()
#define USBD_HS_TRDT_VALUE
![]()
![]()
#define USBD_FS_TRDT_VALUE
![]()
![]()
#define USBD_DEFAULT_TRDT_VALUE
![]()
![]()
#define USB_OTG_HS_MAX_PACKET_SIZE
![]()
![]()
#define USB_OTG_FS_MAX_PACKET_SIZE
![]()
![]()
#define USB_OTG_MAX_EP0_SIZE
![]()
![]()
#define DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ
![]()
![]()
#define DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ
![]()
![]()
#define DSTS_ENUMSPD_FS_PHY_48MHZ
![]()
![]()
#define DCFG_FRAME_INTERVAL_80
![]()
![]()
#define DCFG_FRAME_INTERVAL_85
![]()
![]()
#define DCFG_FRAME_INTERVAL_90
![]()
![]()
#define DCFG_FRAME_INTERVAL_95
![]()
![]()
#define EP_MPS_64
![]()
![]()
#define EP_MPS_32
![]()
![]()
#define EP_MPS_16
![]()
![]()
#define EP_MPS_8
![]()
![]()
#define EP_TYPE_CTRL
![]()
![]()
#define EP_TYPE_ISOC
![]()
![]()
#define EP_TYPE_BULK
![]()
![]()
#define EP_TYPE_INTR
![]()
![]()
#define EP_TYPE_MSK
![]()
![]()
#define EP_SPEED_LOW
![]()
![]()
#define EP_SPEED_FULL
![]()
![]()
#define EP_SPEED_HIGH
![]()
![]()
#define HC_PID_DATA0
![]()
![]()
#define HC_PID_DATA2
![]()
![]()
#define HC_PID_DATA1
![]()
![]()
#define HC_PID_SETUP
![]()
![]()
#define USBD_HS_SPEED
![]()
![]()
#define USBD_HSINFS_SPEED
![]()
![]()
#define USBH_HS_SPEED
![]()
![]()
#define USBD_FS_SPEED
![]()
![]()
#define USBH_FSLS_SPEED
![]()
![]()
#define STS_GOUT_NAK
![]()
![]()
#define STS_DATA_UPDT
![]()
![]()
#define STS_XFER_COMP
![]()
![]()
#define STS_SETUP_COMP
![]()
![]()
#define STS_SETUP_UPDT
![]()
![]()
#define HCFG_30_60_MHZ
![]()
![]()
#define HCFG_48_MHZ
![]()
![]()
#define HCFG_6_MHZ
![]()
![]()
#define HFIR_6_MHZ
![]()
![]()
#define HFIR_60_MHZ
![]()
![]()
#define HFIR_48_MHZ
![]()
![]()
#define HPRT0_PRTSPD_HIGH_SPEED
![]()
![]()
#define HPRT0_PRTSPD_FULL_SPEED
![]()
![]()
#define HPRT0_PRTSPD_LOW_SPEED
![]()
![]()
#define HCCHAR_CTRL
![]()
![]()
#define HCCHAR_ISOC
![]()
![]()
#define HCCHAR_BULK
![]()
![]()
#define HCCHAR_INTR
![]()
![]()
#define GRXSTS_PKTSTS_IN
![]()
![]()
#define GRXSTS_PKTSTS_IN_XFER_COMP
![]()
![]()
#define GRXSTS_PKTSTS_DATA_TOGGLE_ERR
![]()
![]()
#define GRXSTS_PKTSTS_CH_HALTED
![]()
![]()
#define CLEAR_INTERRUPT_MASK
![]()
![]()
#define HC_MAX_PKT_CNT
![]()
![]()
#define ISO_SPLT_MPS
![]()
![]()
#define HCSPLT_BEGIN
![]()
![]()
#define HCSPLT_MIDDLE
![]()
![]()
#define HCSPLT_END
![]()
![]()
#define HCSPLT_FULL
![]()
![]()
#define TEST_J
![]()
![]()
#define TEST_K
![]()
![]()
#define TEST_SE0_NAK
![]()
![]()
#define TEST_PACKET
![]()
![]()
#define TEST_FORCE_EN
![]()
![]()
#define USBx_PCGCCTL
![]()
![]()
#define USBx_HPRT0
![]()
![]()
#define USBx_DEVICE
![]()
![]()
#define USBx_DFIFO
![]()
![]()
#define USBx_HOST
![]()
![]()
#define EP_ADDR_MSK
![]()
![]()
Exported macro
![]()
![]()
#define USB_MASK_INTERRUPT
![]()
![]()
#define USB_UNMASK_INTERRUPT
![]()
![]()
#define CLEAR_IN_EP_INTR
![]()
![]()
#define CLEAR_OUT_EP_INTR
![]()
![]()
USB_CoreInit(USB_OTG_GlobalTypeDef *, USB_OTG_CfgTypeDef);
![]()
![]()
USB_DevInit(USB_OTG_GlobalTypeDef *, USB_OTG_CfgTypeDef);
![]()
![]()
USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_DisableGlobalInt(USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_SetTurnaroundTime(USB_OTG_GlobalTypeDef *, uint32_t, uint8_t);
![]()
![]()
USB_SetCurrentMode(USB_OTG_GlobalTypeDef *, USB_OTG_ModeTypeDef);
![]()
![]()
USB_SetDevSpeed(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_FlushRxFifo(USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_FlushTxFifo(USB_OTG_GlobalTypeDef *, uint32_t);
![]()
![]()
USB_ActivateEndpoint(const USB_OTG_GlobalTypeDef *, const USB_OTG_EPTypeDef *);
![]()
![]()
USB_DeactivateEndpoint(const USB_OTG_GlobalTypeDef *, const USB_OTG_EPTypeDef *);
![]()
![]()
USB_ActivateDedicatedEndpoint(const USB_OTG_GlobalTypeDef *, const USB_OTG_EPTypeDef *);
![]()
![]()
USB_DeactivateDedicatedEndpoint(const USB_OTG_GlobalTypeDef *, const USB_OTG_EPTypeDef *);
![]()
![]()
USB_EPStartXfer(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *, uint8_t);
![]()
![]()
USB_WritePacket(const USB_OTG_GlobalTypeDef *, uint8_t *, uint8_t, uint16_t, uint8_t);
![]()
![]()
USB_ReadPacket(const USB_OTG_GlobalTypeDef *, uint8_t *, uint16_t);
![]()
![]()
USB_EPSetStall(const USB_OTG_GlobalTypeDef *, const USB_OTG_EPTypeDef *);
![]()
![]()
USB_EPClearStall(const USB_OTG_GlobalTypeDef *, const USB_OTG_EPTypeDef *);
![]()
![]()
USB_EPStopXfer(const USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *);
![]()
![]()
USB_SetDevAddress(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_DevConnect(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_DevDisconnect(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_StopDevice(USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_ActivateSetup(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_EP0_OutStart(const USB_OTG_GlobalTypeDef *, uint8_t, const uint8_t *);
![]()
![]()
USB_GetDevSpeed(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_GetMode(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_ReadInterrupts(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_ReadChInterrupts(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_ReadDevAllOutEpInterrupt(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_ReadDevOutEPInterrupt(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_ReadDevAllInEpInterrupt(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_ReadDevInEPInterrupt(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_ClearInterrupts(USB_OTG_GlobalTypeDef *, uint32_t);
![]()
![]()
USB_HostInit(USB_OTG_GlobalTypeDef *, USB_OTG_CfgTypeDef);
![]()
![]()
USB_InitFSLSPClkSel(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_ResetPort(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_DriveVbus(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_GetHostSpeed(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_GetCurrentFrame(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_HC_Init(USB_OTG_GlobalTypeDef *, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint16_t);
![]()
![]()
USB_HC_StartXfer(USB_OTG_GlobalTypeDef *, USB_OTG_HCTypeDef *, uint8_t);
![]()
![]()
USB_HC_ReadInterrupt(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_HC_Halt(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_DoPing(const USB_OTG_GlobalTypeDef *, uint8_t);
![]()
![]()
USB_StopHost(USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_ActivateRemoteWakeup(const USB_OTG_GlobalTypeDef *);
![]()
![]()
USB_DeActivateRemoteWakeup(const USB_OTG_GlobalTypeDef *);