I want my device operate in two modes:
- powered via VSYS and no USB connected - recording
- powered via USB-C - emulate mass storage to access recorded files
I've spent a fair amount of time figuring out if this is possible via sysfs, but didn't find distinctive.
I went through schematic and fond that RV1106 has special pin USB_VBUSDET. Is it relevant? Can I access a level of this input?
Any help or ideas appreciated.