jamesmunns / postcard-rpc

An RPC layer for postcard based protocols
Apache License 2.0
90 stars 21 forks source link

Raw USB mode is incompatible with having other endpoints #29

Closed si14 closed 3 weeks ago

si14 commented 5 months ago

Currently, Postcard RPC takes over the entire USB device. However, if it stops doing so, there are several questions:

jamesmunns commented 5 months ago

You're correct the current "configure_usb" helper assumes it is the only item, but it is possible to do all configuration manually if you need to. AFAIK the actual Dispatcher and stuff only need access to their input and output endpoint channels.

More expressive configuration APIs are welcome, or I'd accept PRs if it's not possible to create the pieces manually like I think. I would like to continue to offer "opinionated and easy" APIs, but not make them mandatory.

Always open to PRs to improve docs.

Re: Control/Isochronous, I don't have any opinions on this. Open to discussing other impls.

jamesmunns commented 3 weeks ago

I'm going to close this, if you have any specific questions please feel free to reopen or open a new issue.