Struct PacketQueue
Source pub struct PacketQueue<const TX: usize, const RX: usize> { }
Expand description
Static storage for DMA descriptors and packet buffers.
TX and RX are the number of descriptors (and buffers) in each ring.
Typical values: 2-4 for TX, 4-8 for RX.
§Usage
ⓘstatic QUEUE: StaticCell<PacketQueue<4, 4>> = StaticCell::new();
let queue = QUEUE.init(PacketQueue::new());
Create a new zeroed packet queue.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.