USB HID Communication

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB HID Communication

1,200件の閲覧回数
berndgrossmann
Contributor II

I am using the dev_composite_hid_mouse_hid_ keyboard_bm sample and try to send and receive some data with MCXA153 controller.

What ist the best way to send some data (USB_DeviceSendRequest) and detect a sucessful transmission?

Loop?

-> Ready to send?

-> Send data

-> Wait some time to detect a sucessful transmission?

-> Next data

In posts are some NACK, busy flags proposals in some HID codes. 

ラベル(2)
0 件の賞賛
返信
4 返答(返信)

953件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @berndgrossmann 

USB Stack documentation please refer to:

https://mcuxpresso.nxp.com/mcuxsdk/latest/html/middleware/usb/docs/index.html 

 

BR

Alice

0 件の賞賛
返信

1,092件の閲覧回数
berndgrossmann
Contributor II

Thanks, but how can I detect a ready to send?

Is there any USB Stack documentation available?

How can I detect a busy transmission?

0 件の賞賛
返信

1,106件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @berndgrossmann 

Yes, I think your idea is correct. First, confirm that it is ready to send. Then, send the data. Next, confirm that the data has been sent successfully. After that, proceed to the next loop.

 

BR

Alice

0 件の賞賛
返信

1,049件の閲覧回数
berndgrossmann
Contributor II

Thanks, but how can I detect a ready to send?

Is there any USB Stack documentation available?

How can I detect a busy transmission?

0 件の賞賛
返信