pub struct FrameReader<BUFFER, PAYLOAD, const N: usize>{ /* private fields */ }Expand description
Frame reader “worker”, access and handling of frame reads is made through this structure.
Implementations§
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C1>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C1>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C1>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C1>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C2>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C2>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C2>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C2>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C3>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C3>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C3>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C3>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C4>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C4>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C4>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C4>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C5>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C5>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C5>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C5>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C6>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C6>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C6>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C6>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C7>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C7>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C7>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C7>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C1>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C1>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C1>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C1>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C2>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C2>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C2>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C2>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C3>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C3>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C3>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C3>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C4>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C4>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C4>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C4>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C5>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C5>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C5>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C5>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C6>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C6>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C6>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C6>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C7>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C7>: TransferPayload,
impl<BUFFER, PAYLOAD, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, C7>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
RxDma<PAYLOAD, C7>: TransferPayload,
Sourcepub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn transfer_complete_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the transfer complete interrupt of the corresponding DMA channel.
Returns the full buffer received by the USART.
Sourcepub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn character_match_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
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.
Sourcepub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
pub fn receiver_timeout_interrupt(&mut self, next_frame: BUFFER) -> BUFFER
This function should be called from the receiver timeout interrupt of the corresponding USART
Returns the buffer received by the USART.
Source§impl<BUFFER, PAYLOAD, CHANNEL, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, CHANNEL>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
PAYLOAD: CharacterMatch,
impl<BUFFER, PAYLOAD, CHANNEL, const N: usize> FrameReader<BUFFER, RxDma<PAYLOAD, CHANNEL>, N>where
BUFFER: Sized + StableDeref<Target = DMAFrame<N>> + DerefMut + 'static,
PAYLOAD: CharacterMatch,
Sourcepub fn check_character_match(&mut self, clear: bool) -> bool
pub fn check_character_match(&mut self, clear: bool) -> bool
Checks to see if the peripheral has detected a character match and clears the flag