Classes | Macros | Typedefs | Functions
usb_dcd.h File Reference

Peripheral Driver Header file. More...

#include "usb_core.h"
Include dependency graph for usb_dcd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EP_DESCRIPTOR
 

Macros

#define USB_OTG_ADDRESSED   2
 
#define USB_OTG_CONFIGURED   3
 
#define USB_OTG_DEFAULT   1
 
#define USB_OTG_EP_BULK   2
 
#define USB_OTG_EP_CONTROL   0
 
#define USB_OTG_EP_INT   3
 
#define USB_OTG_EP_ISOC   1
 
#define USB_OTG_EP_MASK   3
 
#define USB_OTG_SUSPENDED   4
 

Typedefs

typedef struct EP_DESCRIPTORPEP_DESCRIPTOR
 

Functions

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_EP_Close (USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr)
 called when an EP is disabled 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...
 
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_PrepareRx (USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t buf_len)
 DCD_EP_PrepareRx. More...
 
void DCD_EP_SetAddress (USB_OTG_CORE_HANDLE *pdev, uint8_t address)
 This Function set USB device address. More...
 
uint32_t DCD_EP_Stall (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
 Stall an endpoint. 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_GetEPStatus (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
 returns the EP Status More...
 
uint32_t DCD_Handle_ISR (USB_OTG_CORE_HANDLE *pdev)
 
void DCD_Init (USB_OTG_CORE_HANDLE *pdev, USB_OTG_CORE_ID_TypeDef coreID)
 
void DCD_SetEPStatus (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum, uint32_t Status)
 Set the EP Status. More...
 

Detailed Description

Peripheral Driver Header file.

Author
MCD Application Team
Version
V2.2.0
Date
09-November-2015
Attention

© COPYRIGHT 2015 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.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:21