Struct stm32f412g::dma::Dma2
source · pub struct Dma2<'a> { /* private fields */ }
Expand description
For an explanation of why this is its own type, see the docs for the Dma1 struct.
Implementations§
source§impl<'a> Dma2<'a>
impl<'a> Dma2<'a>
pub const fn new(clocks: &'a dyn Stm32f4Clocks) -> Dma2<'a>
pub fn is_enabled_clock(&self) -> bool
pub fn enable_clock(&self)
pub fn disable_clock(&self)
Trait Implementations§
source§impl<'a> StreamClient<'a, Dma2<'a>> for Usart<'a, Dma2<'a>>
impl<'a> StreamClient<'a, Dma2<'a>> for Usart<'a, Dma2<'a>>
fn transfer_done(&self, pid: Dma2Peripheral)
source§impl<'a> StreamServer<'a> for Dma2<'a>
impl<'a> StreamServer<'a> for Dma2<'a>
type Peripheral = Dma2Peripheral
fn registers(&self) -> &DmaRegisters
Auto Trait Implementations§
impl<'a> Freeze for Dma2<'a>
impl<'a> !RefUnwindSafe for Dma2<'a>
impl<'a> !Send for Dma2<'a>
impl<'a> !Sync for Dma2<'a>
impl<'a> Unpin for Dma2<'a>
impl<'a> !UnwindSafe for Dma2<'a>
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