Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBD stack design inputs #40

Open
kuldeepdhaka opened this issue Dec 13, 2016 · 1 comment
Open

USBD stack design inputs #40

kuldeepdhaka opened this issue Dec 13, 2016 · 1 comment

Comments

@kuldeepdhaka
Copy link
Contributor

kuldeepdhaka commented Dec 13, 2016

Inputs from @alexrayne

  1. talking of usbd_transfer
<alexrayne> sounds like i need always remember valid ep_size. can i pass 0 to use configured one?
... <snip> ...
<kuldeep> alexrayne, usually i keep a `#define MY_ENDPOINT_SIZE 64` to ease out the process.
  1. transfer reuse
<alexrayne> kuldeep, i this it better to introduce some flag for transfer, prevents it destroy after execution. submit such transfer once, and it always callbacks. callback just directly modifyes transfer.buffer and length. is it possible now?
<kuldeep> (though i have to think on how to let user distroy the transfer if the flag prevent destroying the transfer)
... <snip> ...
<kuldeep> this flag will modify the life cycle of the transfer. we need to think on the new life cycle. (its pro/cons)
@kuldeepdhaka
Copy link
Contributor Author

  1. (setup) if the control buffer argument is also passed as argument to setup callback OR there is some way to retreive the buffer, it would help in writing better code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant