pub struct RingPosition {
pub laps: u32,
pub index: usize,
}Expand description
Where a circular transfer is: whole passes over the buffer, and the index of the next element the DMA moves.
Fields§
§laps: u32completed passes since the transfer was configured (wraps). the DMA interrupt counts
them off TCIF, a single sticky flag: an interrupt held off (masked, or behind a
handler at its level) for more than a pass counts the passes it missed as one, and
laps stays short by the rest from then on (index stays right)
index: usizenext element, 0..len
Trait Implementations§
Source§impl Clone for RingPosition
impl Clone for RingPosition
Source§fn clone(&self) -> RingPosition
fn clone(&self) -> RingPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RingPosition
Source§impl Debug for RingPosition
impl Debug for RingPosition
impl Eq for RingPosition
Source§impl PartialEq for RingPosition
impl PartialEq for RingPosition
impl StructuralPartialEq for RingPosition
Auto Trait Implementations§
impl Freeze for RingPosition
impl RefUnwindSafe for RingPosition
impl Send for RingPosition
impl Sync for RingPosition
impl Unpin for RingPosition
impl UnsafeUnpin for RingPosition
impl UnwindSafe for RingPosition
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)