USB HID Communication

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

USB HID Communication

1,193 次查看
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 回复数

946 次查看
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,085 次查看
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,099 次查看
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,042 次查看
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 项奖励
回复