APM:Libraries
Functions
usb_dcd.c File Reference

Peripheral Device Interface Layer. More...

#include "usb_dcd.h"
#include "usb_bsp.h"
Include dependency graph for usb_dcd.c:

Go to the source code of this file.

Functions

void DCD_Init (USB_OTG_CORE_HANDLE *pdev, USB_OTG_CORE_ID_TypeDef coreID)
 
uint32_t DCD_EP_Open (USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type)
 Configure an EP. More...
 
uint32_t DCD_EP_Close (USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr)
 called when an EP is disabled More...
 
uint32_t DCD_EP_PrepareRx (USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t buf_len)
 DCD_EP_PrepareRx. More...
 
uint32_t DCD_EP_Tx (USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint8_t *pbuf, uint32_t buf_len)
 Transmit data over USB. More...
 
uint32_t DCD_EP_Stall (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
 Stall an endpoint. More...
 
uint32_t DCD_EP_ClrStall (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
 Clear stall condition on endpoints. More...
 
uint32_t DCD_EP_Flush (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
 This Function flushes the FIFOs. More...
 
void DCD_EP_SetAddress (USB_OTG_CORE_HANDLE *pdev, uint8_t address)
 This Function set USB device address. More...
 
void DCD_DevConnect (USB_OTG_CORE_HANDLE *pdev)
 Connect device (enable internal pull-up) More...
 
void DCD_DevDisconnect (USB_OTG_CORE_HANDLE *pdev)
 Disconnect device (disable internal pull-up) More...
 
uint32_t DCD_GetEPStatus (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
 returns the EP Status More...
 
void DCD_SetEPStatus (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum, uint32_t Status)
 Set the EP Status. More...
 

Detailed Description

Peripheral Device Interface Layer.

Author
MCD Application Team
Version
V2.1.0
Date
19-March-2012
Attention

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file usb_dcd.c.