How to consider USB-HID send packet is sent successfully or not ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to consider USB-HID send packet is sent successfully or not ?

Jump to solution
520 Views
Vishal_Panchal
Contributor I

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.

Labels (1)
Tags (1)
0 Kudos
1 Solution
502 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
1 Reply
503 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos