File nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

(C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : otgd_fs_dev.c * Author : STMicroelectronics * Version : V3.1.1 * Date : 04/07/2010 * Description : High Layer device mode interface and wrapping layer. ******************************************************************************** * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.


Included Files


Global Function ByteSwap()

uint16_t ByteSwap ( uint16_t wSwW )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h

Global Function GetEPRxStatus()

uint16_t GetEPRxStatus ( uint8_t bEpNum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_GetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function GetEPTxStatus()

uint16_t GetEPTxStatus ( uint8_t bEpNum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_GetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function GetRxStallStatus()

uint16_t GetRxStallStatus ( uint8_t bEpNum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_GetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function GetTxStallStatus()

uint16_t GetTxStallStatus ( uint8_t bEpNum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_GetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function OTG_DEV_EP_Init()

void OTG_DEV_EP_Init ( uint8_t bEpAdd, uint8_t bEpType, uint16_t wEpMaxPackSize )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_EPStartXfer() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTG_DEV_SetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTGD_FS_PCD_EP_Flush(), OTGD_FS_PCD_EP_Open(), OTGD_FS_PCD_GetInEP(), OTGD_FS_PCD_GetOutEP()

Global Function OTG_DEV_GetEPRxStatus()

uint32_t OTG_DEV_GetEPRxStatus ( uint8_t bEpnum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_Dev_GetEPStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetOutEP()
Called by: GetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  GetRxStallStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function OTG_DEV_GetEPTxStatus()

uint32_t OTG_DEV_GetEPTxStatus ( uint8_t bEpnum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_Dev_GetEPStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetInEP()
Called by: GetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  GetTxStallStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function OTG_DEV_Init()

void OTG_DEV_Init ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_CoreInit() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_CoreInitDev() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_DisableGlobalInt() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_EPStartXfer() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_EnableGlobalInt() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_SetAddress() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_EP0_OutStart(), OTGD_FS_PCD_EP_Open(), OTGD_FS_PCD_GetOutEP(), OTGD_FS_PCD_Init()

Global Function OTG_DEV_SetEPRxStatus()

void OTG_DEV_SetEPRxStatus ( uint8_t bEpnum, uint32_t Status )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_Dev_SetEPStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetOutEP()
Called by: SetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  SetEPRxValid() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function OTG_DEV_SetEPTxStatus()

void OTG_DEV_SetEPTxStatus ( uint8_t bEpnum, uint32_t Status )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_Dev_SetEPStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetInEP()
Called by: OTG_DEV_EP_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  SetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  SetEPTxValid() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function SetEPRxCount()

void SetEPRxCount ( uint8_t bEpNum, uint16_t wCount )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h

Global Function SetEPRxStatus()

void SetEPRxStatus ( uint8_t bEpNum, uint16_t wState )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_SetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function SetEPRxValid()

void SetEPRxValid ( uint8_t bEpNum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_SetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function SetEPTxCount()

void SetEPTxCount ( uint8_t bEpNum, uint16_t wCount )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h

Global Function SetEPTxStatus()

void SetEPTxStatus ( uint8_t bEpNum, uint16_t wState )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_SetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function SetEPTxValid()

void SetEPTxValid ( uint8_t bEpNum )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTG_DEV_SetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function ToWord()

uint16_t ToWord ( uint8_t bh, uint8_t bl )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h

Global Function USB_DevConnect()

void USB_DevConnect ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_PCD_DevConnect()

Global Function USB_DevDisconnect()

void USB_DevDisconnect ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_dev.h
Calls: OTGD_FS_PCD_DevDisconnect()