Struct stm32_hal2::dma::FrameReader[][src]

pub struct FrameReader<BUFFER, CHANNEL, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
{ /* fields omitted */ }

Frame reader “worker”, access and handling of frame reads is made through this structure.

Implementations

impl<BUFFER, N> FrameReader<BUFFER, C1, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C2, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C3, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C4, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C5, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C6, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C7, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C1, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C2, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C3, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C4, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C5, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C6, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

impl<BUFFER, N> FrameReader<BUFFER, C7, N> where
    BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
    N: ArrayLength<MaybeUninit<u8>>, 
[src]

pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the transfer complete interrupt of the corresponding DMA channel.

Returns the full buffer received by the USART.

pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the character match interrupt of the corresponding USART

Returns the buffer received by the USART, including the matching character.

pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER[src]

This function should be called from the receiver timeout interrupt of the corresponding USART

Returns the buffer received by the USART.

Auto Trait Implementations

impl<BUFFER, CHANNEL, N> Send for FrameReader<BUFFER, CHANNEL, N> where
    BUFFER: Send,
    CHANNEL: Send,
    N: Send

impl<BUFFER, CHANNEL, N> Sync for FrameReader<BUFFER, CHANNEL, N> where
    BUFFER: Sync,
    CHANNEL: Sync,
    N: Sync

impl<BUFFER, CHANNEL, N> Unpin for FrameReader<BUFFER, CHANNEL, N> where
    BUFFER: Unpin,
    CHANNEL: Unpin,
    N: Unpin

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.