|
Designing Endpoint is depends on your requirements.
1 Change USB Descriptor for Host side.
Refer Demos for all the descriptor required.
2 Using code below which can be found in SDK demos to set FX3 endpoint.
/* Producer Endpoint configuration */
endPointConfig.enable = 1;
endPointConfig.epType = CY_U3P_USB_EP_BULK;
endPointConfig.burstLen = 1;
endPointConfig.streams = 0;
/* Configure the Endpoint */
apiRetStatus = CyU3PSetEpConfig(CY_FX_EP_PRODUCER,&endPointConfig);
if (apiRetStatus != CY_U3P_SUCCESS)
3 If using DMA, refer the demos and there is callback when you received a packet. You can using it for CPU processing.
How to direct access packet buffer of endpoint using CPU is not known yet.
4 Using GPIF, Auto DMA may handle everything for you. Due to GPIF II is not packet based.
FYI.
|