Listen for "USB_DETECTED" events?

Benjamin Lindqvist


Going through the APIs today looking for a public function for discerning if we are connected to something (i.e. we are supplied by VBUS) but I couldn't find anything. There is some internal API at `subsys/usb/usb_device.c` (usb_register_status_callback) but it clearly won't work since it's not public etc.

Am I just missing it or does it not exist?

Join to automatically receive all group messages.