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.
Hello @berndgrossmann
USB Stack documentation please refer to:
https://mcuxpresso.nxp.com/mcuxsdk/latest/html/middleware/usb/docs/index.html
BR
Alice
Thanks, but how can I detect a ready to send?
Is there any USB Stack documentation available?
How can I detect a busy transmission?
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
Thanks, but how can I detect a ready to send?
Is there any USB Stack documentation available?
How can I detect a busy transmission?