pub struct DmaReadTarget<Word>(/* private fields */);Expand description
Represents a dma::ReadTarget for the AdcFifo
If AdcFifoBuilder::shift_8bit was called when constructing the FIFO,
Word will be u8, otherwise it will be u16.
Trait Implementations§
Source§impl<Word> ReadTarget for DmaReadTarget<Word>
Safety: rx_address_count points to a register which is always a valid
read target.
impl<Word> ReadTarget for DmaReadTarget<Word>
Safety: rx_address_count points to a register which is always a valid read target.
Source§type ReceivedWord = Word
type ReceivedWord = Word
Type which is transferred in a single DMA transfer.
Source§fn rx_treq() -> Option<u8>
fn rx_treq() -> Option<u8>
Returns the DREQ number for this data source (
None for memory buffers).Source§fn rx_address_count(&self) -> (u32, u32)
fn rx_address_count(&self) -> (u32, u32)
Returns the address and the maximum number of words that can be transferred from this data
source in a single DMA operation. Read more
Source§fn rx_increment(&self) -> bool
fn rx_increment(&self) -> bool
Returns whether the address shall be incremented after each transfer.
impl<Word> EndlessReadTarget for DmaReadTarget<Word>
Auto Trait Implementations§
impl<Word> Freeze for DmaReadTarget<Word>
impl<Word> RefUnwindSafe for DmaReadTarget<Word>where
Word: RefUnwindSafe,
impl<Word> Send for DmaReadTarget<Word>where
Word: Send,
impl<Word> Sync for DmaReadTarget<Word>where
Word: Sync,
impl<Word> Unpin for DmaReadTarget<Word>where
Word: Unpin,
impl<Word> UnwindSafe for DmaReadTarget<Word>where
Word: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more