How to custom USB Class on Zephyr RTOS with nrf52840DK?
Hello, my project is to develop an external monitor so that the PC can transfer images to my monitor via USB.
What I want to do is customize a USB class with bulk transfer functionality to transfer images. I started with the HID-mouse example with USB device_next (the new USB structure) and wanted to add a bulk transfer end point. But I don't know how to do it. the sample code for me looks so complicated. is any one has the experience with zephyr USB?
what I have done now is just duplicate the HID class from device next/class to my application. and add a CMakeLists.txt file so I can compile it separate from zephyr.
What I want to do is customize a USB class with bulk transfer functionality to transfer images. I started with the HID-mouse example with USB device_next (the new USB structure) and wanted to add a bulk transfer end point. But I don't know how to do it. the sample code for me looks so complicated. is any one has the experience with zephyr USB?
what I have done now is just duplicate the HID class from device next/class to my application. and add a CMakeLists.txt file so I can compile it separate from zephyr.
Solution
With some work yes this can be achieved, check the docs here https://docs.zephyrproject.org/latest/connectivity/usb/device/usb_device.html#implementing-a-non-standard-usb-class