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:
parent
25409e827a
commit
1f6a8a290c
3 changed files with 144 additions and 77 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#![doc = include_str!("../README.md")]
|
||||
|
||||
pub mod bus;
|
||||
mod cursor;
|
||||
mod device;
|
||||
mod host;
|
||||
pub mod net;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue