Dmac2

Struct Dmac2 

Source
pub struct Dmac2 { /* private fields */ }
Expand description

DMAC2

Implementations§

Source§

impl Dmac2

Source

pub const PTR: *const RegisterBlock = {0x40001000 as *const dmac2::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn isr(&self) -> &Isr

0x00 -

Source

pub fn ifcr(&self) -> &Ifcr

0x04 -

Source

pub fn ccr1(&self) -> &Ccr1

0x08 -

Source

pub fn cndtr1(&self) -> &Cndtr1

0x0c -

Source

pub fn cpar1(&self) -> &Cpar1

0x10 -

Source

pub fn cm0ar1(&self) -> &Cm0ar1

0x14 -

Source

pub fn cbsr1(&self) -> &Cbsr1

0x18 -

Source

pub fn ccr2(&self) -> &Ccr2

0x1c -

Source

pub fn cndtr2(&self) -> &Cndtr2

0x20 -

Source

pub fn cpar2(&self) -> &Cpar2

0x24 -

Source

pub fn cm0ar2(&self) -> &Cm0ar2

0x28 -

Source

pub fn cbsr2(&self) -> &Cbsr2

0x2c -

Source

pub fn ccr3(&self) -> &Ccr3

0x30 -

Source

pub fn cndtr3(&self) -> &Cndtr3

0x34 -

Source

pub fn cpar3(&self) -> &Cpar3

0x38 -

Source

pub fn cm0ar3(&self) -> &Cm0ar3

0x3c -

Source

pub fn cbsr3(&self) -> &Cbsr3

0x40 -

Source

pub fn ccr4(&self) -> &Ccr4

0x44 -

Source

pub fn cndtr4(&self) -> &Cndtr4

0x48 -

Source

pub fn cpar4(&self) -> &Cpar4

0x4c -

Source

pub fn cm0ar4(&self) -> &Cm0ar4

0x50 -

Source

pub fn cbsr4(&self) -> &Cbsr4

0x54 -

Source

pub fn ccr5(&self) -> &Ccr5

0x58 -

Source

pub fn cndtr5(&self) -> &Cndtr5

0x5c -

Source

pub fn cpar5(&self) -> &Cpar5

0x60 -

Source

pub fn cm0ar5(&self) -> &Cm0ar5

0x64 -

Source

pub fn cbsr5(&self) -> &Cbsr5

0x68 -

Source

pub fn ccr6(&self) -> &Ccr6

0x6c -

Source

pub fn cndtr6(&self) -> &Cndtr6

0x70 -

Source

pub fn cpar6(&self) -> &Cpar6

0x74 -

Source

pub fn cm0ar6(&self) -> &Cm0ar6

0x78 -

Source

pub fn cbsr6(&self) -> &Cbsr6

0x7c -

Source

pub fn ccr7(&self) -> &Ccr7

0x80 -

Source

pub fn cndtr7(&self) -> &Cndtr7

0x84 -

Source

pub fn cpar7(&self) -> &Cpar7

0x88 -

Source

pub fn cm0ar7(&self) -> &Cm0ar7

0x8c -

Source

pub fn cbsr7(&self) -> &Cbsr7

0x90 -

Source

pub fn ccr8(&self) -> &Ccr8

0x94 -

Source

pub fn cndtr8(&self) -> &Cndtr8

0x98 -

Source

pub fn cpar8(&self) -> &Cpar8

0x9c -

Source

pub fn cm0ar8(&self) -> &Cm0ar8

0xa0 -

Source

pub fn cbsr8(&self) -> &Cbsr8

0xa4 -

Source

pub fn cselr1(&self) -> &Cselr1

0xa8 -

Source

pub fn cselr2(&self) -> &Cselr2

0xac -

Trait Implementations§

Source§

impl Debug for Dmac2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Dmac2

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for Dmac2

Auto Trait Implementations§

§

impl Freeze for Dmac2

§

impl RefUnwindSafe for Dmac2

§

impl !Sync for Dmac2

§

impl Unpin for Dmac2

§

impl UnwindSafe for Dmac2

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.