Enum stm32_hal2::dma::DmaChannel
source · #[repr(u8)]pub enum DmaChannel {
C0 = 0,
C1 = 1,
C2 = 2,
C3 = 3,
C4 = 4,
C5 = 5,
C6 = 6,
C7 = 7,
}
Expand description
Represents a DMA channel to select, eg when configuring for use with a peripheral. u8 representation is used to index registers on H7 PAC (And hopefully on future PACs if they adopt H7’s approach)
Variants§
Trait Implementations§
source§impl Clone for DmaChannel
impl Clone for DmaChannel
source§fn clone(&self) -> DmaChannel
fn clone(&self) -> DmaChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for DmaChannel
Auto Trait Implementations§
impl Freeze for DmaChannel
impl RefUnwindSafe for DmaChannel
impl Send for DmaChannel
impl Sync for DmaChannel
impl Unpin for DmaChannel
impl UnwindSafe for DmaChannel
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