Functions
USB_DCD_Private_Functions
Collaboration diagram for USB_DCD_Private_Functions:

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

Function Documentation

void DCD_DevConnect ( USB_OTG_CORE_HANDLE pdev)

Connect device (enable internal pull-up)

Parameters
pdevdevice instance
Return values
None

Definition at line 395 of file usb_dcd.c.

void DCD_DevDisconnect ( USB_OTG_CORE_HANDLE pdev)

Disconnect device (disable internal pull-up)

Parameters
pdevdevice instance
Return values
None

Definition at line 413 of file usb_dcd.c.

uint32_t DCD_EP_Close ( USB_OTG_CORE_HANDLE pdev,
uint8_t  ep_addr 
)

called when an EP is disabled

Parameters
pdevdevice instance
ep_addrendpoint address
Return values
status

Definition at line 204 of file usb_dcd.c.

uint32_t DCD_EP_ClrStall ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum 
)

Clear stall condition on endpoints.

Parameters
pdevdevice instance
epnumendpoint address
Return values
status

Definition at line 333 of file usb_dcd.c.

uint32_t DCD_EP_Flush ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum 
)

This Function flushes the FIFOs.

Parameters
pdevdevice instance
epnumendpoint address
Return values
status

Definition at line 360 of file usb_dcd.c.

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.

Parameters
pdev: Device instance
epdesc: Endpoint Descriptor
Return values
status

Definition at line 165 of file usb_dcd.c.

uint32_t DCD_EP_PrepareRx ( USB_OTG_CORE_HANDLE pdev,
uint8_t  ep_addr,
uint8_t *  pbuf,
uint16_t  buf_len 
)

DCD_EP_PrepareRx.

Parameters
pdevdevice instance
ep_addrendpoint address
pbufpointer to Rx buffer
buf_lendata length
Return values
status

Definition at line 231 of file usb_dcd.c.

void DCD_EP_SetAddress ( USB_OTG_CORE_HANDLE pdev,
uint8_t  address 
)

This Function set USB device address.

Parameters
pdevdevice instance
addressnew device address
Return values
status

Definition at line 382 of file usb_dcd.c.

uint32_t DCD_EP_Stall ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum 
)

Stall an endpoint.

Parameters
pdevdevice instance
epnumendpoint address
Return values
status

Definition at line 306 of file usb_dcd.c.

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.

Parameters
pdevdevice instance
ep_addrendpoint address
pbufpointer to Tx buffer
buf_lendata length
Return values
status

Definition at line 271 of file usb_dcd.c.

uint32_t DCD_GetEPStatus ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum 
)

returns the EP Status

Parameters
pdev: Selected device epnum : endpoint address
Return values
EP status

Definition at line 433 of file usb_dcd.c.

void DCD_Init ( USB_OTG_CORE_HANDLE pdev,
USB_OTG_CORE_ID_TypeDef  coreID 
)

Definition at line 91 of file usb_dcd.c.

void DCD_SetEPStatus ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum,
uint32_t  Status 
)

Set the EP Status.

Parameters
pdev: Selected device Status : new Status epnum : EP address
Return values
None

Definition at line 460 of file usb_dcd.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:28