This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Q1) When sending a packet to the host with USBDCDCPacketWrite(), what method is there to send a packet of 64 bytes or more?
The F2838x USB Library USER'S GUIDE has the following description.
---------------------------------------------------------------------------------------------------
The maximum value for ui32Length is 64 bytes (the maximum USB packet size for the bulk endpoints
in use by CDC). Attempts to send more data than this will result in a return code of 0 indicating
that the data cannot be sent.
---------------------------------------------------------------------------------------------------
I would like to know if there is a method other than splitting the packet and sending it.
Q2) I would like to know how to clear the receive buffer sent by the host. Currently, it is cleared by USBBufferInit(). Is this method correct?
Best regards,
Sasaki
Sasaki,
You will have to split the package and send it since the maximum length is 64 bytes.
For the buffer handling, you can refer the functions available in usbbuffer.c located in <C2000WareInstallDir>\libraries\communications\usb\f2838x\source folder.
Do you want to flush the buffer ? If so , you can use USBBufferFlush function. There are also functions to determing how much data or space is available in the buffer,
Best Regards
Siddharth
Sidddharth-san,
Thank you for your support.
My question has been answered.
Best regards,
Sasaki