Struct mcxn947_pac::LPI2C0

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

LPI2C

Implementations§

source§

impl LPI2C0

source

pub const PTR: *const RegisterBlock = {0x40092800 as *const lpi2c0::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 verid(&self) -> &VERID

0x00 - Version ID

source

pub fn param(&self) -> &PARAM

0x04 - Parameter

source

pub fn mcr(&self) -> &MCR

0x10 - Controller Control

source

pub fn msr(&self) -> &MSR

0x14 - Controller Status

source

pub fn mier(&self) -> &MIER

0x18 - Controller Interrupt Enable

source

pub fn mder(&self) -> &MDER

0x1c - Controller DMA Enable

source

pub fn mcfgr0(&self) -> &MCFGR0

0x20 - Controller Configuration 0

source

pub fn mcfgr1(&self) -> &MCFGR1

0x24 - Controller Configuration 1

source

pub fn mcfgr2(&self) -> &MCFGR2

0x28 - Controller Configuration 2

source

pub fn mcfgr3(&self) -> &MCFGR3

0x2c - Controller Configuration 3

source

pub fn mdmr(&self) -> &MDMR

0x40 - Controller Data Match

source

pub fn mccr0(&self) -> &MCCR0

0x48 - Controller Clock Configuration 0

source

pub fn mccr1(&self) -> &MCCR1

0x50 - Controller Clock Configuration 1

source

pub fn mfcr(&self) -> &MFCR

0x58 - Controller FIFO Control

source

pub fn mfsr(&self) -> &MFSR

0x5c - Controller FIFO Status

source

pub fn mtdr(&self) -> &MTDR

0x60 - Controller Transmit Data

source

pub fn mrdr(&self) -> &MRDR

0x70 - Controller Receive Data

source

pub fn mrdror(&self) -> &MRDROR

0x78 - Controller Receive Data Read Only

source

pub fn scr(&self) -> &SCR

0x110 - Target Control

source

pub fn ssr(&self) -> &SSR

0x114 - Target Status

source

pub fn sier(&self) -> &SIER

0x118 - Target interrupt enable

source

pub fn sder(&self) -> &SDER

0x11c - Target DMA Enable

source

pub fn scfgr0(&self) -> &SCFGR0

0x120 - Target Configuration 0

source

pub fn scfgr1(&self) -> &SCFGR1

0x124 - Target Configuration 1

source

pub fn scfgr2(&self) -> &SCFGR2

0x128 - Target Configuration 2

source

pub fn samr(&self) -> &SAMR

0x140 - Target Address Match

source

pub fn sasr(&self) -> &SASR

0x150 - Target Address Status

source

pub fn star(&self) -> &STAR

0x154 - Target Transmit ACK

source

pub fn stdr(&self) -> &STDR

0x160 - Target Transmit Data

source

pub fn srdr(&self) -> &SRDR

0x170 - Target Receive Data

source

pub fn srdror(&self) -> &SRDROR

0x178 - Target Receive Data Read Only

source

pub fn mtcbr(&self, n: usize) -> &MTCBR

0x200..0x400 - Controller Transmit Command Burst

source

pub fn mtcbr_iter(&self) -> impl Iterator<Item = &MTCBR>

Iterator for array of: 0x200..0x400 - Controller Transmit Command Burst

source

pub fn mtdbr(&self, n: usize) -> &MTDBR

0x400..0x7f4 - Transmit Data Burst

source

pub fn mtdbr_iter(&self) -> impl Iterator<Item = &MTDBR>

Iterator for array of: 0x400..0x7f4 - Transmit Data Burst

Trait Implementations§

source§

impl Debug for LPI2C0

source§

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

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

impl Deref for LPI2C0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for LPI2C0

Auto Trait Implementations§

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.