Mpi2

Struct Mpi2 

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

MPI2

Implementations§

Source§

impl Mpi2

Source

pub const PTR: *const RegisterBlock = {0x50042000 as *const mpi2::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 cr(&self) -> &Cr

0x00 - Control Register

Source

pub fn dr(&self) -> &Dr

0x04 - Data Register

Source

pub fn dcr(&self) -> &Dcr

0x08 - Device Control Register

Source

pub fn psclr(&self) -> &Psclr

0x0c - Prescaler Register

Source

pub fn sr(&self) -> &Sr

0x10 - Status Register

Source

pub fn scr(&self) -> &Scr

0x14 - Status Clear Register

Source

pub fn cmdr1(&self) -> &Cmdr1

0x18 - Command Register

Source

pub fn ar1(&self) -> &Ar1

0x1c - Address Register

Source

pub fn abr1(&self) -> &Abr1

0x20 - Alternate Byte Register

Source

pub fn dlr1(&self) -> &Dlr1

0x24 - Data Length Register

Source

pub fn ccr1(&self) -> &Ccr1

0x28 - Communication Configuration Register

Source

pub fn cmdr2(&self) -> &Cmdr2

0x2c - Command Register

Source

pub fn ar2(&self) -> &Ar2

0x30 - Address Register

Source

pub fn abr2(&self) -> &Abr2

0x34 - Alternate Byte Register

Source

pub fn dlr2(&self) -> &Dlr2

0x38 - Data Length Register

Source

pub fn ccr2(&self) -> &Ccr2

0x3c - Communication Configuration Register

Source

pub fn hcmdr(&self) -> &Hcmdr

0x40 - AHB Command Register

Source

pub fn hrabr(&self) -> &Hrabr

0x44 - AHB Read Alternate Byte Register

Source

pub fn hrccr(&self) -> &Hrccr

0x48 - AHB Read Communication Configuration Register

Source

pub fn hwabr(&self) -> &Hwabr

0x4c - AHB Write Alternate Byte Register

Source

pub fn hwccr(&self) -> &Hwccr

0x50 - AHB Write Communication Configuration Register

Source

pub fn fifocr(&self) -> &Fifocr

0x54 - FIFO Control Register

Source

pub fn miscr(&self) -> &Miscr

0x58 - Miscelaneous Register

Source

pub fn ctrsar(&self) -> &Ctrsar

0x5c -

Source

pub fn ctrear(&self) -> &Ctrear

0x60 -

Source

pub fn noncea(&self) -> &Noncea

0x64 -

Source

pub fn nonceb(&self) -> &Nonceb

0x68 -

Source

pub fn aasar(&self) -> &Aasar

0x6c -

Source

pub fn aaear(&self) -> &Aaear

0x70 -

Source

pub fn aaoar(&self) -> &Aaoar

0x74 -

Source

pub fn cir(&self) -> &Cir

0x78 - Command Interval Register

Source

pub fn smr(&self) -> &Smr

0x7c - Status Match Register

Source

pub fn smkr(&self) -> &Smkr

0x80 - Status Mask Register

Source

pub fn timr(&self) -> &Timr

0x84 -

Source

pub fn wdtr(&self) -> &Wdtr

0x88 - WDT Register

Source

pub fn prsar(&self) -> &Prsar

0x8c -

Source

pub fn prear(&self) -> &Prear

0x90 -

Source

pub fn calcr(&self) -> &Calcr

0x94 - Calibration Control Register

Source

pub fn caldor(&self) -> &Caldor

0x98 -

Source

pub fn apm32cr(&self) -> &Apm32cr

0x9c - APM32 Control Register

Source

pub fn cr2(&self) -> &Cr2

0xa0 -

Trait Implementations§

Source§

impl Debug for Mpi2

Source§

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

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

impl Deref for Mpi2

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for Mpi2

Auto Trait Implementations§

§

impl Freeze for Mpi2

§

impl RefUnwindSafe for Mpi2

§

impl !Sync for Mpi2

§

impl Unpin for Mpi2

§

impl UnwindSafe for Mpi2

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.