APM:Libraries
|
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... | |
void DCD_DevConnect | ( | USB_OTG_CORE_HANDLE * | pdev | ) |
void DCD_DevDisconnect | ( | USB_OTG_CORE_HANDLE * | pdev | ) |
Disconnect device (disable internal pull-up)
pdev | device instance |
None |
Definition at line 403 of file usb_dcd.c.
Referenced by usb_close().
uint32_t DCD_EP_Close | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | ep_addr | ||
) |
called when an EP is disabled
pdev | device instance |
ep_addr | endpoint address |
status |
Definition at line 194 of file usb_dcd.c.
Referenced by usbd_cdc_DeInit(), USBD_MSC_DeInit(), and USBD_MSC_Setup().
uint32_t DCD_EP_ClrStall | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | epnum | ||
) |
Clear stall condition on endpoints.
pdev | device instance |
epnum | endpoint address |
status |
Definition at line 323 of file usb_dcd.c.
Referenced by USBD_StdEPReq().
uint32_t DCD_EP_Flush | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | epnum | ||
) |
This Function flushes the FIFOs.
pdev | device instance |
epnum | endpoint address |
status |
Definition at line 350 of file usb_dcd.c.
Referenced by MSC_BOT_Init(), and USBD_MSC_Setup().
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.
pdev | : Device instance |
epdesc | : Endpoint Descriptor |
status |
Definition at line 155 of file usb_dcd.c.
Referenced by usbd_cdc_Init(), USBD_MSC_Init(), USBD_MSC_Setup(), and USBD_Reset().
uint32_t DCD_EP_PrepareRx | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | ep_addr, | ||
uint8_t * | pbuf, | ||
uint16_t | buf_len | ||
) |
DCD_EP_PrepareRx.
pdev | device instance |
ep_addr | endpoint address |
pbuf | pointer to Rx buffer |
buf_len | data length |
status |
Definition at line 221 of file usb_dcd.c.
Referenced by MSC_BOT_Abort(), MSC_BOT_Init(), MSC_BOT_Reset(), MSC_BOT_SendCSW(), SCSI_ProcessWrite(), SCSI_Write10(), try_start_rx(), usbd_cdc_Init(), USBD_CtlContinueRx(), USBD_CtlPrepareRx(), and USBD_CtlReceiveStatus().
void DCD_EP_SetAddress | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | address | ||
) |
This Function set USB device address.
pdev | device instance |
address | new device address |
status |
Definition at line 372 of file usb_dcd.c.
Referenced by USBD_SetAddress().
uint32_t DCD_EP_Stall | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | epnum | ||
) |
Stall an endpoint.
pdev | device instance |
epnum | endpoint address |
status |
Definition at line 296 of file usb_dcd.c.
Referenced by MSC_BOT_Abort(), MSC_BOT_CplClrFeature(), USBD_CtlError(), USBD_SetupStage(), and USBD_StdEPReq().
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.
pdev | device instance |
ep_addr | endpoint address |
pbuf | pointer to Tx buffer |
buf_len | data length |
status |
Definition at line 261 of file usb_dcd.c.
Referenced by MSC_BOT_SendCSW(), MSC_BOT_SendData(), schedule_cdc_in(), SCSI_ProcessRead(), usbd_cdc_DataIn(), USBD_CtlContinueSendData(), USBD_CtlSendData(), and USBD_CtlSendStatus().
uint32_t DCD_GetEPStatus | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | epnum | ||
) |
void DCD_Init | ( | USB_OTG_CORE_HANDLE * | pdev, |
USB_OTG_CORE_ID_TypeDef | coreID | ||
) |
Definition at line 91 of file usb_dcd.c.
Referenced by USBD_Init().
void DCD_SetEPStatus | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | epnum, | ||
uint32_t | Status | ||
) |
Set the EP Status.
pdev | : Selected device Status : new Status epnum : EP address |
None |
Definition at line 450 of file usb_dcd.c.
Referenced by try_start_rx().