embedded-hal icon indicating copy to clipboard operation
embedded-hal copied to clipboard

Missing serial::Read trait in blocking module

Open Stupremee opened this issue 5 years ago • 1 comments
trafficstars

In the blocking::serial module there is no Read trait, but there is on in the serial module. Is there a reason why there is no Read trait in the blocking api?

Stupremee avatar Mar 03 '20 20:03 Stupremee

The blocking API is more of a convenience thing, only very few HAL impls will implement that directly since reading a single Word of data from a serial port it is not a very useful specialisation whereas the blocking Write allows someone do do an efficient e.g. DMA based implmentation.

Now we could potentially add a blocking read of a block of data but that would require someone interested enough in that feature to propose it.

therealprof avatar Jun 25 '20 06:06 therealprof