When we send data through a specified endpoint using USB_DeviceHidSend() function, it returns a USB error code or kStatus_USB_Success. While the return value just means if the sending request is successful or not; the transfer done is notified by USB_DeviceHidInterruptIn() function.
So, In USB_DeviceHidInterruptIn() function, we are receiving event kUSB_DeviceHidEventSendResponse via USB_DeviceHidGenericCallback() function.
So, Is it the only event on which we should consider that previous packet is sent successfully? Or Shall we receive other usb_status for success or error or other error codes anywhere else?
Note: I have used same function names those are used in LPC55s28's USB-HID example code.
Solved! Go to Solution.
Hello Vishal_Panchal,
"So, Is it the only event on which we should consider that previous packet is sent successfully? "
->> Yes, just need consider this event.
Because enter function USB_DeviceHidInterruptIn() meaning the transfer is done and give a respond.
BR
Alice
Hello Vishal_Panchal,
"So, Is it the only event on which we should consider that previous packet is sent successfully? "
->> Yes, just need consider this event.
Because enter function USB_DeviceHidInterruptIn() meaning the transfer is done and give a respond.
BR
Alice