You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
The file usb_gadget.rs contains the code to write a specified gadget (UsbGadgetDescriptor) into the directory /sys/kernel/config/usb_gadget/ and binds this gadget to an UDC.
After this, the Raspberry Pi is recognized by an host.
Currently this is manually tested. Some parts of this process (like checking if the host detects this one device correctly) are impossible to test in rust on device side.
However, it should be possible to write tests for some generic instance of the UsbGadgetDescriptor, which test if the values are written to data correctly
The text was updated successfully, but these errors were encountered:
The file
usb_gadget.rs
contains the code to write a specified gadget (UsbGadgetDescriptor
) into the directory/sys/kernel/config/usb_gadget/
and binds this gadget to an UDC.After this, the Raspberry Pi is recognized by an host.
Currently this is manually tested. Some parts of this process (like checking if the host detects this one device correctly) are impossible to test in rust on device side.
However, it should be possible to write tests for some generic instance of the
UsbGadgetDescriptor
, which test if the values are written to data correctlyThe text was updated successfully, but these errors were encountered: