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

(C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : otgd_fs_pcd.c * Author : MCD Application Team * Version : V3.1.1 * Date : 04/07/2010 * Description : Peripheral Device Interface low 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 Variable USB_OTG_PCD_dev

USB_OTG_PCD_DEV USB_OTG_PCD_dev
Visible in:   nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
Used in: OTGD_FS_PCD_EP_Read() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_Write() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_GetInEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_GetOutEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

External Variables

core_regs
extern USB_OTG_CORE_REGS core_regs
Defined in: nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_PCD_DevConnect()

void OTGD_FS_PCD_DevConnect ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: NutSleep()
Called by: USB_DevConnect() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_PCD_DevDisconnect()

void OTGD_FS_PCD_DevDisconnect ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: NutSleep()
Called by: USB_DevDisconnect() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_PCD_EP0_OutStart()

void OTGD_FS_PCD_EP0_OutStart ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Called by: OTGD_FS_Handle_UsbReset_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTG_DEV_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_PCD_EP_Close()

uint32_t OTGD_FS_PCD_EP_Close ( uint8_t ep_addr )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: OTGD_FS_EPDeactivate() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetInEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_GetOutEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

Global Function OTGD_FS_PCD_EP_ClrStall()

uint32_t OTGD_FS_PCD_EP_ClrStall ( uint8_t ep_addr )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: OTGD_FS_EPClearStall() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetInEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_GetOutEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
Called by: OTGD_FS_PCD_EP_Flush() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

Global Function OTGD_FS_PCD_EP_Flush()

uint32_t OTGD_FS_PCD_EP_Flush ( uint8_t ep_addr )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: OTGD_FS_FlushRxFifo() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_FlushTxFifo() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_EP_ClrStall() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
Called by: OTG_DEV_EP_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function OTGD_FS_PCD_EP_Open()

uint32_t OTGD_FS_PCD_EP_Open ( EP_DESCRIPTOR* epdesc )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: OTGD_FS_EPActivate() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetInEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_GetOutEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
Called by: OTG_DEV_EP_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c

Global Function OTGD_FS_PCD_EP_Read()

uint32_t OTGD_FS_PCD_EP_Read ( uint8_t ep_addr, uint8_t* pbuf, uint32_t buf_len )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: OTGD_FS_EP0StartXfer() 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_PCD_GetOutEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
References Variables: USB_OTG_PCD_dev nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

Global Function OTGD_FS_PCD_EP_SetAddress()

void OTGD_FS_PCD_EP_SetAddress ( uint8_t address )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_PCD_EP_Stall()

uint32_t OTGD_FS_PCD_EP_Stall ( uint8_t ep_addr )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: OTGD_FS_EPSetStall() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetInEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_GetOutEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

Global Function OTGD_FS_PCD_EP_Write()

uint32_t OTGD_FS_PCD_EP_Write ( uint8_t ep_addr, uint8_t* pbuf, uint32_t buf_len )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Calls: OTGD_FS_EP0StartXfer() 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_PCD_GetInEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
References Variables: USB_OTG_PCD_dev nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

Global Function OTGD_FS_PCD_GetInEP()

USB_OTG_EP* OTGD_FS_PCD_GetInEP ( uint32_t ep_num )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Called by: OTGD_FS_Handle_InEP_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTGD_FS_PCD_EP_Close() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_ClrStall() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_Open() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_Stall() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_Write() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_WriteEmptyTxFifo() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTG_DEV_EP_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_GetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_SetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
References Variables: USB_OTG_PCD_dev nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

Global Function OTGD_FS_PCD_GetOutEP()

USB_OTG_EP* OTGD_FS_PCD_GetOutEP ( uint32_t ep_num )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Called by: OTGD_FS_Handle_OutEP_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTGD_FS_Handle_RxStatusQueueLevel_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTGD_FS_PCD_EP_Close() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_ClrStall() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_Open() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_Read() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTGD_FS_PCD_EP_Stall() nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c
  OTG_DEV_EP_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_GetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_SetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
References Variables: USB_OTG_PCD_dev nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c

Global Function OTGD_FS_PCD_Init()

void OTGD_FS_PCD_Init ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_pcd.h
Called by: OTG_DEV_Init() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
References Variables: USB_OTG_PCD_dev nut/arch/cm3/dev/stm/stm32_otgd_fs_pcd.c