Struct mcxn947_pac::SM3_0

source ·
pub struct SM3_0 { /* private fields */ }
Expand description

SAFO_SM3_SGI

Implementations§

source§

impl SM3_0

source

pub const PTR: *const RegisterBlock = {0x40031000 as *const sm3_0::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 datin0a(&self) -> &DATIN0A

0x200 - Input Data register 0 lower-bank low

source

pub fn datin0b(&self) -> &DATIN0B

0x204 - Input Data register 0 lower-bank high

source

pub fn datin0c(&self) -> &DATIN0C

0x208 - Input Data register 0 upper-bank low

source

pub fn datin0d(&self) -> &DATIN0D

0x20c - Input Data register 0 upper-bank high

source

pub fn datin1a(&self) -> &DATIN1A

0x210 - Input Data register 1 lower-bank low

source

pub fn datin1b(&self) -> &DATIN1B

0x214 - Input Data register 1 lower-bank high

source

pub fn datin1c(&self) -> &DATIN1C

0x218 - Input Data register 1 upper-bank low

source

pub fn datin1d(&self) -> &DATIN1D

0x21c - Input Data register 1 upper-bank high

source

pub fn key0a(&self) -> &KEY0A

0x240 - Input Key register 0 lower-bank low

source

pub fn key0b(&self) -> &KEY0B

0x244 - Input Key register 0 lower-bank high

source

pub fn key0c(&self) -> &KEY0C

0x248 - Input Key register 0 upper-bank low

source

pub fn key0d(&self) -> &KEY0D

0x24c - Input Key register 0 upper-bank high

source

pub fn key1a(&self) -> &KEY1A

0x250 - Input Key register 1 lower-bank low

source

pub fn key1b(&self) -> &KEY1B

0x254 - Input Key register 1 lower-bank high

source

pub fn key1c(&self) -> &KEY1C

0x258 - Input Key register 1 upper-bank low

source

pub fn key1d(&self) -> &KEY1D

0x25c - Input Key register 1 upper-bank high

source

pub fn datouta(&self) -> &DATOUTA

0x2c0 - Output Data register lower-bank low

source

pub fn datoutb(&self) -> &DATOUTB

0x2c4 - Ouput Data register lower-bank high

source

pub fn datoutc(&self) -> &DATOUTC

0x2c8 - Ouput Data register upper-bank low

source

pub fn datoutd(&self) -> &DATOUTD

0x2cc - Output Data register upper-bank high

source

pub fn status(&self) -> &STATUS

0xc00 - Status Register

source

pub fn count(&self) -> &COUNT

0xc04 - Calculation Counter

source

pub fn ctrl(&self) -> &CTRL

0xd00 - SGI Control Register

source

pub fn ctrl2(&self) -> &CTRL2

0xd04 - SGI Control Register 2

source

pub fn sm3_ctrl(&self) -> &SM3_CTRL

0xd14 - SM3 Control Register

source

pub fn sm3_fifo(&self) -> &SM3_FIFO

0xd18 - SM3 FIFO Register

source

pub fn config(&self) -> &CONFIG

0xd1c - SGI Configuration Register

source

pub fn int_enable(&self) -> &INT_ENABLE

0xfe4 - Interrupt Enable

source

pub fn int_status_clr(&self) -> &INT_STATUS_CLR

0xfe8 - Interrupt Status Clear

source

pub fn int_status_set(&self) -> &INT_STATUS_SET

0xfec - Interrupt Status Set

Trait Implementations§

source§

impl Debug for SM3_0

source§

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

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

impl Deref for SM3_0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for SM3_0

Auto Trait Implementations§

§

impl RefUnwindSafe for SM3_0

§

impl !Sync for SM3_0

§

impl Unpin for SM3_0

§

impl UnwindSafe for SM3_0

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.