#include <dev/usb_stm32/otgd_fs_dev.h>
#include <dev/usb_stm32/otgd_fs_cal.h>
#include <dev/usb_stm32/otgd_fs_pcd.h>
Functions | |
void | OTG_DEV_Init (void) |
void | OTG_DEV_EP_Init (uint8_t bEpAdd, uint8_t bEpType, uint16_t wEpMaxPackSize) |
uint32_t | OTG_DEV_GetEPTxStatus (uint8_t bEpnum) |
uint32_t | OTG_DEV_GetEPRxStatus (uint8_t bEpnum) |
void | OTG_DEV_SetEPTxStatus (uint8_t bEpnum, uint32_t Status) |
void | OTG_DEV_SetEPRxStatus (uint8_t bEpnum, uint32_t Status) |
void | USB_DevDisconnect (void) |
void | USB_DevConnect (void) |
void | SetEPTxStatus (uint8_t bEpNum, uint16_t wState) |
void | SetEPRxStatus (uint8_t bEpNum, uint16_t wState) |
uint16_t | GetEPTxStatus (uint8_t bEpNum) |
uint16_t | GetEPRxStatus (uint8_t bEpNum) |
void | SetEPTxValid (uint8_t bEpNum) |
void | SetEPRxValid (uint8_t bEpNum) |
uint16_t | GetTxStallStatus (uint8_t bEpNum) |
uint16_t | GetRxStallStatus (uint8_t bEpNum) |
void | SetEPTxCount (uint8_t bEpNum, uint16_t wCount) |
void | SetEPRxCount (uint8_t bEpNum, uint16_t wCount) |
uint16_t | ToWord (uint8_t bh, uint8_t bl) |
uint16_t | ByteSwap (uint16_t wSwW) |
void OTG_DEV_Init | ( | void | ) |
References usb_ep_descriptor::bEndpointAddress, usb_ep_descriptor::bmAttributes, OTGD_FS_CoreInit(), OTGD_FS_CoreInitDev(), OTGD_FS_DisableGlobalInt(), OTGD_FS_EnableGlobalInt(), OTGD_FS_EPStartXfer(), OTGD_FS_PCD_EP0_OutStart(), OTGD_FS_PCD_EP_Open(), OTGD_FS_PCD_GetOutEP(), OTGD_FS_PCD_Init(), OTGD_FS_SetAddress(), USB_ENDPOINT_XFER_CONTROL, USB_OTG_FS1_BASE_ADDR, and usb_ep_descriptor::wMaxPacketSize.
Referenced by USB_SIL_Init(), and Virtual_Com_Port_init().
References usb_ep_descriptor::bEndpointAddress, usb_ep_descriptor::bmAttributes, DEV_EP_TX_NAK, USB_OTG_ep::even_odd_frame, OTG_DEV_SetEPTxStatus(), OTGD_FS_EPStartXfer(), OTGD_FS_PCD_EP_Flush(), OTGD_FS_PCD_EP_Open(), OTGD_FS_PCD_GetInEP(), OTGD_FS_PCD_GetOutEP(), and usb_ep_descriptor::wMaxPacketSize.
Referenced by Virtual_Com_Port_Reset().
References OTGD_FS_Dev_GetEPStatus(), and OTGD_FS_PCD_GetInEP().
Referenced by OTGD_FS_Handle_InEP_ISR().
References OTGD_FS_Dev_GetEPStatus(), and OTGD_FS_PCD_GetOutEP().
References DEV_EP_TX_STALL, USB_OTG_ep::is_in, OTGD_FS_Dev_SetEPStatus(), and OTGD_FS_PCD_GetInEP().
Referenced by OTG_DEV_EP_Init(), OTGD_FS_Handle_InEP_ISR(), and OTGD_FS_Handle_OutEP_ISR().
References OTGD_FS_Dev_SetEPStatus(), and OTGD_FS_PCD_GetOutEP().
Referenced by OTGD_FS_Handle_InEP_ISR().
void USB_DevDisconnect | ( | void | ) |
References OTGD_FS_PCD_DevDisconnect().
Referenced by USB_Cable_Config().
void USB_DevConnect | ( | void | ) |
References OTGD_FS_PCD_DevConnect().
Referenced by USB_Cable_Config().
References _SetEPTxStatus.
Referenced by Standard_ClearFeature().
References _SetEPRxStatus.
References _GetEPTxStatus.
References _GetEPRxStatus.
void SetEPTxValid | ( | uint8_t | bEpNum | ) |
References _SetEPTxStatus, and EP_TX_VALID.
void SetEPRxValid | ( | uint8_t | bEpNum | ) |
References _SetEPRxStatus, and EP_RX_VALID.
References _GetTxStallStatus.
References _GetRxStallStatus.
Referenced by Post0_Process(), and Standard_ClearFeature().
Referenced by Setup0_Process().