Allow truncated RawDevice::read_frame()

- `RawDevice::read_frame()` succeeds with a receive buffer smaller than the frame.
- Introduce `RxCursor` and `TxCursor` to track/update RX/TX buffer pointers making
  it easier to reason about functions such as `read_frame` / `write_frame`.
This commit is contained in:
Felix Lelchuk 2023-04-23 00:12:29 +02:00
commit 1f6a8a290c
3 changed files with 144 additions and 77 deletions

View file

@ -4,6 +4,7 @@
#![doc = include_str!("../README.md")]
pub mod bus;
mod cursor;
mod device;
mod host;
pub mod net;