This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Clear Double Buffer in USB Modul . LPC2368

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