Skip to content

Commit

Permalink
USB: rewrite data transfer using libusb async API
Browse files Browse the repository at this point in the history
To get consistent USB data transfers the USB code has been rewritten
to use libusb bulk transfer API. Code based on https://github.com/mxk/burble/blob/8289cf0fc44087d483af11e06f3e8ed4fab235df/src/host/usb.rs#L414-L764
The main difference, however, is that I don't try to implement
`Future` trait instead using a callback, which can decide to either
drop the bulk tranfer buffer or resubmit it
  • Loading branch information
arteme committed Sep 26, 2024
1 parent 924169e commit e42f30b
Show file tree
Hide file tree
Showing 7 changed files with 614 additions and 186 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/arteme.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions usb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rust-version.workspace = true

[dependencies]
rusb = "0.9.4"
structbuf = "0.3.4"

async-trait = "*" # defined in pod-core
log = "*" # defined in pod-core
Expand Down
Loading

0 comments on commit e42f30b

Please sign in to comment.