Skip to content

Commit

Permalink
Update README.md, add usb-class-tester.png
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyvb committed May 1, 2024
1 parent a46f767 commit 903a9c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ protocols in USB devices which are based on `usb-device`
crate by providing a means of simulating Host's accesses
to the device.

The diagram below gives an idea how different components
relate to each other. `UsbClass` works with `usb-device`
as usual. The test case can call `UsbClass`' functions
if necessary. `usbd-class-tester` tries to emulate USB
Host behavior and work with `UsbClass`, as the Host would
do, via `usb-device`'s `UsbBus`. The test case calls
`Device` functions to interact with `UsbClass` -
perform control transfers or send and receive data.

![Class and usage diagram](usb-class-tester.png)

Initial implementation was done for tests in `usbd-dfu`
crate. This library is based on that idea, but extends
it a lot. For example it adds a set of convenience
Expand Down
Binary file added usb-class-tester.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 903a9c8

Please sign in to comment.