We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi!
Is it possible to clear the Double Buffer Register in the USB-Modul ???
µC:LPC2368
For OUT endpoint, put 'Clear Buffer' command twice. For IN endpoint, there is no good way from the device side.
'Set Endpoint Status' command flushes buffers by ST bit, but it clears the data toggle too. This feature targets Set_Configuration and Clear_Feature( ENDPOINT_HALT ) support, not just for flushing buffer.
From the host app side, put pipe reset command, if the device driver supports it. Then, Clear_Feature( ENDPOINT_HALT ) request is issued, and the firmware flushes the endpoint buffers.
"Keil Usb example / flow control" http://www.keil.com/forum/docs/thread13257.asp
Tsuneo