113 if (gintsts.
d32 == 0)
148 gintmsk_common.
d32 = 0;
157 return ((gintsts.
d32 & gintmsk.
d32 ) & gintmsk_common.
d32);
251 USB_OTG_ResetPort(pdev);
283 USB_OTG_CoreInitDev(pdev);
290 USB_OTG_CoreInitHost(pdev);
292 pdev->otg.OTG_State =
A_HOST;
386 hprt0.
d32 = USB_OTG_ReadHPRT0(pdev);
402 return pdev->otg.OTG_State;
static uint32_t USB_OTG_HandleSessionRequest_ISR(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_HandleSessionRequest_ISR Initiating the Session Request Protocol.
uint32_t STM32_USBO_OTG_ISR_Handler(USB_OTG_CORE_HANDLE *pdev)
STM32_USBO_OTG_ISR_Handler.
struct _USB_OTG_GINTMSK_TypeDef::@64 b
USB_OTG_STS USB_OTG_DisableGlobalInt(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_DisableGlobalInt Enables the controller's Global Int in the AHB Config reg.
struct _USB_OTG_GINTSTS_TypeDef::@65 b
static uint32_t USB_OTG_Read_itr(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_Read_itr returns the Core Interrupt register.
struct _USB_OTG_HPRT0_TypeDef::@88 b
void USB_OTG_InitiateHNP(USB_OTG_CORE_HANDLE *pdev, uint8_t state, uint8_t mode)
USB_OTG_InitiateHNP Initiate HNP.
#define USB_OTG_WRITE_REG32(reg, value)
struct _USB_OTG_GOTGINT_TypeDef::@60 b
void USB_OTG_InitiateSRP(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_InitiateSRP Initiate an srp session.
#define USB_OTG_READ_REG32(reg)
Header of the Core Layer.
uint32_t hstnegsucstschng
uint32_t USB_OTG_HandleOTG_ISR(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_HandleOTG_ISR handles the OTG Interrupts.
uint32_t sesreqsucstschng
struct _USB_OTG_GOTGCTL_TypeDef::@59 b
USB_OTG_STS USB_OTG_EnableGlobalInt(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_EnableGlobalInt Enables the controller's Global Int in the AHB Config reg.
Header of the Core Layer.
uint32_t USB_OTG_GetCurrentState(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_GetCurrentState Return current OTG State.
static uint32_t USB_OTG_HandleConnectorIDStatusChange_ISR(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_HandleConnectorIDStatusChange_ISR handles the Connector ID Status Change Interrupt.
uint8_t USB_OTG_IsDeviceMode(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_IsDeviceMode : Check if it is device mode.
uint8_t USB_OTG_IsHostMode(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_IsHostMode : Check if it is host mode.
#define USB_OTG_MODIFY_REG32(reg, clear_mask, set_mask)