Skip to main content
Visitor II
February 5, 2020
Question

Facing problem to Clear USB Buffer

  • February 5, 2020
  • 0 replies
  • 509 views

I am sending data to USB (USB HID)like  buf[2]=0x04;

    USBD_HID_SendReport(&hUsbDeviceFS,buf,8);

then I Clear a buffer like buf[2]=0x00;

USBD_HID_SendReport(&hUsbDeviceFS,buf,8);

So it sends zero continuously through USB, So how to clear these buffer and avoid to transfer zero on USB. I am Using STM32F0xx Series controller.

    This topic has been closed for replies.