AM261x MCU+ SDK  11.00.00

Introduction

These routines receive notifications from the PCD when certain events occur which the Function Driver may need to be aware of.

Functions

int dwc_usb3_gadget_connect (volatile dwc_usb3_pcd_t *pcd, int speed)
 This routine receives Connect notifications from the PCD. More...
 
int dwc_usb3_gadget_disconnect (volatile dwc_usb3_pcd_t *pcd)
 This routine receives Disconnect notifications from the PCD. More...
 
int dwc_usb3_gadget_suspend (volatile dwc_usb3_pcd_t *pcd)
 This routine receives Suspend notifications from the PCD. More...
 
int dwc_usb3_gadget_resume (volatile dwc_usb3_pcd_t *pcd)
 This routine receives Resume notifications from the PCD. More...
 
int dwc_usb3_gadget_setup (volatile dwc_usb3_pcd_t *pcd, usb_device_request_t *ctrl)
 This routine receives Setup request notifications from the PCD. More...
 
int dwc_usb3_gadget_complete (volatile dwc_usb3_pcd_t *pcd, volatile dwc_usb3_pcd_ep_t *ep, volatile dwc_usb3_pcd_req_t *pcd_req, int status)
 This routine receives Transfer Complete notifications from the PCD. More...
 

Function Documentation

◆ dwc_usb3_gadget_connect()

int dwc_usb3_gadget_connect ( volatile dwc_usb3_pcd_t pcd,
int  speed 
)

This routine receives Connect notifications from the PCD.

Parameters
pcdProgramming view of DWC_usb3 peripheral controller.
speedSpeed of the connection (as defined in usb.h).
Returns
0 for success, else negative error code.

◆ dwc_usb3_gadget_disconnect()

int dwc_usb3_gadget_disconnect ( volatile dwc_usb3_pcd_t pcd)

This routine receives Disconnect notifications from the PCD.

Parameters
pcdProgramming view of DWC_usb3 peripheral controller.
Returns
0 for success, else negative error code.

◆ dwc_usb3_gadget_suspend()

int dwc_usb3_gadget_suspend ( volatile dwc_usb3_pcd_t pcd)

This routine receives Suspend notifications from the PCD.

Parameters
pcdProgramming view of DWC_usb3 peripheral controller.
Returns
0 for success, else negative error code.

◆ dwc_usb3_gadget_resume()

int dwc_usb3_gadget_resume ( volatile dwc_usb3_pcd_t pcd)

This routine receives Resume notifications from the PCD.

Parameters
pcdProgramming view of DWC_usb3 peripheral controller.
Returns
0 for success, else negative error code.

◆ dwc_usb3_gadget_setup()

int dwc_usb3_gadget_setup ( volatile dwc_usb3_pcd_t pcd,
usb_device_request_t *  ctrl 
)

This routine receives Setup request notifications from the PCD.

Parameters
pcdProgramming view of DWC_usb3 peripheral controller.
ctrlPointer to the Setup packet for the request.
Returns
0 for success, else negative error code.

◆ dwc_usb3_gadget_complete()

int dwc_usb3_gadget_complete ( volatile dwc_usb3_pcd_t pcd,
volatile dwc_usb3_pcd_ep_t pcd_ep,
volatile dwc_usb3_pcd_req_t pcd_req,
int  status 
)

This routine receives Transfer Complete notifications from the PCD.

Parameters
pcdProgramming view of DWC_usb3 peripheral controller.
pcd_epPCD EP for the transfer.
pcd_reqPCD request for the transfer.
statusTransfer status, 0 for success else negative error code.
Returns
0 for success, else negative error code.