rust-embedded-community / usbd-serial

Work-in progress minimal CDC-ACM (USB serial port) class for usb-device
MIT License
118 stars 35 forks source link

CdcAcmClass needs more pub #21

Closed ianrrees closed 8 months ago

ianrrees commented 3 years ago

I'm implementing a USB device along the lines of SerialPort, but which directly talks to a UART peripheral - tacking on a USB-UART functionality to an existing widget. The initial snag that prompted this issue is that CdcAcmClass::write_ep_address() isn't available to my new crate, but looking at CdcAcmClass more, I wonder if read_ep and write_ep shouldn't simply be public?

Happy to make a PR either way, if that's easier to deal with.