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,111件の閲覧回数
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,093件の閲覧回数
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,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 件の賞賛
返信