Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Write tests for usb_gadget.rs #2

Open
robertosw opened this issue Aug 26, 2023 · 0 comments
Open

Write tests for usb_gadget.rs #2

robertosw opened this issue Aug 26, 2023 · 0 comments
Milestone

Comments

@robertosw
Copy link
Owner

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

@robertosw robertosw converted this from a draft issue Aug 26, 2023
@robertosw robertosw added this to the usb gadget milestone Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Todo
Development

No branches or pull requests

1 participant