These routines receive notifications from the PCD when certain events occur which the Function Driver may need to be aware of.
◆ 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
-
| pcd | Programming view of DWC_usb3 peripheral controller. |
| speed | Speed of the connection (as defined in usb.h). |
- Returns
- 0 for success, else negative error code.
◆ dwc_usb3_gadget_disconnect()
This routine receives Disconnect notifications from the PCD.
- Parameters
-
| pcd | Programming view of DWC_usb3 peripheral controller. |
- Returns
- 0 for success, else negative error code.
◆ dwc_usb3_gadget_suspend()
This routine receives Suspend notifications from the PCD.
- Parameters
-
| pcd | Programming view of DWC_usb3 peripheral controller. |
- Returns
- 0 for success, else negative error code.
◆ dwc_usb3_gadget_resume()
This routine receives Resume notifications from the PCD.
- Parameters
-
| pcd | Programming 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
-
| pcd | Programming view of DWC_usb3 peripheral controller. |
| ctrl | Pointer to the Setup packet for the request. |
- Returns
- 0 for success, else negative error code.
◆ dwc_usb3_gadget_complete()
This routine receives Transfer Complete notifications from the PCD.
- Parameters
-
| pcd | Programming view of DWC_usb3 peripheral controller. |
| pcd_ep | PCD EP for the transfer. |
| pcd_req | PCD request for the transfer. |
| status | Transfer status, 0 for success else negative error code. |
- Returns
- 0 for success, else negative error code.