embedded-hal
embedded-hal copied to clipboard
Missing serial::Read trait in blocking module
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?
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.