jamesmunns / postcard-rpc

An RPC layer for postcard based protocols
Apache License 2.0
76 stars 14 forks source link

Raw USB mode is incompatible with having other endpoints #29

Open si14 opened 3 months ago

si14 commented 3 months ago

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

jamesmunns commented 3 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.