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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,112 次查看
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.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,094 次查看
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 项奖励
回复
1 回复
1,095 次查看
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 项奖励
回复