USB OTG gadgetfs, configfs, interface

Hello Community!

I am here asking if there is a snap interface for USB Controller (USB OTG in some SoC - RPI), something that can be used/modified with a userspace application with the **configfs/libcomposite** or **gadgetfs** API, in this case that can access: **/sys/kernel/config/usb_gadget/** and/or **/dev/gadget**, this would be mostly for Ubuntu Core, I see there is raw_usb , but seems to be mostly for access USB as a device not as a host controller.

Please advice.