Nut/OS  5.0.5
API Reference
stm32_otgd_fs_dev.c File Reference
Include dependency graph for stm32_otgd_fs_dev.c:

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)

Function Documentation

void OTG_DEV_EP_Init ( uint8_t  bEpAdd,
uint8_t  bEpType,
uint16_t  wEpMaxPackSize 
)

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().

Here is the call graph for this function:

uint32_t OTG_DEV_GetEPTxStatus ( uint8_t  bEpnum)

References OTGD_FS_Dev_GetEPStatus(), and OTGD_FS_PCD_GetInEP().

Referenced by OTGD_FS_Handle_InEP_ISR().

Here is the call graph for this function:

uint32_t OTG_DEV_GetEPRxStatus ( uint8_t  bEpnum)

References OTGD_FS_Dev_GetEPStatus(), and OTGD_FS_PCD_GetOutEP().

Here is the call graph for this function:

void OTG_DEV_SetEPTxStatus ( uint8_t  bEpnum,
uint32_t  Status 
)

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().

Here is the call graph for this function:

void OTG_DEV_SetEPRxStatus ( uint8_t  bEpnum,
uint32_t  Status 
)

References OTGD_FS_Dev_SetEPStatus(), and OTGD_FS_PCD_GetOutEP().

Referenced by OTGD_FS_Handle_InEP_ISR().

Here is the call graph for this function:

void USB_DevDisconnect ( void  )

References OTGD_FS_PCD_DevDisconnect().

Referenced by USB_Cable_Config().

Here is the call graph for this function:

void USB_DevConnect ( void  )

References OTGD_FS_PCD_DevConnect().

Referenced by USB_Cable_Config().

Here is the call graph for this function:

void SetEPTxStatus ( uint8_t  bEpNum,
uint16_t  wState 
)

References _SetEPTxStatus.

Referenced by Standard_ClearFeature().

void SetEPRxStatus ( uint8_t  bEpNum,
uint16_t  wState 
)

References _SetEPRxStatus.

uint16_t GetEPTxStatus ( uint8_t  bEpNum)

References _GetEPTxStatus.

uint16_t GetEPRxStatus ( uint8_t  bEpNum)

References _GetEPRxStatus.

void SetEPTxValid ( uint8_t  bEpNum)

References _SetEPTxStatus, and EP_TX_VALID.

void SetEPRxValid ( uint8_t  bEpNum)

References _SetEPRxStatus, and EP_RX_VALID.

uint16_t GetTxStallStatus ( uint8_t  bEpNum)

References _GetTxStallStatus.

uint16_t GetRxStallStatus ( uint8_t  bEpNum)

References _GetRxStallStatus.

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)

Referenced by Setup0_Process().