discover_udc

Function discover_udc 

Source
fn discover_udc() -> Result<String, UsbError>
Expand description

Discovers the USB Device Controller (UDC) name.

Reads the /sys/class/udc/ directory to find available UDCs. For MTK platforms, this is typically "11211000.usb".

ยงErrors

Returns UsbError::Udc if no UDC is available or the directory cannot be read.