Struct rp2040_hal::adc::DmaReadTarget
source · 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>
impl<Word> ReadTarget for DmaReadTarget<Word>
Safety: rx_address_count points to a register which is always a valid read target.
§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> 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