[][src]Struct stm32f103xx_hal::dma::CircBuffer

pub struct CircBuffer<BUFFER, CHANNEL, RESOURCE> where
    BUFFER: 'static, 
{ /* fields omitted */ }

Methods

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C1, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C1, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C2, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C2, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C3, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C3, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C4, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C4, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C5, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C5, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C6, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C6, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C7, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C7, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C1, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C1, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C2, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C2, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C3, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C3, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C4, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C4, RE)[src]

impl<B: AsRef<[u8]>, RE> CircBuffer<B, C5, RE>[src]

pub fn peek_whole_buffer<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, &B, usize) -> R, 
[src]

peers into the buffer without touching any flag

pub fn retrieve_filled_half<R, F>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&B, Half, usize) -> R, 
[src]

Give access to the available half buffer this also flags it as clear to re-fill.

pub fn get_filled_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read this also flags it as clear to re-fill.

pub fn release(self) -> (&'static mut [B; 2], C5, RE)[src]

Auto Trait Implementations

impl<BUFFER, CHANNEL, RESOURCE> Send for CircBuffer<BUFFER, CHANNEL, RESOURCE> where
    BUFFER: Send,
    CHANNEL: Send,
    RESOURCE: Send

impl<BUFFER, CHANNEL, RESOURCE> Sync for CircBuffer<BUFFER, CHANNEL, RESOURCE> where
    BUFFER: Sync,
    CHANNEL: Sync,
    RESOURCE: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]