RP2040 USB Bulk Device

Hi,
I'm working on a projekt where I use the Pico as an USB bulk device, which gathers sensor data and then sends it over the USB to the PC. The PC recognizes the device as a custom bulk device using the win10 inbuilt usb device driver (libusb or winusb).

I'm using one core to gather the sensor data, and the other core to just dump the data to the PC when the buffers are filled.

The USB part of the code I don't understand. Checked the examples and was thinking maybe I write a custom bulk library but USB is just to new for me to understand the complexity.

Also was looking all over the interned and forums but couldn't put the available code together. There was no specific use case which could give guidance.

If you could give me guidance how it could be done it would be really good.

Robert,