Read data in device sent by host over USB HID
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-08-19 4:58 AM
In an STM32CubeIDE USB HID project for an STM32F103C8 board I can send data from the device to the host using the USBD_HID_SendReport() function, like so:
USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&hid_report,sizeof(hid_report));
How can I read data in the device sent over USB HID by the host?
In particular, I'd like to send arbitrary data (say, 1024 bytes) from the host using something like hid_write() from libusb's hidapi and then read it in the STM32 device.
How can I do that?
Labels:
- Labels:
-
STM32F1 Series
-
USB
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-08-20 12:44 PM
Anyone?
