2021-12-22 11:47 PM
Hello,
I am working on Nucleo-H745ZIQ board. I have make to the interfacing between the one application and stm32, they communication using the USB peripheral in HS. I am confuse between the two class USB custome HID and HID .Which class I have to use Custome HID or HID and after that I can able to send and receive different types of data?Can someone help to resolve this!!!
2022-01-04 02:00 AM
Hello @MDeva.1 ,
Can you explain what you mean by receiving different types of data?
As well, can you describe the use case?
Otherwise, take a look at this video. It may be helpful.
BeST Regards,
Walid
2022-01-04 02:15 AM
My board is connected to GuI application using the USB port and I get the data from GUI aND I have to give that data to DAC and after that I have generate w/f.
1. Which USB class I have to use?
2. What types of data I can access eg. Int, float, array, frame
2022-01-04 02:36 AM
hello @MDeva.1
You can use the USB CDC class which allows you to send arbitrary data.
BeST Regards,
Walid
2022-01-04 03:49 AM
What is difference between customs hid and Hid class
2022-01-04 05:42 AM
In the STM32Cube and STM32_USB_Device_Library context, the HID class device provides a fixed mouse/keyboard applications, where the HID report is predefined.
Otherwise, the Custom HID option allows you to have an application-defined report descriptor, and to use both IN and OUT endpoints. Both are limited by their fixed max endpoint size and period.
2022-01-04 05:44 AM
If I have to communicate with the application which install in PC and my board is connected through USB to PC and I have to communicate with application and baked then which USB class I have to use